(Only on NixOS) helix_lsp [ERROR] failed to initialize language server: request 0 timed out #7866
Answered
by
the-mikedavis
bingis-khan
asked this question in
Troubleshooting
-
SummaryI can't run HLS on NixOS. VSCode with this HLS (1.10) works. Not sure if it should be here or on nixpkgs, but putting it here just in case. Reproduction StepsI tried this:
# heelyx
programs.helix = {
enable = true;
settings = {
theme = "catppuccin_macchiato";
};
languages.language = [
{
name = "haskell";
scope = "source.haskell";
injection-regex = "haskell";
file-types = [ "hs" "hs-boot" ];
roots = [ "Setup.hs" "stack.yaml" "*.cabal" ];
comment-token = "--";
language-server = {
command = "haskell-language-server-wrapper";
args = [ "--lsp" ];
};
indent = {
tab-width = 2;
unit = " ";
};
}
];
}; I expected this to happen: Instead, this happened: Helix log~/.cache/helix/helix.log
PlatformLinux NixOS Terminal Emulatoralacritty Helix Version23.05 |
Beta Was this translation helpful? Give feedback.
Answered by
the-mikedavis
Aug 8, 2023
Replies: 1 comment
-
It looks like the language server is taking too long to start up. You can increase the timeout by setting |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bingis-khan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It looks like the language server is taking too long to start up. You can increase the timeout by setting
timeout
to something larger (the default is20
, in seconds) in thelanguage-server
table (alongsidecommand
andargs
).