Open alanz opened 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.
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
.
Hmm, no hie.yaml
, guess it relates to cabal-helper
?
What does restarting the workspace do? The error message will be more informative when #1522 merges.
If I edit a cabal file, run
cabal new-build
, the hie-bios session does not notice that anything has changed.