Skip to content

Restart hls when updating .cabal files #2250

Closed
@funrep

Description

@funrep

Hi! I want to be able to restart hls when I update a cabal file so it has up-to-date dependencies information. Is this possible to enable somehow? If not it would be a nice feature.

Your environment

Output of haskell-language-server --probe-tools or haskell-language-server-wrapper --probe-tools:

haskell-language-server version: 1.3.0.0 (GHC: 8.10.4) (PATH: /nix/store/5k53a741r42pqydb9q7z7gnzqvn6w848-haskell-language-server-wrapper/bin/haskell-language-server-wrapper)
Tool versions found on the $PATH
cabal:          3.4.0.0
stack:          2.7.3
ghc:            8.10.5

Which OS do you use:
MacOS 11.6
Which lsp-client do you use:
VS Code
Describe your project (alternative: link to the project):
Repository with several cabal projects in sub-folders.
Launching VS Code from root directory and loading all projects.

Steps to reproduce

Change a cabal file.

Expected behaviour

Restart haskell-language-server.

Actual behaviour

haskell-language-server will not have up-to-date dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    build tool: cabalbuild tool: stacktype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions