1. preface
After using vscode to install the plug-in: glsl lint, there is an error every time you start vscode:
glsl lint: failed to spawn ‘glslangvalidator’ binary Error: spawn glslangValidator. Exe enoent
and vscode will not be automatically colored and highlighted every time the shader program is opened. At this time, I reinstall the glsl lint plug-in. It’s troublesome
glslangValidator is a custom GLSL reference compiler from the Khronos Group, the official OpenGL standard customizer. The command line compilation mode facilitates users to test glsl syntax directly and bypass the C/C++ related dependency libraries compilation, and there is no need to write a lot of initialization code in the main file. This can save a lot of time in practical testing. In many websites such as shadertoy, the glsl code written by users can be compiled and run directly in the main function, which requires a convenient syntax check, and the shadertoy website also provides a simple syntax check. However, glslang is a standard custom official compiler, so the compiled glsl code can be compiled correctly on all kinds of drivers that support GLSL syntax.
2. Solution steps
1. Open vscode settings
2. Search “security.workspace.trust”
Enter “security.workspace.trust” in “search settings” (just enter “security”)
3. Cancel ssecurity.workspace.trust:Enabled
Remove the hook in front of “security.workspace.trust:Enabled”
Just restart vscode
Read More:
- How to Solve Error: spawn xxxx ENOENT
- Start failure: spawn CMD enoent error (How to Fix)
- [ERROR] [1632398141.557684, 290.045000]: Spawn service failed. Exiting.
- [Solved] Frida spawn process failed on Android ‘Error: VM::AttachCurrentThread failed: -1
- [Solved] VIVADO Compile Error: Spawn failed: No error
- Hexo Error: error: spawn failed [How to Solve]
- [How to Modify] etcd-server-8-12: ERROR (spawn error)
- How to Solve Brew install golangci-lint Error
- [Solved] Matlab Code generate error: failed to generate all binary outputs
- [Solved] open failed: ENOENT (No such file or directory)
- [Solved] Android Kotlin Package release Error: Lint found fatal errors while assembling a release target.
- GO Exception Runnerw.exe: CreateProcess failed with error 21
- [Solved] UE4 Android Package Error: cmd.exe failed with args
- How to Solve error: command ‘C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin\nvcc.exe‘ failed
- [Error] invalid operands to binary ^ (have ‘double‘ and ‘float‘)
- [Solved] scala Error: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exe
- [Solved] Message from debugger: debug-server is x86_64 binary running in translation, attached failed.
- How to Solve QT error: LNK1158: Cannot Run “rc.exe”
- [Solved] Windows startup error: unable to find launcherrsxruntime.exe
- How to Fix Spoolsv.exe Application Error