You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since a couple days I have this behavior that ALL once set interpreters were forgotten. I have to set them up each time I restart/reload window (I don't do that so often, yes 1 or 2 times a day is not severe. But ....)
It tells me that my debug configuration would be invalid... but that's just standard! See:
my launch.json
{// Use IntelliSense to learn about possible attributes.// Hover to view descriptions of existing attributes.// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387"version": "0.2.0","configurations": [{"name": "Python: Current File","type": "python","request": "launch","program": "${file}","console": "integratedTerminal","justMyCode": true}]}
The Status Bar Python interpreter still shows the valid last choice but when I click it the palette thing still shows Current: .\python\python39\python.exe (which is correct!) but the selection in completely empty. The only item left is "Enter interpreter path...". It's not even seeing the multiple installed system interpreters (#15458 ?)
And after I DO point it to an interpreter it's all working well! And the Status Bar thing shows EXACTLY the same as before.
I was poking around a bit more and in the Output > Python panel there is some interesting stuff:
Output Python
Userbelongstoexperimentgroup'pythonaa'Userbelongstoexperimentgroup'pythonJediLSP'Userbelongstoexperimentgroup'pythonSendEntireLineToREPL'Userbelongstoexperimentgroup'pythonNotDisplayLinterPrompt'Userbelongstoexperimentgroup'pythonDiscoveryModule'Userbelongstoexperimentgroup'pythonFindInterpretercf'Userbelongstoexperimentgroup'PythonPyTorchProfiler'Userbelongstoexperimentgroup'CollectLSRequestTiming - control'Pythoninterpreterpath: .\python\python39\python.exeStartingPylancelanguageserver.Error2021-04-0112:33:58: Failedtoactivateaworkspace,Classname=y,completedin1006ms,hasafalsyreturnvalue,Arg1: <Uri:c:\Users\techarteric\work\st_main\python\lib\common\crypy\test\test_settings.py>,Return Value: undefined[Error: invalidversion-finalatObject.u[asparseBasicVersion](c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:9:198256)atV(c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:80:37379)atq.getInterpreterDetails(c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:80:38849)atprocessTicksAndRejections(internal/process/task_queues.js:97:5)atasyncC.getInterpreterDetails(c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:61:741545)atasyncb.diagnose(c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:61:268434)atasyncc:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:61:253203atasyncPromise.all(index0)atasynch.runDiagnostics(c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:61:253161)atasynch.performPreStartupHealthCheck(c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:61:253005)atasyncy.activateWorkspace(c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:52:25163)]Error2021-04-0112:33:58: Failureduringactivation.[Error: invalidversion-finalatObject.u[asparseBasicVersion](c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:9:198256)atV(c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:80:37379)atq.getInterpreterDetails(c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:80:38849)atprocessTicksAndRejections(internal/process/task_queues.js:97:5)atasyncC.getInterpreterDetails(c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:61:741545)atasyncb.diagnose(c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:61:268434)atasyncc:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:61:253203atasyncPromise.all(index0)atasynch.runDiagnostics(c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:61:253161)atasynch.performPreStartupHealthCheck(c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:61:253005)atasyncy.activateWorkspace(c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:52:25163)]Error2021-04-0112:33:58: sendStartupTelemetry()failed.[Error: invalidversion-finalatObject.u[asparseBasicVersion](c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:9:198256)atV(c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:80:37379)atq.getInterpreterDetails(c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:80:38849)atprocessTicksAndRejections(internal/process/task_queues.js:97:5)atasyncC.getInterpreterDetails(c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:61:741545)atasyncb.diagnose(c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:61:268434)atasyncc:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:61:253203atasyncPromise.all(index0)atasynch.runDiagnostics(c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:61:253161)atasynch.performPreStartupHealthCheck(c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:61:253005)atasyncy.activateWorkspace(c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:52:25163)]Error2021-04-0112:33:58: FetchingenvironmentsviathenewAPIfailed[Error: invalidversion-finalatObject.u[asparseBasicVersion](c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:9:198256)atV(c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:80:37379)atArray.map(<anonymous>)
at q.getInterpretersViaAPI (c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:80:39997)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async q.getInterpreters (c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:80:39311)
at async C.getInterpreters (c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:61:740434)
at async p.onAutoSelectInterpreter (c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:61:705770)
at async p.autoSelectInterpreter (c:\Users\techarteric\.vscode\extensions\ms-python.python-2021.3.680753044\out\client\extension.js:9:280746)]
Error 2021-04-01 12:34:16: Invalid Python Path 'c:\Users\techarteric\work\st_main\python\python39\python.exe'
hi @ewerybody , sorry for the delay, we released some fixes related the environment issue. Can you install the latest version and see if you still has the error?
Issue Type: Bug
Since a couple days I have this behavior that ALL once set interpreters were forgotten. I have to set them up each time I restart/reload window (I don't do that so often, yes 1 or 2 times a day is not severe. But ....)
It tells me that my debug configuration would be invalid... but that's just standard! See:
my launch.json
The Status Bar Python interpreter still shows the valid last choice but when I click it the palette thing still shows
Current: .\python\python39\python.exe
(which is correct!) but the selection in completely empty. The only item left is "Enter interpreter path...". It's not even seeing the multiple installed system interpreters (#15458 ?)And after I DO point it to an interpreter it's all working well! And the Status Bar thing shows EXACTLY the same as before.
I was poking around a bit more and in the Output > Python panel there is some interesting stuff:
Output Python
This last line:
This path is not invalid! And it's exactly the path I'd set the interpreter to. 🤷♀️ you know .. the one that's working.
repro:
• Start up VS Code (Or just Developer: Reload Window)
• hit Run
• Enter Interpreter Path ...
• Run works, works, works, works...
• goto step 1 ...
Extension version: 2021.3.680753044
VS Code version: Code 1.55.0 (c185983a683d14c396952dd432459097bc7f757f, 2021-03-30T16:01:55.261Z)
OS version: Windows_NT x64 10.0.19042
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: enabled
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: