julia lsp exiting immediatly #10760
-
SummaryThe julia lsp does not work at all for me in helix. Reproduction StepsI tried this:
I expected this to happen: Instead, this happened: Helix log~/.cache/helix/helix.log
PlatformLinux 6.8.9 NixOS Terminal Emulatorwezterm 20240203-110809-5046fc22 Installation Methodnixpkgs unstable Helix Versionhelix 24.3 (2cadec0) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
maybe i'm just confused about the way I need to activate the julia environment |
Beta Was this translation helpful? Give feedback.
-
The |
Beta Was this translation helpful? Give feedback.
-
I'm getting the same issues. I've tried updating [[language]]
name = "julia"
scope = "source.julia"
injection-regex = "julia"
file-types = ["jl"]
roots = ["Project.toml", "Manifest.toml", "JuliaProject.toml"]
comment-token = "#"
language-servers = ["julia"]
indent = { tab-width = 4, unit = " " }
[language-server.julia]
command = "julia"
args = [
"--startup-file=no",
"--history-file=no",
"-e",
"using Pkg; Pkg.activate(\"@LanguageServer\"); using LanguageServer, SymbolServer; runserver()"
] After installing Julia I would then add the LSP package with :
I've tried this both in my MacOS environment and when in my nix devShell to get it going but with no success. Logs
2025-03-26T23:55:14.548 helix_lsp::transport [ERROR] julia err <- " Activating project at There are some unknowns here and I'm not ruling out issues based on the configuration of my machine. But I have been able to get the LSPs on all other languages I've needed to use to work just fine via my usual methods. Thus my attempt at bumping this. Hope I've given enough info |
Beta Was this translation helpful? Give feedback.
The
err <-
lines in the log are what julia is printing to stderr when run. You should see the same when running the command for that language server:julia --startup-file=no --history-file=no --quiet -e "using LanguageServer; runserver()"
. It looks like you may need to install the language server's package