Comments (12)
@agrawal-d Please link the issue to the PR.
Done! Thanks for creating the issue.
from cph.
If you mention the issue number in one of the commit messages (usually the 'main' commit, or if not, the last commit) like this: Closes #19.
, then the issue gets linked automatically.
from cph.
@agrawal-d May I start working on this issue?
Sure, thanks!
Because we are not going to generate bytecode manually, we can use the default version of Python on the host which is accessible using python command.
Here's what I like:
By default we execute with python3
, but if spawn
gives an error, we execute python
. If both give an error, we ignore/show error message.
from cph.
I've already created #18 PR for this issue which is waiting for review now.
@agrawal-d Please link the issue to the PR.
from cph.
Python support does not work on my pc. I have python 3.8 installed on windows 10 and it runs by the command 'python' in cmd. Apparently extension is running the command 'python3' that does not work on my pc.
Temporarily I copied the python.exe file and pasted it as python3.exe in installation directory and it works for now.
plz fix this.
from cph.
Python support does not work on my pc. I have python 3.8 installed on windows 10 and it runs by the command 'python' in cmd. Apparently extension is running the command 'python3' that does not work on my pc.
Temporarily I copied the python.exe file and pasted it as python3.exe in installation directory and it works for now.
plz fix this.
Since both Python 2 and 3 usually are available in the hosts, I wanted to support both of them in the extension; but later I decided to use the default Python version of the host (as python
). Because both Python 2 and 3 will be supported (host admin is responsible for it) and also we can use python
as the executable command .
Finally because of some issues, me and @agrawal-d decided to support only Python 3 for now which usually exposes python3
as the command.
Now the issues are resolved an it's feasible to use the python
as the default command.
@agrawal-d May I start working on this issue?
from cph.
- @mr2rm how do you plan to resolve this?
- What if default Python is Python 2?
- What if there is no Python 3?
from cph.
- @mr2rm how do you plan to resolve this?
Because we are not going to generate bytecode manually, we can use the default version of Python on the host which is accessible using python
command.
- What if default Python is Python 2?
So everything will work correctly if the source code supports Python 2.
- What if there is no Python 3?
Not important, because it will execute the source code using python
command which links to Python 2 or 3.
from cph.
By default we execute with
python3
, but ifspawn
gives an error, we executepython
. If both give an error, we ignore/show error message.
Why do you prefer to execute with python3
by default?
If both versions are available, I prefer python
which is linked to default version by the host.
If only one of Python 2 or 3 are available, python
command is also works correctly.
from cph.
By default we execute with
python3
, but ifspawn
gives an error, we executepython
. If both give an error, we ignore/show error message.Why do you prefer to execute with
python3
by default?
If both versions are available, I preferpython
which is linked to default version by the host.
If only one of Python 2 or 3 are available,python
command is also works correctly.
I'm still waiting for your response...
from cph.
Why do you prefer to execute with python3 by default?
No reason, I like this approach better.
from cph.
Fixed now.
from cph.
Related Issues (20)
- It says error while compiling HOT 2
- Unable to compile HOT 1
- How do I run a test case in debug mode such that it stops at the breakpoint I set?
- New file in not being created after clicking on the plus sign
- Suggestion: Add jutge.org parser
- CPH extension is not showing up on sidebar
- Use to work with no issues, doesn't work with competitive companion well now.
- Why it takes so long to compile in C++?
- auto created java class start with number in some dmoj questions
- Are multiple VSCode windows open? CPH will work on the first opened window. CPH server encountered an error: "listen EADDRINUSE: address already in use :::27121" , companion may not work. HOT 1
- Empty "Received Output" with C++ HOT 2
- [Feature Request] Add an option in settings to enable `ONLINE_JUDGE` by default HOT 1
- A bug that I can't fix it HOT 1
- Java package does not exist error
- all /problems/ page .... should work for this also
- Docs Problem
- Program doesn't run when warnings appear HOT 1
- Impossible to set ONLINE_JUDGE for interpreted languages.
- Add support to use cph-submit with PyPy 3.9.10 (7.3.9, 64-bit) HOT 1
- Uncaught error increasing in seconds
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cph.