Skip to content

dont propose to restart ghc when not available #338

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

Closed
teto opened this issue Jan 22, 2024 · 2 comments
Closed

dont propose to restart ghc when not available #338

teto opened this issue Jan 22, 2024 · 2 comments
Labels

Comments

@teto
Copy link

teto commented Jan 22, 2024

Feature description

I have almost nothing in my global PATH and configure tooling on a per-project basis.
Only when entering nix develop I get my LSP, compilers etc.

One issue I have with haskell-tools is when if I open my projects for a quick look/edit without entering the nix-shell, I get this annoying popup "Failed to find the GHC version of this Cabal project."
image

This is bound to fail, I would prefer just a warning notification without the vim.ui.select call.
Not sure how to fix, just wanted to share my workflow.

@teto teto added the enhancement New feature or request label Jan 22, 2024
@mrcjkb
Copy link
Owner

mrcjkb commented Jan 22, 2024

I think that's an error message from haskell-language-server?

haskell/haskell-language-server#3215

I don't call vim.lsp.start is haskell-language-server isn't found, but the behaviour if it fails to start is handled by Neovim.

Maybe there's an option in vim.lsp.start() to suppress retry prompts?

@teto
Copy link
Author

teto commented Jan 22, 2024

Maybe it's just a neovim configuration issue but looks like there is something in the LSP protocol so reported here instead haskell/haskell-language-server#4006

@teto teto closed this as completed Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants