Can't run/debug within vscode
See original GitHub issueFrustratingly, I can’t get my code to run from within vscode, so I’m not able to debug within vscode which is slowing down my development…
The issue arises when I try to initiate vedo.plotter.Plotter()
when running from vscode, when I get this error:
ERROR: In /work/standalone-x64-build/VTK-source/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx, line 1223
vtkXOpenGLRenderWindow (0x5587f7b42cf0): bad X server connection. DISPLAY=Aborted (core dumped)
If I run the same code directly in terminal, it runs fine, so this is an issue with the way vscode is configured, but I can’t find any answers online.
This seems to be an issue on all vscode installations I have running on Ubunut (in this case 20.04). Here’s the vscode info:
Version: 1.51.0
Commit: fcac248b077b55bae4ba5bab613fd6e9156c2f0c
Date: 2020-11-05T18:16:10.374Z
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Linux x64 5.4.0-52-generic snap
Similarly, I’m unable to open up browser windows from vscode (for example plotly fig.show()
and selenium driver = webdriver.Chrome(chromedriver)
won’t open browser windows. I get the following error with selenium:
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.
(unknown error: DevToolsActivePort file doesn't exist)
Similarly, this works fine direct from the terminal.
I’d really appreciate any help!
Jonny
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
Seems the issue is with the default
console
setting on vscode and changing it inlaunch.json
fixed the problem, in my case toexternalTerminal
with theTerminal > External: Linux Exec
setting set to the defaultx-terminal-emulator
.Here’s my
launch.json
settings:Hope this helps anyone else who may be dealing with similar issues.
Thanks @marcomusy. I tried installing that package but it doesn’t change running in vscode unfortunately.
You’re correct, this is not an issue with
vedo
.