Skip to content

Commit

Permalink
Force add hie.yaml test setups
Browse files Browse the repository at this point in the history
  • Loading branch information
fendor committed Aug 31, 2023
1 parent 7f7a9b9 commit 9adea75
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ghcide/session-loader/Development/IDE/Session/Diagnostics.hs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ renderCradleError (CradleError deps _ec ms) cradle nfp

mkUnknownModuleMessage :: Maybe [String]
mkUnknownModuleMessage
| any (isInfixOf "Error: cabal: Failed extracting script block:") ms = Just $ unknownModuleMessage (fromNormalizedFilePath nfp)
| any (isInfixOf "Failed extracting script block:") ms =
Just $ unknownModuleMessage (fromNormalizedFilePath nfp)
| otherwise = Nothing

fileMissingMessage :: Maybe [String]
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/missingModuleTest/missingModule/hie.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cradle:
cabal:
4 changes: 4 additions & 0 deletions test/testdata/missingModuleTest/noPrefixMatch/hie.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cradle:
cabal:
- path: ./app/Main.hs
component: exe:testExe

0 comments on commit 9adea75

Please sign in to comment.