File tree Expand file tree Collapse file tree 4 files changed +19
-10
lines changed
plugins/hls-tactics-plugin/src/Ide/Plugin/Tactic Expand file tree Collapse file tree 4 files changed +19
-10
lines changed Original file line number Diff line number Diff line change @@ -119,3 +119,8 @@ jobs:
119
119
# all functional test cases simultaneously which causes way too many hls
120
120
# instances to be spun up for the poor github actions runner to handle
121
121
run : cabal test wrapper-test --test-options="-j1" || cabal test wrapper-test --test-options="-j1" || cabal test wrapper-test --test-options="-j1"
122
+
123
+ - name : Test hls-tactics-plugin test suite
124
+ if : ${{ matrix.test }}
125
+ run : LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-tactics-plugin --test-options="-j1"
126
+
Original file line number Diff line number Diff line change 2
2
3
3
module Ide.Plugin.Tactic.KnownStrategies where
4
4
5
- import Control.Monad.Error.Class
6
- import Ide.Plugin.Tactic.Context (getCurrentDefinitions )
7
- import Ide.Plugin.Tactic.KnownStrategies.QuickCheck (deriveArbitrary )
8
- import Ide.Plugin.Tactic.Machinery (tracing , try' )
9
- import Ide.Plugin.Tactic.Tactics
10
- import Ide.Plugin.Tactic.Types
11
- import OccName (mkVarOcc )
12
- import Refinery.Tactic
5
+ import Control.Monad.Error.Class
6
+ import Ide.Plugin.Tactic.Context (getCurrentDefinitions )
7
+ import Ide.Plugin.Tactic.KnownStrategies.QuickCheck (deriveArbitrary )
8
+ import Ide.Plugin.Tactic.Machinery (tracing )
9
+ import Ide.Plugin.Tactic.Tactics
10
+ import Ide.Plugin.Tactic.Types
11
+ import OccName (mkVarOcc )
12
+ import Refinery.Tactic
13
13
14
14
15
15
knownStrategies :: TacticsM ()
@@ -29,7 +29,7 @@ known name t = do
29
29
30
30
deriveFmap :: TacticsM ()
31
31
deriveFmap = do
32
- try' intros
32
+ try intros
33
33
overAlgebraicTerms homo
34
34
choice
35
35
[ overFunctions apply >> auto' 2
Original file line number Diff line number Diff line change @@ -278,6 +278,10 @@ requireConcreteHole m = do
278
278
-- balloons the search space. This thing just tries it, but doesn't backtrack
279
279
-- if it fails.
280
280
--
281
+ -- NOTE(sandy): But there's a bug! Or at least, something not understood here.
282
+ -- Using this everywhere breaks te tests, and neither I nor TOTBWF are sure
283
+ -- why. Prefer 'try' if you can, and only try this as a last resort.
284
+ --
281
285
-- TODO(sandy): Remove this when we upgrade to 0.4
282
286
try'
283
287
:: Functor m
Original file line number Diff line number Diff line change @@ -319,7 +319,7 @@ auto' :: Int -> TacticsM ()
319
319
auto' 0 = throwError NoProgress
320
320
auto' n = do
321
321
let loop = auto' (n - 1 )
322
- try' intros
322
+ try intros
323
323
choice
324
324
[ overFunctions $ \ fname -> do
325
325
apply fname
You can’t perform that action at this time.
0 commit comments