hsimpson / vscode-glsllint

VSCode extension to lint GLSL shading language files
MIT License
76 stars 11 forks source link

glslangValidator error in CodeServer #45

Open chiaravalle opened 2 years ago

chiaravalle commented 2 years ago

Hello everyone. Here is my setup: CodeServer 3.12.0, onto Linux Debian Stable, onto Termux from F-Droid, onto Android Q, onto a SM-G950F device. I successfully built glslangValidator, here is the output for --version:

Glslang Version: 10:11.7.0
ESSL Version: OpenGL ES GLSL 3.20 glslang Khronos. 11.7.0
GLSL Version: 4.60 glslang Khronos. 11.7.0
SPIR-V Version 0x00010500, Revision 4
GLSL.std.450 Version 100, Revision 1
Khronos Tool ID 8
SPIR-V Generator Version 10
GL_KHR_vulkan_glsl version 100
ARB_GL_gl_spirv version 100

My path to the binary file is: /root/glsl/glslang/Test

I'm using the 1.5.1 extension version.

I'm getting this error:

GLSL Lint: Failed to spawn 'glslangValidator' binary. 
Error: spawn /root/glsl/glslang/Test/glslangValidator ENOENT

What should I do?

Thanks for any help

hsimpson commented 2 years ago

Hm looks like an exotic development setup ;-) For whatever reason the extension can not spawn the glslangValidator binary. Maybe the VSCode in CodeServer runs under a different user which has not the needed rights? Anyway the version 1.5.1 is a bit old (reason version is 1.7.1) but this would probably not help.

So can you check if the path to the glslangValidator binary is correct, have you configured it within the extension settings or via $PATH?

chiaravalle commented 2 years ago

I've set it up in the extension settings. I don't know if code-server runs as a different user, but I guess it doesn't, also because I only have root, AFAIK. I'm not 101% sure about this, tough. The path is correct, because I can run the program from the CLI, but it's not in the PATH variable.

By the way, I also tried with a Windows 10 PC - the extension version is more recent - and it works.

I also saw, with the Win setup, the extension I'm using in Termux is deprecated, but it doesn't show the latest one (in code-server) Maybe I should manually download and install it?

P.S.: I manually downloaded and installed latest .vsix, no luck

hsimpson commented 2 years ago

How can I reproduce this? I have no experience with code-server