Replies: 3 comments
-
I've had this happen to me in the past when I had overlapping paths in my
...and you have Symlinks are something to look out for as well. If the same file can be accessed at two different paths due to a symlink, it may get loaded twice. It's a little easier to catch this condition by looking in the log file to observe what files the language server is loading (this may require raising the log level). I don't recall if If none of this helps, maybe open an issue and include your full config and log files so somebody can take a look. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the feedback. Took a while to get back to this project, but did want to respond. My project is completely outside the paths defined in
where the project space is set up as (in
Nothing is defined for Something odd did happen when I did some project clean-up. I decided to consistently name my files. Specifically capitalizing the names. Thus, this file changed from settings.lua to Settings.lua. And when that happened, the message went away for the instances I reported above. It wasn't a fix for the overall problem, though (this message is occurring for other files). I did look at the log and nothing stands out to correlate with this issue. Searches for the offending file, alias name, and part of the message text ('duplicate') are not present in the server log and only file mentions in direct project log (and even then, only referencing the rename operation). I guess I'll have to open an issue. |
Beta Was this translation helpful? Give feedback.
-
Please open an issue and provide a minimum example that can be reproduced |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Starting this as a discussion since I don't think this is an issue, but I'm not sure why I'm getting a diagnostic message complaining about "Duplicate defined class" for a couple aliases.
Given the aliases defined as so
You can see the yellow squigglies for both of them. The diagnostic message is also the same (duplicate definition).
Doing an unfiltered search across the entire folder, I only see the single definition and the subsequent usage of valueType (groupType demonstrates similar search results)
I've tried moving the aliases above the class declaration above, but it didn't make a difference for me.
I'm looking for any insights as to why these two are misbehaving. I'm using alias elsewhere, but I'm not seeing this same symptom.
Full file where the aliases are declared is included to facilitate independent analysis.
settings.zip
Beta Was this translation helpful? Give feedback.
All reactions