-
Notifications
You must be signed in to change notification settings - Fork 278
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
sourcekit-lsp client crashes after any run command in Neovim #1739
Comments
Oh, that’s interesting. We’re crashing in sourcekit-lsp/Sources/LanguageServerProtocol/SupportTypes/DocumentURI.swift Lines 59 to 61 in dd95a3d
I’m wondering what kind of URI is producing this. Would you be able to enable extended logging as described here, reproduce the issue and attache the log file produced by that? |
The logs with extented logging enabled BTW this is the project I'm playing with |
Did you install the profile mentioned in the macOS section of the document I linked and then reproduce the issue? Your new log still shows |
Oh sorry, I setup the wrong step (.sourcekit-lsp/config.json). Now with the profile activated. |
Thanks for the log. It looks like your editor is sending the a
While SourceKit-LSP shouldn’t crash on this, this indicates that something in neovim or the plugins you have installed in neovim is wrong because it should probably include the file path in the request. |
Thank you so much man! I found the plugin that was causing the issue. |
Let’s keep the issue open to make sure SourceKit-LSP doesn’t crash in this case but returns an error. |
Synced to Apple’s issue tracker as rdar://137886470 |
Swift version
Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
Platform
macOS 14.7
Editor
Neovim
Description
When I open a xcworkspace or xcodeproj project in Neovim, sourcekit-lsp loads normally, but if I execute anything like (:Telescope, open explorer, :XcodebuildPicker, ...) it quit with this message:
Client sourcekit quit with exit code 0 and signal 5. Check log for errors: /Users/gustavo/.local/state/nvim/lsp.log
And nothing was logged in the lsp.log. But in Console App there is a sourcekit-lsp crash report.
Steps to Reproduce
mkdir MyDemo && cd MyDemo && tuist init --name MyDemo
tuist generate
Logging
log.txt
The text was updated successfully, but these errors were encountered: