-
-
Notifications
You must be signed in to change notification settings - Fork 354
The Lua server crashed 5 times in the last 3 minutes. #1911
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
It looks like some memory is corrupted. I added a test option, you can use If there is still memory being corrupted, there should be more detailed error messages. |
Recompile the Language server? Where do I start? I've only installed it from the VSCode marketplace so far. |
@sumneko Is there an easy way or guide to recompile and deploy a VSCode version of the server? |
Please check this wiki: https://github.com/LuaLS/lua-language-server/wiki/Getting-Started#build make.sh is a simple script, you can modify it or manually runs the commands: #!/usr/bin/env bash
git submodule update --init --recursive
pushd 3rd/luamake
./compile/install.sh
popd
./3rd/luamake/luamake -sanitize -notest |
I have been meaning to put together a wiki entry that goes in depth on testing/debugging so that the VS Code extension could be opened in extension debug host mode. I know how it can be done for testing client changes, but I haven't tried compiling the server before. |
Ok, I'll try that. How do I get the extension to talk to the version of the server that I compiled instead of the one bundled with the extension? |
It compiled nicely and is running (via the suggested wrapper script) from the project folder. This is what I get now when opening my project in VS Code, from the output window in VS Code: file_home_permal_code_du-y-flight-core.log This toast is shown by VS Code: The language server itself only has this in the window so I'm not sure it actually connected?
Log
|
It probably isn't, since I get the same even when shutting down the newly built server. |
You can replace
|
Oh, yes ofc. I'll do that and report back when I get some output. |
Not the originally reported crash, but it looks the same as the one in #1911 (comment) I was just browsing my code when it happened. |
I think it is another issue. This error is protected and is nothing to do with the crash, I will fix it. |
Captured this just now: Log
|
@PerMalmberg I have fixed it, please let me know if it still doesn't work. |
Recompiled and using it now. I'll be back with an update. |
No more crashes 👍 |
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Linux
What is the issue affecting?
Other
Expected Behaviour
Not to crash
Actual Behaviour
After some use, the Lua server crashes, with the following in hte VSCode output window.
The line
corrupted double-linked list (not small)
is likely a hint to the reason.Reproduction steps
I haven't seen any pattern in what triggers the crash.
Additional Notes
No response
Log File
file_home_permal_code_du-y-flight-core.log
The text was updated successfully, but these errors were encountered: