without-browser-env-var variable is not sent to vscode server
See original GitHub issuewithout-browser-env-var is not specified, so tools like create-react-app attempts to start a browser at the vscode defined path and crashes
Sorry for the incomplete data, I will try to edit the issue with the logs and paths appended later
OS/Web Information
- Web Browser: Any (Chrome)
- Local OS: Mac OSX
- Remote OS: Ubuntu
- Remote Architecture: amd64
code-server --version
: 4.0.1
Steps to Reproduce
- Run npm start on integrated terminal for code-server
- Crashes immediately trying to look at browser.sh from vscode
Expected
npm start should start, not crash.
Actual
Crashes
Notes
This is the line that gets appended to the browser env so react crashes (as there should not be a browser env file) https://github.com/microsoft/vscode/blob/6249dab4fe849d0ad11500fabd28ddc204ef12da/src/vs/server/extensionHostConnection.ts#L60
code-server version 3.12.0 doesn’t crash
This issue can be reproduced in VS Code: No
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
Remote Development Tips and Tricks - Visual Studio Code
Visual Studio Code Remote Development troubleshooting tips and tricks for SSH, Containers, and the Windows Subsystem for Linux (WSL)
Read more >VSCode | The editor cannot be opened due to an unexpected ...
I cannot open code or use Terminal. Visual Studio Code screen. Error Message: The editor cannot be opened due to an unexpected error:...
Read more >RCE in Visual Studio Code's Remote WSL for Fun and ...
The vuln is not in VS Code. MSFT says it's in the Remote WSL extension but I think it's in the way VS...
Read more >Get started using VS Code with WSL - Microsoft Learn
Install Visual Studio Code on Windows (not in your WSL file system). ... libraries that are required by the VS Code server to...
Read more >FAQ - code-server v4.8.0 docs - Coder
The core of VS code is open source, while the marketplace and many published Microsoft extensions are not. Furthermore, Microsoft prohibits the use...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We could add that flag although maybe we should implement https://github.com/coder/code-server/issues/1528 which will allow passing any VS Code flag.
Adding the
BROWSER=false
to the env file works!