JacquesLucke / blender_vscode

Visual Studio Code extension for Blender development.
MIT License
545 stars 74 forks source link

Blender not starting from vscode integrated terminal #79

Open albop opened 3 years ago

albop commented 3 years ago

I'm on Ubuntu 20.04 in the default wayland session, with Blender 2.82 installed via apt (same result with a snap), and vscode-insiders 1.50 . When running command "Blender Start", I get

> Executing task: /usr/bin/blender --python /home/pablo/.vscode-insiders/extensions/jacqueslucke.blender-development-0.0.12/pythonFiles/launch.py <

Unable to open a display

Terminal will be reused by tasks, press any key to close it.

Pasting the command in a regular system terminal does launch Blender.

On the other hand pasting the command "blender --python" in the vscode terminal already raises the same error "Unable to open a display"

JacquesLucke commented 3 years ago

If even blender --python exits with this error in the normal terminal, I don't know what I can do about it unfortunately...

That might be a bug in Blender, because you can reproduce it without vscode.

albop commented 3 years ago

Sorry, maybe I wasn't super clear. It does work from a system terminal but not from vscode's terminal which is used by your extension. The error message makes me think complicated (for me) X11/wayland access right. I"m trying several combinations (server, video driver) to see whether I can provide better information.

albop commented 3 years ago

Small update: