haskell-ide-engine icon indicating copy to clipboard operation
haskell-ide-engine copied to clipboard

hie-bios variant does not pick up configuration changes

Open alanz opened this issue 4 years ago • 4 comments

If I edit a cabal file, run cabal new-build, the hie-bios session does not notice that anything has changed.

alanz avatar Dec 30 '19 16:12 alanz

The c-h variant should not notice it either. The file-dependencies that come with each cradle now are helpful for that.

fendor avatar Dec 30 '19 16:12 fendor

The specific case is having removed a file from the tests, I get the following

LSP :: CradleError (ExitFailure 2) ["Could not obtain flags for /home/alanz/mysrc/github/alanz/haskell-lsp/test/InitialConfigurationSpec.hs"]
Saving file /home/alanz/mysrc/github/alanz/haskell-lsp/src/Language/Haskell/LSP/Core.hs...
Wrote /home/alanz/mysrc/github/alanz/haskell-lsp/src/Language/Haskell/LSP/Core.hs
LSP :: CradleError (ExitFailure 2) ["Could not obtain flags for /home/alanz/mysrc/github/alanz/haskell-lsp/test/InitialConfigurationSpec.hs"]
LSP :: CradleError (ExitFailure 2) ["Could not obtain flags for /home/alanz/mysrc/github/alanz/haskell-lsp/test/WorkspaceFoldersSpec.hs"] [2 times]

The weird thing is that this is after running lsp-workspace-restart in emacs.

And cabal new-build had already succeeded, as had cabal new-test.

alanz avatar Dec 30 '19 16:12 alanz

Hmm, no hie.yaml, guess it relates to cabal-helper?

alanz avatar Dec 30 '19 16:12 alanz

What does restarting the workspace do? The error message will be more informative when #1522 merges.

fendor avatar Dec 30 '19 17:12 fendor