Skip to content

Commit 5d3b0a4

Browse files
committed
Disable plugin tests for 9.4
1 parent 1d568f1 commit 5d3b0a4

File tree

2 files changed

+28
-27
lines changed

2 files changed

+28
-27
lines changed

.github/workflows/test.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -161,103 +161,103 @@ jobs:
161161
HLS_WRAPPER_TEST_EXE: hls-wrapper
162162
run: cabal test wrapper-test --test-options="$TEST_OPTS --rerun-log-file .tasty-rerun-log-wrapper" || cabal test wrapper-test --test-options="$TEST_OPTS --rerun-log-file .tasty-rerun-log-wrapper" || cabal test wrapper-test --test-options="$TEST_OPTS --rerun-log-file .tasty-rerun-log-wrapper"
163163

164-
- if: matrix.test && matrix.ghc != '9.2.4'
164+
- if: matrix.test && matrix.ghc != '9.2.4' && matrix.ghc != '9.4.2'
165165
name: Test hls-brittany-plugin
166166
run: cabal test hls-brittany-plugin --test-options="$TEST_OPTS" || cabal test hls-brittany-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-brittany-plugin --test-options="$TEST_OPTS"
167167

168-
- if: matrix.test
168+
- if: matrix.test && matrix.ghc != '9.4.2'
169169
name: Test hls-refactor-plugin
170170
run: cabal test hls-refactor-plugin --test-options="$TEST_OPTS" || cabal test hls-refactor-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-refactor-plugin --test-options="$TEST_OPTS"
171171

172-
- if: matrix.test
172+
- if: matrix.test && matrix.ghc != '9.4.2'
173173
name: Test hls-floskell-plugin
174174
run: cabal test hls-floskell-plugin --test-options="$TEST_OPTS" || cabal test hls-floskell-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-floskell-plugin --test-options="$TEST_OPTS"
175175

176-
- if: matrix.test
176+
- if: matrix.test && matrix.ghc != '9.4.2'
177177
name: Test hls-class-plugin
178178
run: cabal test hls-class-plugin --test-options="$TEST_OPTS" || cabal test hls-class-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-class-plugin --test-options="$TEST_OPTS"
179179

180-
- if: matrix.test
180+
- if: matrix.test && matrix.ghc != '9.4.2'
181181
name: Test hls-pragmas-plugin
182182
run: cabal test hls-pragmas-plugin --test-options="$TEST_OPTS" || cabal test hls-pragmas-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-pragmas-plugin --test-options="$TEST_OPTS"
183183

184-
- if: matrix.test
184+
- if: matrix.test && matrix.ghc != '9.4.2'
185185
name: Test hls-eval-plugin
186186
run: cabal test hls-eval-plugin --test-options="$TEST_OPTS" || cabal test hls-eval-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-eval-plugin --test-options="$TEST_OPTS"
187187

188-
- if: matrix.test && matrix.ghc != '9.2.4'
188+
- if: matrix.test && matrix.ghc != '9.2.4' && matrix.ghc != '9.4.2'
189189
name: Test hls-haddock-comments-plugin
190190
run: cabal test hls-haddock-comments-plugin --test-options="$TEST_OPTS" || cabal test hls-haddock-comments-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-haddock-comments-plugin --test-options="$TEST_OPTS"
191191

192-
- if: matrix.test && matrix.ghc != '9.2.4'
192+
- if: matrix.test && matrix.ghc != '9.2.4' && matrix.ghc != '9.4.2'
193193
name: Test hls-splice-plugin
194194
run: cabal test hls-splice-plugin --test-options="$TEST_OPTS" || cabal test hls-splice-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-splice-plugin --test-options="$TEST_OPTS"
195195

196-
- if: matrix.test
196+
- if: matrix.test && matrix.ghc != '9.4.2'
197197
name: Test hls-stylish-haskell-plugin
198198
run: cabal test hls-stylish-haskell-plugin --test-options="$TEST_OPTS" || cabal test hls-stylish-haskell-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-stylish-haskell-plugin --test-options="$TEST_OPTS"
199199

200-
- if: matrix.test
200+
- if: matrix.test && matrix.ghc != '9.4.2'
201201
name: Test hls-ormolu-plugin
202202
run: cabal test hls-ormolu-plugin --test-options="$TEST_OPTS" || cabal test hls-ormolu-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-ormolu-plugin --test-options="$TEST_OPTS"
203203

204-
- if: matrix.test
204+
- if: matrix.test && matrix.ghc != '9.4.2'
205205
name: Test hls-fourmolu-plugin
206206
run: cabal test hls-fourmolu-plugin --test-options="$TEST_OPTS" || cabal test hls-fourmolu-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-fourmolu-plugin --test-options="$TEST_OPTS"
207207

208-
- if: matrix.test && matrix.ghc != '9.2.4'
208+
- if: matrix.test && matrix.ghc != '9.2.4' && matrix.ghc != '9.4.2'
209209
name: Test hls-tactics-plugin test suite
210210
run: cabal test hls-tactics-plugin --test-options="$TEST_OPTS" || cabal test hls-tactics-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-tactics-plugin --test-options="$TEST_OPTS"
211211

212-
- if: matrix.test
212+
- if: matrix.test && matrix.ghc != '9.4.2'
213213
name: Test hls-refine-imports-plugin test suite
214214
run: cabal test hls-refine-imports-plugin --test-options="$TEST_OPTS" || cabal test hls-refine-imports-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-refine-imports-plugin --test-options="$TEST_OPTS"
215215

216-
- if: matrix.test
216+
- if: matrix.test && matrix.ghc != '9.4.2'
217217
name: Test hls-explicit-imports-plugin test suite
218218
run: cabal test hls-explicit-imports-plugin --test-options="$TEST_OPTS" || cabal test hls-explicit-imports-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-explicit-imports-plugin --test-options="$TEST_OPTS"
219219

220-
- if: matrix.test
220+
- if: matrix.test && matrix.ghc != '9.4.2'
221221
name: Test hls-call-hierarchy-plugin test suite
222222
run: cabal test hls-call-hierarchy-plugin --test-options="$TEST_OPTS" || cabal test hls-call-hierarchy-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-call-hierarchy-plugin --test-options="$TEST_OPTS"
223223

224-
- if: matrix.test && matrix.os != 'windows-latest'
224+
- if: matrix.test && matrix.os != 'windows-latest' && matrix.ghc != '9.4.2'
225225
name: Test hls-rename-plugin test suite
226226
run: cabal test hls-rename-plugin --test-options="$TEST_OPTS" || cabal test hls-rename-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-rename-plugin --test-options="$TEST_OPTS"
227227

228-
- if: matrix.test
228+
- if: matrix.test && matrix.ghc != '9.4.2'
229229
name: Test hls-hlint-plugin test suite
230230
run: cabal test hls-hlint-plugin --test-options="$TEST_OPTS" || cabal test hls-hlint-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-hlint-plugin --test-options="$TEST_OPTS"
231231

232-
- if: matrix.test && matrix.ghc != '9.0.1' && matrix.ghc != '9.0.2' && matrix.ghc != '9.2.4'
232+
- if: matrix.test && matrix.ghc != '9.0.1' && matrix.ghc != '9.0.2' && matrix.ghc != '9.2.4' && matrix.ghc != '9.4.2'
233233
name: Test hls-stan-plugin test suite
234234
run: cabal test hls-stan-plugin --test-options="$TEST_OPTS" || cabal test hls-hlint-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-stan-plugin --test-options="$TEST_OPTS"
235235

236-
- if: matrix.test
236+
- if: matrix.test && matrix.ghc != '9.4.2'
237237
name: Test hls-module-name-plugin test suite
238238
run: cabal test hls-module-name-plugin --test-options="$TEST_OPTS" || cabal test hls-module-name-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-module-name-plugin --test-options="$TEST_OPTS"
239239

240-
- if: matrix.test
240+
- if: matrix.test && matrix.ghc != '9.4.2'
241241
name: Test hls-alternate-number-format-plugin test suite
242242
run: cabal test hls-alternate-number-format-plugin --test-options="$TEST_OPTS" || cabal test hls-alternate-number-format-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-alternate-number-format-plugin --test-options="$TEST_OPTS"
243243

244-
- if: matrix.test
244+
- if: matrix.test && matrix.ghc != '9.4.2'
245245
name: Test hls-qualify-imported-names-plugin test suite
246246
run: cabal test hls-qualify-imported-names-plugin --test-options="$TEST_OPTS" || cabal test hls-qualify-imported-names-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-qualify-imported-names-plugin --test-options="$TEST_OPTS"
247247

248-
- if: matrix.test
248+
- if: matrix.test && matrix.ghc != '9.4.2'
249249
name: Test hls-code-range-plugin test suite
250250
run: cabal test hls-code-range-plugin --test-options="$TEST_OPTS" || cabal test hls-code-range-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-code-range-plugin --test-options="$TEST_OPTS"
251251

252-
- if: matrix.test
252+
- if: matrix.test && matrix.ghc != '9.4.2'
253253
name: Test hls-change-type-signature test suite
254254
run: cabal test hls-change-type-signature-plugin --test-options="$TEST_OPTS" || cabal test hls-change-type-signature-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-change-type-signature-plugin --test-options="$TEST_OPTS"
255255

256-
- if: matrix.test
256+
- if: matrix.test && matrix.ghc != '9.4.2'
257257
name: Test hls-gadt-plugin test suit
258258
run: cabal test hls-gadt-plugin --test-options="$TEST_OPTS" || cabal test hls-gadt-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-gadt-plugin --test-options="$TEST_OPTS"
259259

260-
- if: matrix.test
260+
- if: matrix.test && matrix.ghc != '9.4.2'
261261
name: Test hls-explicit-fixity-plugin test suite
262262
run: cabal test hls-explicit-fixity-plugin --test-options="$TEST_OPTS" || cabal test hls-explicit-fixity-plugin --test-options="$TEST_OPTS" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-explicit-fixity-plugin --test-options="$TEST_OPTS"
263263

test/functional/Format.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import Data.Aeson
88
import qualified Data.ByteString.Lazy as BS
99
import qualified Data.Text.Encoding as T
1010
import qualified Data.Text.IO as T
11+
import qualified Data.Text as T
1112
import Language.LSP.Test
1213
import Language.LSP.Types
1314
import qualified Language.LSP.Types.Lens as LSP
@@ -47,10 +48,10 @@ providerTests = testGroup "formatting provider" [
4748
testCase "respects none" $ runSessionWithConfig (formatConfig "none") hlsCommand fullCaps "test/testdata/format" $ do
4849
doc <- openDoc "Format.hs" "haskell"
4950
resp <- request STextDocumentFormatting $ DocumentFormattingParams Nothing doc (FormattingOptions 2 True Nothing Nothing Nothing)
50-
case resp ^. LSP.result of
51+
liftIO $ case resp ^. LSP.result of
5152
result@(Left (ResponseError reason message Nothing)) -> case reason of
5253
MethodNotFound -> pure () -- No formatter
53-
InvalidRequest | "No plugin enabled for STextDocumentFormatting" `isPrefixOf` message -> pure ()
54+
InvalidRequest | "No plugin enabled for STextDocumentFormatting" `T.isPrefixOf` message -> pure ()
5455
_ -> assertFailure $ "strange response from formatting provider:" ++ show result
5556
result -> assertFailure $ "strange response from formatting provider:" ++ show result
5657

0 commit comments

Comments
 (0)