The terminal process failed to launch: A native exception occurred during launch (File not found: )

Viewed 21305

I keep using vscode debug for long time. But it began to fails to use debug from yesterday.

It reports that The terminal process failed to launch: A native exception occurred during launch (File not found: ).

I can use powershell in terminal.

I have tried solution in (https://code.visualstudio.com/docs/supporting/troubleshoot-terminal-launch), but none of them works.

Code -version: 1.47.3

Operating System version: windows 10 1909 build 18363.959

all extensions:


    albert.TabOut
    christian-kohler.path-intellisense
    CoenraadS.bracket-pair-colorizer-2
    Equinusocio.vsc-community-material-theme
    Equinusocio.vsc-material-theme
    equinusocio.vsc-material-theme-icons
    eryouhao.brackets-light-pro
    formulahendry.code-runner
    formulahendry.terminal
    Gruntfuggly.todo-tree
    HookyQR.beautify
    James-Yu.latex-workshop
    kisstkondoros.vscode-gutter-preview
    manasxx.background-cover
    marlosirapuan.nord-deep
    MS-CEINTL.vscode-language-pack-zh-hans
    ms-python.python
    ms-python.vscode-pylance
    ms-vscode.cpptools
    naumovs.color-highlight
    niudai.vscode-zhihu
    nnthink.aixcoder
    redhat.java
    skacekachna.win-opacity
    sldobri.nord-5-stars
    TabNine.tabnine-vscode
    VisualStudioExptTeam.vscodeintellicode
    vscjava.vscode-java-debug
    vscjava.vscode-java-dependency
    vscjava.vscode-java-pack
    vscjava.vscode-java-test
    vscjava.vscode-maven
    vscode-icons-team.vscode-icons
    wix.vscode-import-cost
    yzhang.markdown-all-in-one
    zhuangtongfa.material-theme

setting.json:


    "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"

5 Answers

In my case this problem arising after updating VS Code version to 1.54.3 on Ubuntu 18.04.

This problem is resolved by restarting VS Code after the update.

Yep, that's kinda what my problem was...PS had been blocked at a system-admin level.

Make sure that you can actually run PS from the command-line or start window.

Win10 popup

I fixed it by change "terminal.integrated.inheritEnv" to false in setting.json.

I also had the same issue and asked the question one week before yet didn't get solution. here is link of my question [link]Visual Studio (VS-code) code terminal is failed to launch

1 solution i got: the issue arises when you delete some of it's files before by mistake and you don't know try to remember that or simply recover your pc to 3 weeks ago atleat so all files will be placed suitably.

I had the error. To fix it, I looked at all the terminal settings in VSCode and checked out the ones that weren't set to the default value. Eventually, I found that the path to my PowerShell had changed to the preview version I had installed. Reverting this to its default got it working again. Hope this helps someone.

Related