Closed 1216892614 closed 2 years ago
Hi,
It seems that this configuration isn't valid. Please either remove the validatorArgs
setting completely or remove the whitespace after "n", so it reads null
. Also, I'm not sure how windows goes about running executable files, but maybe try adding .exe
to the validator path. Please make sure that the path is valid too.
Hope this helps. Sorry for the late response, but I was away from home this week.
sorry for my late . In my test,fixed"null" and both \bin and .exe path can not help.I still can not use validator.
That's interesting. When you run cmd.exe
and type in:
C:\Users\usr\.vscode\extensions\mrjjot.vscode-glsl-linter-1.2.0\glslangValidator
does the validator run?
its work.That
s strange.
hndpp@DESKTOP-DITUETB bin .\glslangValidator.exe
Usage: glslangValidator [option]... [file]...
'file' can end in .<stage> for auto-stage classification, where <stage> is:
.conf to provide a config file that replaces the default configuration
(see -c option below for generating a template)
.vert for a vertex shader
.tesc for a tessellation control shader
.tese for a tessellation evaluation shader
.geom for a geometry shader
.frag for a fragment shader
.comp for a compute shader
.mesh for a mesh shader
.task for a task shader
.rgen for a ray generation shader
.rint for a ray intersection shader
...
The only error i got is from my VSCode
GLSL Linter: failed to run GLSL validator!
PS:Path is changed in VSCode json befor last comment
Hm, and what happens if you replace all \
with /
in your validatorPath
? Maybe the command is ran in some internal UNIX shell emulator or something? Given that the path is correct, I don't really have more ideas what could be wrong
but my json is:
"glsl-linter.validatorPath": "C:\\Users\\usr(true path is my username here.)\\.vscode\\extensions\\glslang-master-windows-x64-Release\\glslangValidator.exe",
That is written by VSCode setting gui.
Yes, but can you try what happens if you use
"glsl-linter.validatorPath": "C:/Users/usr(true path is my username here.)/.vscode/extensions/glslang-master-windows-x64-Release/glslangValidator.exe",
instead?
It still do not wor.I don't have more idea too , software is be reinstall for many times
There's one more thing that comes to my mind. Can you try this extension: https://marketplace.visualstudio.com/items?itemName=CADENAS.vscode-glsllint and see if it works? If it does, this means that the problem lies in my extension. If it doesn't - probably something is wrong with your Code installation.
I'll try later.
That extension is work on my VSCode just after validator path set.
Alright then. I'll try to reproduce this error on my Windows PC later and let you know if I find out anything.
Hi again. I still haven't had a chance to try to reproduce this issue on my Windows machine, but I have a new suggestion.
Today I learned that Windows sometimes likes to cause problems with paths if your username contains non-ASCII characters. Does your contain such? Can you please try installing the glslangValidator.exe
at a "simpler" location, maybe something like C:\glslangValidator\glslangValidator.exe
and then try to run it from Code?
error:GLSL Linter: GLSL validator returned exit code 1!
path:C:\glslang-master-windows-x64-Release\bin\glslangValidator.exe
PS:\ is \\ in json,and i think where problem is in validatorArgs.
I have unziped glslangValidator in .vscode\extensions\mrjjot.vscode-glsl-linter-1.2.0 (Win64).Then I set Validator path in VSCode Setting.But my linter just don`t work,output"GLSL Linter: failed to run GLSL validator!"after every Ctrl+S.
I download Validator from [ https://github.com/KhronosGroup/glslang/releases/download/master-tot/glslang-master-windows-x64-Release.zip ] The setting steps i folowed is https://zhuanlan.zhihu.com/p/151384233