File tree Expand file tree Collapse file tree 5 files changed +23
-1
lines changed Expand file tree Collapse file tree 5 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ flag pedantic
35
35
36
36
common warnings
37
37
ghc-options :
38
+ -Werror=incomplete-patterns
38
39
-Wall
39
40
-Wincomplete-uni-patterns
40
41
-Wunused-packages
@@ -43,6 +44,7 @@ common warnings
43
44
-fno-ignore-asserts
44
45
45
46
library
47
+ import : warnings
46
48
default-language : GHC2021
47
49
build-depends :
48
50
, aeson
Original file line number Diff line number Diff line change @@ -202,6 +202,7 @@ tcIfaceId = fmap getIfaceId . tcIfaceDecl False <=< unmangle_decl_name
202
202
name' <- newIfaceName (mkVarOcc $ getOccString name)
203
203
pure $ ifid{ ifName = name' }
204
204
| otherwise = pure ifid
205
+ unmangle_decl_name _ifid = error $ " tcIfaceId: got non IfaceId: "
205
206
-- invariant: 'IfaceId' is always a 'IfaceId' constructor
206
207
getIfaceId (AnId identifier) = identifier
207
208
getIfaceId _ = error " tcIfaceId: got non Id"
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ instance NFData Unlinked where
60
60
rnf (DotA f) = rnf f
61
61
rnf (DotDLL f) = rnf f
62
62
rnf (BCOs a b) = seqCompiledByteCode a `seq` liftRnf rwhnf b
63
+ rnf _ = error " rnf: not implemented for Unlinked"
63
64
instance Show PackageFlag where show = unpack . printOutputable
64
65
instance Show InteractiveImport where show = unpack . printOutputable
65
66
instance Show PackageName where show = unpack . printOutputable
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ import Numeric.Natural
41
41
data Log
42
42
= LogShake Shake. Log
43
43
| LogFileStore FileStore. Log
44
- | LogOpenTextDocument ! Uri
45
44
| LogOpenedTextDocument ! Uri
46
45
| LogModifiedTextDocument ! Uri
47
46
| LogSavedTextDocument ! Uri
Original file line number Diff line number Diff line change
1
+ # recommended to build test binary separately and then run it in a loop (to avoid running cabal test in a loop)
2
+ # cabal build hls-eval-plugin-tests
3
+ # find dist-newstyle -name hls-eval-plugin-tests -type f
4
+ # # ./dist-newstyle/build/x86_64-linux/ghc-9.4.8/haskell-language-server-2.7.0.0/t/hls-eval-plugin-tests/build/hls-eval-plugin-tests/hls-eval-plugin-tests
5
+ # # Run tests in a loop
6
+ for i in {1..500}; do
7
+ echo " Iteration $i " &&
8
+ # LSP_TEST_LOG_MESSAGES=0 LSP_TEST_LOG_STDERR=0 TASTY_PATTERN="Testing PluginError order" $(find dist-newstyle -name ghcide-tests -type f | head -n 1) \
9
+ LSP_TEST_LOG_MESSAGES=0 LSP_TEST_LOG_STDERR=0 TASTY_PATTERN=" notification handlers run in priority order" $( find dist-newstyle -name ghcide-tests -type f | head -n 1) \
10
+ || {
11
+ # line_count=$(wc -l < test.txt)
12
+ # if (( line_count > 100 )); then
13
+ # echo "Warning: More than 100 lines in test.txt at iteration $i"
14
+ # break
15
+ # fi
16
+ echo " Warning: error at iteration $i "
17
+ break
18
+ }; done
19
+
You can’t perform that action at this time.
0 commit comments