-
-
Notifications
You must be signed in to change notification settings - Fork 390
Add hlint tests over cpp, extensions and ignore hints #674
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
jneira
commented
Dec 15, 2020
- As a previous step to Leverage last apply-refact improvements in hlint plugin (include getParsedModuleWithComments in ghcide) #635, to compare behaviour with master and let clear what will be fixed (or broken)
* expectNoMoreDiagnostics, adapted from ghcide * add knownBroken and ignore by ghc version
* for issues haskell#554, haskell#590 and haskell#838
stack build in circleci is ignoring the |
@bubba maybe you could help me with that 🙂 But...
Would be any way to avoid that orphan instance? or another way to make stack not mark tests as failed in the presence of session timeouts? In |
@bubba never mind, finally i am gonna catch the exception at failIfSessionTimeout :: IO a -> IO a
failIfSessionTimeout action = action `catch` errorHandler
where errorHandler :: Test.SessionException -> IO a
errorHandler e@(Test.Timeout _) = assertFailure $ show e
errorHandler e = throwIO e let's see if it works... 🤔 |
It made work stack tests in circleci, but why does it work in cabal without handling explicitly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see anything obviously a problem
@jneira yeah that code snippet is what I would do, catch on the specific |
@bubba haskell-language-server/.circleci/config.yml Lines 67 to 73 in bf8ce83
However, being able to catch the exception in |