-
-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relative preload syntax is not supported #649
Comments
What's the actual problem you're having? "is not supported" could mean anything or nothing. Is there an error message, maybe? |
It is marked as error, and when I hover I get:
|
Thank you. That's very important information that you should have included in your original post. This is a problem with the Godot Language Server not correctly detecting file changes on disk, and not related to this extension. Try restarting your Godot Editor. |
Sadly restarting doesn't fix it for me.
|
Okay, that's a completely different type of error, caused by the actual game engine not finding the specified file. This is even less related to the extension than the first error. I don't use preload() but it looks like you have a typo somewhere or you're specifying your relative path incorrectly. |
Nah, the file is there. I'm observing something interesting. However - if I enable
I'm using symlink in my home directory - so perhaps this is what breaks it... |
So you already know that you've done something wierd but you didn't investigate that first AND you didn't include that information in your initial report? That's a very interesting debugging strategy. |
This is the first time I experienced that some LSP has problem with a symlink. Anyway thanks for your help. Could be better if symlinks were properly resolved, but at least I can open file via Godot. |
I've had problems with symlinks in VSCode in the past. Seems to be a VSCode problem. |
I guess it depends on how you use them. I simply create a symlink to the whole project directory under home. This way I can have common location for mounting drives, but also convenience of organizing stuff in my home dir. Never had a single problem with this approach. From what I see Godot is adamant on using abs paths. When I open a project launcher it shows paths via home. I don't know how this should be fixed, but my initial idea would be to resolve all paths to abs, before sending to LSP, since this is what Godot expects. For example Node can do it via |
Godot version
v4.2.1.stable.arch_linux
VS Code version
1.88
Godot Tools VS Code extension version
2.0.0
System information
ArchLinux
Issue description
Relative preload path is not supported. It is recognized properly inside Godot editor.
Steps to reproduce
The text was updated successfully, but these errors were encountered: