-
Notifications
You must be signed in to change notification settings - Fork 97
Conversation
If this PR gets accepted, may I ask to add the corresponding tag to count it towards my Hacktoberfest goal?
|
I'm not sure this is the best way to go about this. GHC already pretty prints these nicely in error messages. There must be some way to twiddle DynFlags to achieve the same effect. |
This is done, I have added the topic |
I think the |
d3e27df
to
de7092d
Compare
I am very puzzled, the tests seem to break randomly on this part:
However, in the previous push 8.10 broke, and now 8.8 breaks. @pepeiborra @wz1000 @jneira (maybe somebody else) could you help me debugging this? Thanks in advance :) |
By the way, @alanz's approach of using |
I think this happens because you added a hole to the |
I managed to make the import suggestions work by removing |
test/exe/Main.hs
Outdated
@@ -1121,7 +1121,7 @@ suggestImportTests = testGroup "suggest import actions" | |||
void (skipManyTill anyMessage message :: Session WorkDoneProgressEndNotification) | |||
_diags <- waitForDiagnostics | |||
-- there isn't a good way to wait until the whole project is checked atm | |||
when waitForCheckProject $ liftIO $ sleep 0.5 | |||
when waitForCheckProject $ liftIO $ sleep 1 |
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.
Times in tests make me very nervous. Shouldn't you just wait for the diagnostics to get published?
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.
these tests are checking for import suggestions, which rely either on the full project being checked (for local imports) or the transitive build-depends being loaded (for package imports). Both actions happen asynchronously and ghcide does not send any notification that can be used to wait currently. Would be easy to fix but certainly doesn't belong in this PR
Thanks! |
* Do not show internal hole names * Better way to print holes as _ * Use suggestion by @alanz * Remove unneeded import * Give more time to suggestion tests * Do not import GotoHover for testing suggestions
* Do not show internal hole names * Better way to print holes as _ * Use suggestion by @alanz * Remove unneeded import * Give more time to suggestion tests * Do not import GotoHover for testing suggestions
* Do not show internal hole names * Better way to print holes as _ * Use suggestion by @alanz * Remove unneeded import * Give more time to suggestion tests * Do not import GotoHover for testing suggestions
Fixes #847
This PR solves both problems:
/_[^_]*_.....?/
and rewrite them to_
,