Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSCode fails to launch from git bash on windows #191133

Closed
imgdevlpr opened this issue Aug 23, 2023 · 1 comment
Closed

VSCode fails to launch from git bash on windows #191133

imgdevlpr opened this issue Aug 23, 2023 · 1 comment
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@imgdevlpr
Copy link

Type: Bug

This used to work for quite a long time until recently. Not sure when this breaking change was triggered. My usual workflow is to open code from a conda environment, whether its from cmd, powershell OR git-bash. I have tried all possible combinations and the main culprit is if I include anaconda in the PATH variable. Not sure how this impacts code launch.

  1. Install git-scm for windows
  2. Install anaconda3 and add anaconda to PATH variable
  3. Install VSCode
  4. Open git-bash and type in code. This fails with the error message:

$ code
node:internal/modules/cjs/loader:1013
throw err;
^

Error: Cannot find module 'C:\Users<user>\AppData\Local\anaconda3\Library\c\Program Files\Microsoft VS Code\resources\app\out\cli.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1010:15)
at Module._load (node:internal/modules/cjs/loader:858:27)
at f._load (node:electron/js2c/asar_bundle:2:13330)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:87:12)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

VS Code version: Code 1.81.1 (6c3e3db, 2023-08-09T22:22:42.175Z)
OS version: Windows_NT x64 10.0.22621
Modes:

@lszomoru
Copy link
Member

Closing as duplicate of #187392 which contains a workaround to resolve this issue.

@lszomoru lszomoru closed this as not planned Won't fix, can't repro, duplicate, stale Aug 30, 2023
@lszomoru lszomoru added the *duplicate Issue identified as a duplicate of another issue(s) label Aug 30, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Oct 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

2 participants