nolanderc / glsl_analyzer

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

Include support on Windows #14

Closed dylanblokhuis closed 9 months ago

dylanblokhuis commented 9 months ago

Great work on this project! I tried using it on windows and ran into this issue, I think the way paths are interpreted on windows is wrong and is leading to FileNotFound errors (in vscode):

#include "global.glsl"

#define INSTANCE_MASK_OPAQUE 0x01

void main () {}
debug: hover: 14:16 file:///c%3A/Users/dylan/dev/test/shader/gbuffer.glsl
debug: hover word: 'INSTANCE_MASK_OPAQUE'
error: could not open 'file:///c%3A/Users/dylan/dev/test/shader\\global.glsl': FileNotFound
nolanderc commented 9 months ago

Right, the current implementation doesn’t support percent-encoding. I’ll try to get a fix in when I get back from work 🙂

nolanderc commented 9 months ago

This should be fixed in v1.1.1. If not, please reopen the issue :slightly_smiling_face: