-
-
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
Infix backticked holes get their backticks deleted once filled #1690
Comments
My guess is that this is a bug in the exactprint machinery, that it's dropping the backtick annotations. |
But this isn't Wingman; I don't provide any |
Oh, sorry. I somehow thought this is related with Wingman. |
No worries, I did too! |
I think this (and all analogous pieces of code) are the offender haskell-language-server/ghcide/src/Development/IDE/GHC/ExactPrint.hs Lines 229 to 230 in 607ae3b
IIUC, |
(all of this assumes that |
Which it doesn't seem to, but I think that will fix some problems in WIngman anyway. |
Maybe the cause is the code is using the ParseModule version without annotations? haskell-language-server/ghcide/src/Development/IDE/Core/Rules.hs Lines 197 to 207 in 607ae3b
If that is the case replacing it with: haskell-language-server/ghcide/src/Development/IDE/Core/Rules.hs Lines 270 to 273 in 607ae3b
could fix it |
This code action is provided by ghcide, which depends on diagnostic messages, not parsed ast. haskell-language-server/ghcide/src/Development/IDE/Plugin/CodeAction.hs Lines 677 to 689 in 607ae3b
|
So updating the regexp should fix it, it seems it could be a good first issue |
…1708) * Fix: #1690 - Infix typed holes are now filled using infix notation * fix: postfix hole uses postfix notation of infix operator Co-authored-by: Oliver Madine <[email protected]> Co-authored-by: Javier Neira <[email protected]>
Steps to reproduce
Write this:
Open up the context menu on the hole and select "replace with
foo
".Expected behaviour
The implementation should now look like:
Actual behaviour
The implementation now looks like:
The text was updated successfully, but these errors were encountered: