vscode-python: Extension host terminated unexpectedly

Environment data

VS Code version:

  • Version 1.19.0-insider
  • Commit 8a12b294de610aab61c32c02c7c148d981cf07e4
  • Date 2017-12-04T05:14:19.063Z
  • Shell 1.7.9
  • Renderer 58.0.3029.110
  • Node 7.9.0
  • Architecture x64

Python Extension version: Version 0.8.0 (9 November 2017) Python Version: Python 3.6.3 :: Anaconda, Inc. OS and version: Windows 10 Enterprise Edition

Actual behavior

image

Expected behavior

Start MS Python extension

Steps to reproduce:

  • Install ms-python extension from Microsoft
  • Create new empty py file.
  • Wait for an amount of time after opening Python file. Error appears.

Logs

Output from Python output panel

Output from Console window (Help->Developer Tools menu)


/C:/Program Files/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.main.js:2734 Extension host terminated unexpectedly.
e.doShow @ /C:/Program Files/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.main.js:2734

image

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 1
  • Comments: 124 (11 by maintainers)

Most upvoted comments

我也解决了,解决方法是: 删除了path变量中自己添加JAVA环境变量时不小心多写的;符号。删除后就解决了问题。 感谢@mawenzy

I experienced the same issue on Windows 10. For me, the problem seems to have to do with my Path variables. Using a semicolon in one of those crashes the extension host. When I remove the Path variable with the semicolon, everything seems to work fine again.

Closing, we will track issue #1698 that will resolve this issue from our end.

@mawenzy Thanks, it solves my issue! for my case, when I type “path” in cmd, results contain path with “”, like PATH=path1;“path2”;path3… I find one cases may cause this issue, that is using alias path, such as %CUDA_PATH%;%CUDA_SDK_PATH%. After I replaced alias path with full path, issue disappeared.

@brettcannon adding a semicolon to a path results in this particular path to be written in quotations marks, so usually it looks like this: PATH=path1;path2;path3 But when for example path2 has a semicolon in it, is reads: PATH=path1;"path2";path3

@brettcannon Yes, when I disable python extensions, there is no hint of an extended host crash.

@DonJayamanne I am thankful that you have payed so much attention to my issue. One day, a friend of mine suggested me to try to use Anaconda, and after which, the plugin works successfully! Thank you again for your help!

Unfortunately not because the error is “it crashed” which doesn’t help debug why the extension crashed.