-
-
Notifications
You must be signed in to change notification settings - Fork 351
Diagnostic keeps breaking since a few releases #423
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
Comments
Is your problem same as this: #398 |
Don't think so, i can see hover info. I also don't have a good repro, i just wanted to report it as i've seen it happen randomly for a while now :\ |
Please show me the log, see https://github.com./sumneko/lua-language-server/wiki/Default-log-path |
Here are big logs from 1.16, though I'm not sure if it contains the issue. |
From the log, it seems that it is caused by a stack overflow error in the parser, which is usually due to very deep nesting in the script (for example, a 100-level literal table). |
But why does this only happen sometimes, and only when i copy paste something? Why is it not breaking all the time if that is the cause, i only had it happen a few times in the past month or so. I can't even repro is on purpose, if i copy paste stuff around it refuses to break ^^ What i noticed though the Diagnostic seems pretty slow if a lot of files are loaded into workspace, is it crawling through the entire tree of all loaded files even though you are only editing your current file? |
I took a look again, and it seems that the two log files are from different projects:
Which log does the problem you encounter come from? |
Oh, sorry. It was in my workspace, the 'demofile.lua' was a new emmy testing file, but the issue i experienced has been present for 2 months or longer or so? It happend really infrequently and can't reproduce it on purpose. I can update this issue with a new log when it happens again and also take a screenshot. |
May have been fixed, see #398 |
You can close or keep issue open. If i run into the problem again i will update. |
Seems it runs into an endless loop, could you please provide a sample project? |
Problem is that i can't reproduce it in any project, i don't know the trigger :( All workspaces have in common that they use https://github.com./Gethe/wow-ui-source When i encounter this issue and reload vscode it works again. |
Is this fixed? |
So i don't know when this exactly started, but sometimes after copy/pasting code around the diagnostic produces errors that it thinks are in the code, but are not there. Sometimes i can recover this by selecting all text, cutting it out and back in. Using VSCode 1.53.0. It shows a lot of garbage errors, a lot of . (dot) syntax errors, brackets, wrong globals etc, just parsing the file weirdly.
The text was updated successfully, but these errors were encountered: