haskell / haskell-language-server

Official haskell ide support via language server (LSP). Successor of ghcide & haskell-ide-engine.
Apache License 2.0
2.71k stars 368 forks source link

Wingman not available when using HLS from nix #2869

Closed aVikingTrex closed 9 months ago

aVikingTrex commented 2 years ago

Steps to reproduce

Using Nix for package management using "nix-shell -p ghc haskell-language-server" sets up an environment with: HLS version: 1.6.1.1 GHC version: 9.0.2

Expected behaviour

running "haskell-language-server --list-plugins" should include hls-tactics-plugin

Actual behaviour

hls-tactics-plugin is missing and within any of vim/vscode/emacs, wingman suggestions are not available

Include debug information

--list-plugins returns:

callHierarchy
class
eval
floskell
fourmolu
ghcide-code-actions-bindings
ghcide-code-actions-fill-holes
ghcide-code-actions-imports-exports
ghcide-code-actions-type-signatures
ghcide-completions
ghcide-core
ghcide-hover-and-symbols
ghcide-type-lenses
haddockComments
hlint
importLens
moduleName
ormolu
pragmas
qualifyImportedNames
refineImports
retrie
selectionRange
splice
sloane-shark commented 2 years ago

also seem to be hitting this, same hls and ghc versions. i tried using the hls flake directly but i ran into a lot of trouble getting that to work, for some reason.

michaelpj commented 2 years ago

I think the tactics plugin was working for GHC 9.0 in that version, so it sounds like this is a problem with the nix packaging, and you probably want to take it up with them?

barendventer commented 2 years ago

This issue shows up ahead in search results, but it looks like actual discussion about it is taking place in an issue on NixOS, so I'll putting a link here for the benefit of others who wind up here if that's alright: https://github.com/NixOS/nixpkgs/issues/177759

michaelpj commented 9 months ago

Wingman is gone