nolanderc / glsl_analyzer

Language server for GLSL (autocomplete, goto-definition, formatter, and more)
GNU General Public License v3.0
200 stars 6 forks source link

#include not working in vscode on windows #60

Open deivse opened 6 months ago

deivse commented 6 months ago

When using vscode on windows, using #include results in BadPathName errors in the log. However, when I ctrl-click on one of the paths printed in the errors, vscode succesfully opens the file, so the paths seem to be valid. Interestingly, the susccessfully opened paths in the log all seem to use / as the separator, and the errored paths have \\ in them.

image

nolanderc commented 6 months ago

Could you please include the code snippets thag are failing as well? Are the paths defined with a backslash? Try changing everything to use regular slashes and see if that fixes removes the errors.

deivse commented 6 months ago

Here's the header of the file, I assume everything below shouldn't be important. I'm also using the latest version available in the vscode extension (manually updated today with the download command)

#version 450 core

#include "../common/transform_uniform_block.glsl"
#include "../common/volume_uniform_block.glsl"
#include "../common/util_funcs.glsl"

out layout(location = 0) vec4 FragColor;
nolanderc commented 4 months ago

@deivse could you try compiling and testing https://github.com/nolanderc/glsl_analyzer/pull/65 to see if it fixes you issue. I don't have access to a windows machine at the moment unfortunately...

deivse commented 4 months ago

Hello, I won't have access to my windows machine for a couple more days, but I'll try to find some time to test once I get back. Thank you for reaching out.