Repository navigation
Closed
Labels
area-environmentsFeatures relating to handling interpreter environmentsbugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-priorityregressionBug didn't exist in a previous release
Description
Issue Type: Bug
Error 2020-07-22 20:17:13: stderr jediProxy Error (stderr) Traceback (most recent call last):
File "c:\Users\aaa\.vscode\extensions\ms-python.python-2020.7.94776\pythonFiles\lib\python\jedi\inference\compiled\subprocess\__init__.py", line 261, in _send
is_exception, traceback, result = pickle_load(self._get_process().stdout)
File "c:\Users\aaa\.vscode\extensions\ms-python.python-2020.7.94776\pythonFiles\lib\python\jedi\_compatibility.py", line 396, in pickle_load
return pickle.load(file, encoding='bytes')
EOFError: Ran out of input
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\Users\aaa\.vscode\extensions\ms-python.python-2020.7.94776\pythonFiles\lib\python\jedi\api\environment.py", line 75, in _get_subprocess
info = self._subprocess._send(None, _get_info)
File "c:\Users\aaa\.vscode\extensions\ms-python.python-2020.7.94776\pythonFiles\lib\python\jedi\inference\compiled\subprocess\__init__.py", line 273, in _send
stderr,
jedi.api.exceptions.InternalError: The subprocess D:\Program-Files\Anaconda3\envs\py36-idea\python.exe has crashed (EOFError('Ran out of input',), stderr=).
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\Users\aaa\.vscode\extensions\ms-python.python-2020.7.94776\pythonFiles\completion.py", line 661, in watch
response = self._process_request(rq)
File "c:\Users\aaa\.vscode\extensions\ms-python.python-2020.7.94776\pythonFiles\completion.py", line 589, in _process_request
all_scopes=True,
File "c:\Users\aaa\.vscode\extensions\ms-python.python-2020.7.94776\pythonFiles\lib\python\jedi\api\__init__.py", line 885, in names
return Script(source, path=path, encoding=encoding).get_names(
File "c:\Users\aaa\.vscode\extensions\ms-python.python-2020.7.94776\pythonFiles\lib\python\jedi\api\__init__.py", line 185, in __init__
project, environment=environment, script_path=self.path
File "c:\Users\aaa\.vscode\extensions\ms-python.python-2020.7.94776\pythonFiles\lib\python\jedi\inference\__init__.py", line 90, in __init__
self.compiled_subprocess = environment.get_inference_state_subprocess(self)
File "c:\Users\aaa\.vscode\extensions\ms-python.python-2020.7.94776\pythonFiles\lib\python\jedi\api\environment.py", line 114, in get_inference_state_subprocess
return InferenceStateSubprocess(inference_state, self._get_subprocess())
File "c:\Users\aaa\.vscode\extensions\ms-python.python-2020.7.94776\pythonFiles\lib\python\jedi\api\environment.py", line 80, in _get_subprocess
exc))
jedi.api.environment.InvalidPythonEnvironment: Could not get version information for 'D:\\Program-Files\\Anaconda3\\envs\\py36-idea\\python.exe': InternalError("The subprocess D:\\Program-Files\\Anaconda3\\envs\\py36-idea\\python.exe has crashed (EOFError('Ran out of input',), stderr=).",)
Extension version: 2020.7.94776
VS Code version: Code 1.47.2 (17299e413d5590b14ab0340ea477cdd86ff13daf, 2020-07-15T18:22:06.216Z)
OS version: Windows_NT x64 10.0.18363
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz (4 x 2592) |
| GPU Status | 2d_canvas: enabled flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: disabled_off protected_video_decode: unavailable_off rasterization: enabled skia_renderer: disabled_off_ok video_decode: enabled viz_display_compositor: enabled_on viz_hit_test_surface_layer: disabled_off_ok webgl: enabled webgl2: enabled |
| Load (avg) | undefined |
| Memory (System) | 15.89GB (7.72GB free) |
| Process Argv | E:\downloads\chrome |
| Screen Reader | no |
| VM | 0% |
Reacted by Jorden Liang, koonyook and Zayed Kherani
Metadata
Metadata
Assignees
Labels
area-environmentsFeatures relating to handling interpreter environmentsbugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-priorityregressionBug didn't exist in a previous release

Activity
kimadeline commentedon Jul 23, 2020
Hi jianboy, thank you for reaching out.
It seems like the problem you're having is related to your conda environment, how did you create it?
What happens if you run
D:\\Program-Files\\Anaconda3\\envs\\py36-idea\\python.exe -c "import sys; print(sys.executable)"?Do you have another python installation on your computer that you could use to try and see if this problem also appears there?
jianboy commentedon Jul 24, 2020
I had installed anaconda successfully.

running
D:\\Program-Files\\Anaconda3\\envs\\py36-idea\\python.exe -c "import sys; print(sys.executable)":I had degrade vscode-python to
v2020.3.71113. and it is no error. So I can conclude that it’s the latest vscode-python plugin problem.e-c-d commentedon Jul 27, 2020
I am experiencing the same issue. I am using Python 3.6.4 and conda 4.4.10. The issue only manifests with virtual environments (created via conda).
I've checked previous releases, and this issue was introduced in 2020.7.94776. Previous release 2020.6.91350 is unaffected.
My procedure for testing/downgrade was as follows:
settings.jsonfalse.kimadeline commentedon Jul 27, 2020
Thank you for checking that it works with 2020.3.71113 jianboy, I will mark this as a regression.
Eduard Christian Dumitrescu (@e-c-d)
Please giveSorry I misread the previous version as 2020.6.71113. Thank you for checking that the previous release of the extension works!2020.3.71113a try and see if it works for you too.For both of you:
Notes
Related issues
Might be related to our Jedi upgrade to 0.17.1: #12486
But then we updated to 0.17.2: #13037
Downgrading
Another way to downgrade without having to download the extension VSIX manually can be done by following the prompts from "Extensions: Install Specific Version of Extension..." in the command palette:
Or you can open the extensions side bar, click on the settings for the Python extension and pick "Install Another Version...":
2 remaining items
brettcannon commentedon Jul 27, 2020
FYI if people want to have IntelliSense with the latest release of the extension while we try to figure out the cause of the issue, you can try out https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance which is our new language server.
e-c-d commentedon Jul 27, 2020
By cloning the base environment,
conda create --name your-name --clone base.I only have the one Python install. This is a high security environment, so bringing in additional python versions is strongly discouraged. I tried using the MS Python Language Server, but it fails to download with a TLS error. Again, because it's a high security environment so we have one of those annoying man-in-the-middle firewalls that require you to install a custom root certificate. I haven't looked hard enough into how to install a custom root certificate into the VSCode certificate store.
I tried that initially, but for some reason the list wouldn't load. Again, I'd blame the firewall.
kimadeline commentedon Jul 27, 2020
Fair enough 🙂
Would setting the
http.proxyStrictSSLsetting tofalse(or unchecking it in the User settings UI) work?The general discussion for proxy support for VS Code extensions can be found here: microsoft/vscode#12588
🤔 If it's something that happens for all extensions it might be worth reporting it to VS Code. In any case, thank you for giving it a try!
karthiknadig commentedon Jul 27, 2020
Eduard Christian Dumitrescu (@e-c-d) While we figure out what is going on with this. Can you try Pylance? You can download it from the marketplace and install it alongside the core Python extension. Because our team's development efforts have shifted to support the new language server, we encourage you to try it out.
jianboy commentedon Jul 27, 2020
All python version has error. I think it has nothing to do with the python version. python plugin has problem I test version :
I can not install another verison from vscode directly. So I had to download from github.

By using the dichotomy, I can already locate the version that caused the problem
karthiknadig commentedon Jul 28, 2020
jianboy Can you try with this version and see if you get this error: https://pvsc.blob.core.windows.net/extension-builds/ms-python-insiders.vsix ?
jianboy commentedon Jul 28, 2020
I had download and try it. this insiders plugin has no error.
karthiknadig commentedon Jul 28, 2020
jianboy Thank you for confirming.
karthiknadig commentedon Jul 28, 2020
This was an issue with jedi (0.17.1): davidhalter/jedi#1627 , the fix is in jedi 0.17.2. Insiders version of the extension is already updated to use jedi 0.17.2.
Closing this issue, the fix will be available in the next stable release. Meanwhile for anyone running into this issue, please try insiders version of the extension: https://pvsc.blob.core.windows.net/extension-builds/ms-python-insiders.vsix
karthiknadig commentedon Jul 28, 2020
Fixed via #13037