Skip to content
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

cannot start lsp in neovim because cannot find version? #1894

Open
lost22git opened this issue Dec 18, 2024 · 3 comments
Open

cannot start lsp in neovim because cannot find version? #1894

lost22git opened this issue Dec 18, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@lost22git
Copy link

Swift version

Swift version 6.0.3 (swift-6.0.3-RELEASE) Target: aarch64-unknown-linux-android24

Platform

android termux

Editor

neovim v0.10.2

Description

  • errror message
   Warn  07:30:55 notify.warn Client sourcekit quit with exit code 0 and signal 11. Check log for errors: /data/data/com.termux/files/home/.local/state/nvim/lsp.log
  • lsplog:
    no any errror messages

  • lspinfo:

LSP configs active in this buffer (bufnr: 103) ~
- Language client log: ~/.local/state/nvim/lsp.log
- Detected filetype: `swift`
- 0 client(s) attached to this buffer
- Other clients that match the "swift" filetype:
- Config: sourcekit
  filetypes:         swift, objc, objcpp, c, cpp
  cmd:               /data/data/com.termux/files/usr/bin/sourcekit-lsp
  version:           `OVERVIEW: Language Server Protocol implementation for Swift and C-based languag…` (Failed to get version) Tried:
  `/data/data/com.termux/files/usr/bin/sourcekit-lsp --version`
  `/data/data/com.termux/files/usr/bin/sourcekit-lsp -version`
  `/data/data/com.termux/files/usr/bin/sourcekit-lsp version`
  `/data/data/com.termux/files/usr/bin/sourcekit-lsp --help`
  
  executable:        true
  autostart:         true

Steps to Reproduce

No response

Logging

No response

@lost22git lost22git added the bug Something isn't working label Dec 18, 2024
@ahoppen
Copy link
Member

ahoppen commented Dec 19, 2024

Synced to Apple’s issue tracker as rdar://141716848

@ahoppen
Copy link
Member

ahoppen commented Dec 19, 2024

Looks like sourcekit-lsp is crashing with a segmentation fault (signal 11). It trying to print the version seems to be unrelated.

A couple questions to help us triage this issue:

  • Are you seeing this issue when opening any project in SourceKit-LSP or only with one specific project? If so, would you be able to attach that project?
  • It look like you’re running sourcekit-lsp on Android. Are you seeing the crash on other platforms except for Android?
  • I am not familiar with Android development. Would you be able to get a stack trace for the crash, eg. by attaching a debugger to sourcekit-lsp before it crashes?

@lost22git
Copy link
Author

Maybe related to this: termux/termux-packages#22229 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants