-
Notifications
You must be signed in to change notification settings - Fork 61
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
Environment variables and PATH not passing through in 1.2.3 #52
Comments
Update: it may have something to do with Somehow I had a global installation of Removing the global installations allowed me to get the production build of the extension to call the language server executable properly, but it still fails under test. Does the Extension Development Host have its own set of shell parameters? |
Update: a little more digging and it looks like I get this error on startup:
which is detailed in this issue - microsoft/vscode#36987 The fix is to apply this setting:
but I'm unsure how to do it when testing. |
Ok this appears to have fixed the issue:
I needed to unset the |
Glad you found a solution. I'm not very familiar with what nvm is doing. |
Hello! I'm trying to test my VS Code extension which starts a language server by executing a command on the PATH, but none of the system's environment variables seem to be passing through to the test runner. This is causing my tests to fail with an
ENOENT
error as the executable is not able to be located on the PATH.Despite passing in the entirety of
process.env
torunTests()
, no environment variables are available in the test runner script specified byextensionTestsPath
:In the extensionTestsPath file:
#20
The text was updated successfully, but these errors were encountered: