-
-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send unhandled exceptions to the user #2484
Conversation
58eca00
to
9d875c2
Compare
The test suite for tactics has failed This cancelled job had 7 attempts and the tactics test suite failed in the 6 first ones |
Recent failed test workflows were: |
The last failure is due to the old sqlite3 hiedb problem, not something specific to this change. We have a ticket for it somewhere, but I am on my phone right now and can't look. We have a couple of sources of flakiness, and I would appreciate if someone would find the time to look into the hiedb one. Why is it getting triggered? Is the test suite running tests in parallel?
|
af13ef7
to
a044156
Compare
Added code to stop the hiedb on shutdown. Might or might not help |
@@ -190,15 +194,22 @@ runLanguageServer options inH outH getHieDbLoc defaultConfig onConfigurationChan | |||
pure $ Right (env,ide) | |||
|
|||
|
|||
-- | Runs the action until it ends or until the given MVar is put. | |||
-- Rethrows any exceptions. | |||
untilMVar :: MonadUnliftIO m => MVar () -> m () -> m () |
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.
Kind of surprised these sorts of utilities aren't available elsewhere. I couldn't find them, anyway.
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.
Especially the pattern of forking a thread with an MVar to control terminating it 🤔
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.
They may exist, I'm not sure either.
The windows jobs seemed to be hanging (stuck for 4h). I attempted to cancel them but it's unclear that it's worked. |
... how did that work? |
it should not 😕 |
I think this might be making the ghcide tests hang on windows. I think we should revert it until we can confirm. |
After reading your comment in #2493 it seems so |
This reverts commit 0211f75.
pr in my fork with this reverted jneira#56 |
Ok the pr in my fork with this reverted has passed the ghcide tests: https://github.com/jneira/haskell-language-server/runs/4559275575?check_suite_focus=true |
Closes #2390