question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

without-browser-env-var variable is not sent to vscode server

See original GitHub issue

without-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

  1. Run npm start on integrated terminal for code-server
  2. 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:closed
  • Created 2 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
code-ashercommented, Jan 14, 2022

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.

2reactions
migolocommented, Jan 12, 2022

Adding the BROWSER=false to the env file works!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found