-
Notifications
You must be signed in to change notification settings - Fork 7
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
Bug: LSP crashes in CLion with the following LUA code #11
Comments
@motor-dev could you please install https://github.com/redhat-developer/lsp4ij?tab=readme-ov-file#testing-nightly-builds and tell me if it is working better? I have tried to fix it but as Icannot reproduce it it ishard to know if the fix is correct. Thanks for your feedback. |
LSP4ij 0.8.2-20241207-172221 [edit] one of the errors disappeared, the other one remains:
|
I have reverted to version 0.8.1 and tested again, and got again the callstack mentioned at the top (java.lang.IllegalStateException: Recursive update). So the update to the nightly build seems to have fixed that part. |
Thanks @motor-dev for your feedback. The fix that I have tried to do was for this IllegalStateException problem. That is great that my fix is working. For the other error, I dont know how to reproduce it? Have you every time this error znd you dont see inlay hints? If you update the editor content do you see inlay hints? |
@motor-dev have you this problem with 0.70 LSP4IJ version, 0.6.0 ? |
Thanks for your feedback. Could you share your full stack trace please. I suspect the problem comes from lua language server. |
I am afraid the full stacktrace is very short
|
@CppCXY I suspect that error comes from your language server, right? |
@motor-dev I suspect that error comes from lua language server. The strange thing is that error should zppear in a notif popup |
It is indeed an error of my language server.
|
Ok thanks @CppCXY but I dont understand why this error appears in the log. It should appear by default in error popup. @motor-dev have you configured that? |
I will check what's going on tomorrow. I have been rewriting the language server in Rust recently, so I haven't had much time for the old language server. |
EmmyLua2 0.7.1.28-IDEA242
LSP4j 8.1.0
The following code in a LUA file crashes the LSP plugin when the file is open in the editor
the whole combination that makes it crash are:
class X
has an __index/setindex metamethod described with@field [string] any
class Y
inherits fromX
Y
I get two different stacktraces:
and
The text was updated successfully, but these errors were encountered: