Python Forum
A trouble with VS Code
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A trouble with VS Code
#22
(Sep-09-2019, 12:22 PM)snippsat Wrote: It should only be "python": "$pythonPath $fullFileName", no {}.

The outcome of trials with json file at my end has been as follows:

TEST-01:
"python": "$pythonPath $fullFileName"
Mouse hover over above entry in json file elicits the following message:
Quote:Unknown Configuration Setting

Closing the json file & loading a python file, attracts two messages as follows:
Quote:Sorry something went wrong. Activating Intellicode supprt for python

And
Quote:Extension activation failed. Run the 'Developer:oggle Developer Tools'

Simultaneously, at bottom left corner of task bar, there is indefinite turning of circular arrow saying "Python extension loading - -"

However, code execute successfully on pressing Ctrl+Alt+N

TEST-02:
"code-runner.executorMap": "python": "$pythonPath $fullFileName"
OR
"code-runner.executorMap": "python: '$pythonPath $fullFileName'"
OR
"code-runner.executorMap": "python: $pythonPath $fullFileName"
In json file, mouse hover tip:
Quote:Incorrect type. Expected "object"

Code does not execute. Message on trying to Run python file:
Quote:Code language not supported or defined

TEST-03:
"python.pythonPath": "$pythonPath $fullFileName"
With the above entry in json file, the code executes without any problem.

At present, there is only one version of python on my Windows-10 desktop. As suggested by you, following code was run:
import sys  
print(sys.executable)
The output is as follows:
Output:
[Running] python -u "j:\AdtPython-Practice\00-RoughTesting.py" C:\Program Files\Python37\python.exe [Done] exited with code=0 in 0.124 seconds
A.D.Tejpal
Reply


Messages In This Thread
A trouble with VS Code - by Truman - Sep-01-2019, 11:41 PM
RE: A trouble with VS Code - by Larz60+ - Sep-02-2019, 04:23 AM
RE: A trouble with VS Code - by Truman - Sep-02-2019, 03:36 PM
RE: A trouble with VS Code - by Truman - Sep-03-2019, 08:02 PM
RE: A trouble with VS Code - by Larz60+ - Sep-04-2019, 10:24 PM
RE: A trouble with VS Code - by Truman - Sep-04-2019, 11:14 PM
RE: A trouble with VS Code - by Larz60+ - Sep-05-2019, 03:36 AM
RE: A trouble with VS Code - by snippsat - Sep-05-2019, 12:02 PM
RE: A trouble with VS Code - by Truman - Sep-05-2019, 12:31 PM
RE: A trouble with VS Code - by perfringo - Sep-05-2019, 12:48 PM
RE: A trouble with VS Code - by snippsat - Sep-05-2019, 02:11 PM
RE: A trouble with VS Code - by Larz60+ - Sep-05-2019, 02:13 PM
RE: A trouble with VS Code - by Truman - Sep-05-2019, 02:53 PM
RE: A trouble with VS Code - by snippsat - Sep-05-2019, 04:02 PM
RE: A trouble with VS Code - by Truman - Sep-05-2019, 04:52 PM
RE: A trouble with VS Code - by snippsat - Sep-05-2019, 05:21 PM
RE: A trouble with VS Code - by Truman - Sep-05-2019, 05:27 PM
RE: A trouble with VS Code - by adt - Sep-08-2019, 03:58 PM
RE: A trouble with VS Code - by snippsat - Sep-09-2019, 05:40 AM
RE: A trouble with VS Code - by adt - Sep-09-2019, 08:34 AM
RE: A trouble with VS Code - by snippsat - Sep-09-2019, 12:22 PM
RE: A trouble with VS Code - by adt - Sep-09-2019, 04:03 PM
RE: A trouble with VS Code - by snippsat - Sep-09-2019, 09:50 PM
RE: A trouble with VS Code - by Truman - Sep-21-2019, 10:05 PM
RE: A trouble with VS Code - by Truman - Sep-25-2019, 10:23 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020