haskell / haskell-ide-engine

The engine for haskell ide-integration. Not an IDE
BSD 3-Clause "New" or "Revised" License
2.38k stars 210 forks source link

hie-bios variant does not pick up configuration changes #1528

Open alanz opened 4 years ago

alanz commented 4 years ago

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

fendor commented 4 years ago

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

alanz commented 4 years ago

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 commented 4 years ago

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

fendor commented 4 years ago

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