Skip to content

Commit e217112

Browse files
committed
Fix loss of 9.2 GHC version
1 parent 512fa5c commit e217112

File tree

12 files changed

+11
-1200
lines changed

12 files changed

+11
-1200
lines changed

ghcide/test/exe/CompletionTests.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ nonLocalCompletionTests =
276276
where
277277
brokenForWinGhc = knownBrokenOnWindows "Windows has strange things in scope for some reason"
278278
brokenForWinOldGhc =
279-
knownBrokenInSpecificEnv [HostOS Windows, GhcVer GHC92] "Windows (GHC == 9.2) has strange things in scope for some reason"
280279
. knownBrokenInSpecificEnv [HostOS Windows, GhcVer GHC94] "Windows (GHC == 9.4) has strange things in scope for some reason"
281280
. knownBrokenInSpecificEnv [HostOS Windows, GhcVer GHC96] "Windows (GHC == 9.6) has strange things in scope for some reason"
282281
. knownBrokenInSpecificEnv [HostOS Windows, GhcVer GHC98] "Windows (GHC == 9.8) has strange things in scope for some reason"

ghcide/test/exe/CradleTests.hs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,9 @@ tests = testGroup "cradle"
4141
,testGroup "ignore-fatal" [ignoreFatalWarning]
4242
,testGroup "loading" [loadCradleOnlyonce, retryFailedCradle]
4343
,testGroup "multi" (multiTests "multi")
44-
,ignoreForGhcVersions [GHC92] "multiple units not supported on 9.2"
45-
$ testGroup "multi-unit" (multiTests "multi-unit")
44+
,testGroup "multi-unit" (multiTests "multi-unit")
4645
,testGroup "sub-directory" [simpleSubDirectoryTest]
47-
,ignoreForGhcVersions [GHC92] "multiple units not supported on 9.2"
48-
$ testGroup "multi-unit-rexport" [multiRexportTest]
46+
,testGroup "multi-unit-rexport" [multiRexportTest]
4947
]
5048

5149
loadCradleOnlyonce :: TestTree

hie-compat/hie-compat.cabal

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,5 @@ library
3535
Compat.HieDebug
3636
Compat.HieUtils
3737

38-
if (impl(ghc >= 9.2) && impl(ghc < 9.3))
39-
hs-source-dirs: src-ghc92 src-reexport-ghc9
4038
if (impl(ghc >= 9.4))
4139
hs-source-dirs: src-reexport-ghc92

plugins/hls-change-type-signature-plugin/test/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ test :: TestTree
3939
test = testGroup "changeTypeSignature" [
4040
testRegexes
4141
, codeActionTest "TExpectedActual" 4 11
42-
, knownBrokenForGhcVersions [GHC92 .. GHC910] "Error Message in 9.2+ does not provide enough info" $
42+
, knownBrokenForGhcVersions [GHC94 .. GHC910] "Error Message in 9.2+ does not provide enough info" $
4343
codeActionTest "TRigidType" 4 14
4444
, codeActionTest "TRigidType2" 4 6
4545
, codeActionTest "TLocalBinding" 7 22

plugins/hls-eval-plugin/test/Main.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ tests =
133133
GHC98 -> "ghc98.expected"
134134
GHC96 -> "ghc96.expected"
135135
GHC94 -> "ghc94.expected"
136-
GHC92 -> "ghc92.expected"
137136
, goldenWithEval "Prelude has no special treatment, it is imported as stated in the module" "TPrelude" "hs"
138137
, goldenWithEval "Don't panic on {-# UNPACK #-} pragma" "TUNPACK" "hs"
139138
, goldenWithEval "Can handle eval inside nested comment properly" "TNested" "hs"

plugins/hls-eval-plugin/test/testdata/TPropertyError.ghc92.expected.hs

Lines changed: 0 additions & 6 deletions
This file was deleted.

plugins/hls-refactor-plugin/test/Main.hs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,8 +1347,7 @@ extendImportTests = testGroup "extend import actions"
13471347
, "b :: A"
13481348
, "b = ConstructorFoo"
13491349
])
1350-
, brokenForGHC92 "On GHC 9.2, the error doesn't contain \"perhaps you want ...\" part from which import suggestion can be extracted." $
1351-
testSession "extend single line import in presence of extra parens" $ template
1350+
, testSession "extend single line import in presence of extra parens" $ template
13521351
[]
13531352
("Main.hs", T.unlines
13541353
[ "import Data.Monoid (First)"
@@ -1534,7 +1533,7 @@ extendImportTests = testGroup "extend import actions"
15341533
, "import A (pattern Some)"
15351534
, "k (Some x) = x"
15361535
])
1537-
, ignoreForGhcVersions [GHC92, GHC94] "Diagnostic message has no suggestions" $
1536+
, ignoreForGhcVersions [GHC94] "Diagnostic message has no suggestions" $
15381537
testSession "type constructor name same as data constructor name" $ template
15391538
[("ModuleA.hs", T.unlines
15401539
[ "module ModuleA where"
@@ -3222,7 +3221,7 @@ exportUnusedTests = testGroup "export unused actions"
32223221
]
32233222
(R 2 0 2 11)
32243223
"Export ‘bar’"
3225-
, ignoreForGhcVersions [GHC92, GHC94] "Diagnostic message has no suggestions" $
3224+
, ignoreForGhcVersions [GHC94] "Diagnostic message has no suggestions" $
32263225
testSession "type is exported but not the constructor of same name" $ templateNoAction
32273226
[ "{-# OPTIONS_GHC -Wunused-top-binds #-}"
32283227
, "module A (Foo) where"
@@ -3850,6 +3849,3 @@ withTempDir f = System.IO.Extra.withTempDir $ \dir ->
38503849

38513850
brokenForGHC94 :: String -> TestTree -> TestTree
38523851
brokenForGHC94 = knownBrokenForGhcVersions [GHC94]
3853-
3854-
brokenForGHC92 :: String -> TestTree -> TestTree
3855-
brokenForGHC92 = knownBrokenForGhcVersions [GHC92]

plugins/hls-rename-plugin/test/Main.hs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ tests = testGroup "Rename"
3030
rename doc (Position 0 15) "Op"
3131
, goldenWithRename "Exported function" "ExportedFunction" $ \doc ->
3232
rename doc (Position 2 1) "quux"
33-
, ignoreForGhcVersions [GHC92] recordConstructorIssue $
34-
goldenWithRename "Field Puns" "FieldPuns" $ \doc ->
33+
, goldenWithRename "Field Puns" "FieldPuns" $ \doc ->
3534
rename doc (Position 7 13) "bleh"
3635
, goldenWithRename "Function argument" "FunctionArgument" $ \doc ->
3736
rename doc (Position 3 4) "y"
@@ -45,8 +44,7 @@ tests = testGroup "Rename"
4544
rename doc (Position 3 8) "baz"
4645
, goldenWithRename "Import hiding" "ImportHiding" $ \doc ->
4746
rename doc (Position 0 22) "hiddenFoo"
48-
, ignoreForGhcVersions [GHC92] recordConstructorIssue $
49-
goldenWithRename "Indirect Puns" "IndirectPuns" $ \doc ->
47+
, goldenWithRename "Indirect Puns" "IndirectPuns" $ \doc ->
5048
rename doc (Position 4 23) "blah"
5149
, goldenWithRename "Let expression" "LetExpression" $ \doc ->
5250
rename doc (Position 5 11) "foobar"
@@ -58,8 +56,7 @@ tests = testGroup "Rename"
5856
rename doc (Position 3 12) "baz"
5957
, goldenWithRename "Realigns do block indentation" "RealignDo" $ \doc ->
6058
rename doc (Position 0 2) "fooBarQuux"
61-
, ignoreForGhcVersions [GHC92] recordConstructorIssue $
62-
goldenWithRename "Record field" "RecordField" $ \doc ->
59+
, goldenWithRename "Record field" "RecordField" $ \doc ->
6360
rename doc (Position 6 9) "number"
6461
, goldenWithRename "Shadowed name" "ShadowedName" $ \doc ->
6562
rename doc (Position 1 1) "baz"

plugins/hls-semantic-tokens-plugin/test/SemanticTokensTest.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,8 @@ semanticTokensTests =
264264
goldenWithSemanticTokensWithDefaultConfig "type family" "TTypefamily",
265265
goldenWithSemanticTokensWithDefaultConfig "TUnicodeSyntax" "TUnicodeSyntax",
266266
goldenWithSemanticTokensWithDefaultConfig "TQualifiedName" "TQualifiedName"
267+
goldenWithSemanticTokensWithDefaultConfig "TDoc" "TDoc"
267268
]
268-
-- not supported in ghc92
269-
++ [goldenWithSemanticTokensWithDefaultConfig "TDoc" "TDoc" | ghcVersion > GHC92]
270269

271270
semanticTokensDataTypeTests :: TestTree
272271
semanticTokensDataTypeTests =

test/functional/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ main :: IO ()
1212
main = defaultTestRunner $ testGroup "haskell-language-server"
1313
[ Config.tests
1414
, ConfigSchema.tests
15-
, ignoreInEnv [HostOS Windows, GhcVer GHC92] "Tests gets stuck in ci" $ Format.tests
15+
, ignoreInEnv [HostOS Windows] "Tests gets stuck in ci" $ Format.tests
1616
, FunctionalBadProject.tests
1717
, HieBios.tests
1818
, ignoreInEnv [HostOS Windows] "Tests gets stuck in ci" $ Progress.tests

0 commit comments

Comments
 (0)