intellij-arend icon indicating copy to clipboard operation
intellij-arend copied to clipboard

"Fill goal" works incorrectly in presence of ==<, >== and `qed

Open marat-rkh opened this issue 3 years ago • 4 comments

Invoke "Fill goal" on the following code:

Screen Shot 2021-04-19 at 11 18 09 AM

Expected result:

Screen Shot 2021-04-19 at 11 18 54 AM

Actual result:

Screen Shot 2021-04-19 at 11 18 34 AM

Note that `qed lost its `. Also the last {?} is after the qed, not before it. These are bugs.

marat-rkh avatar Apr 19 '21 08:04 marat-rkh

It's the pretty printer

ice1000 avatar Apr 19 '21 09:04 ice1000

I thought it just syntactically inserts the expression. Why does it invoke pretty printer?

valis avatar Apr 19 '21 21:04 valis

Oh, sorry, I remembered it wrongly.

ice1000 avatar Apr 19 '21 23:04 ice1000

https://github.com/JetBrains/intellij-arend/blob/1c110f1081154aa297aeb8f3a0e8af0c48803965/src/main/kotlin/org/arend/quickfix/GoalFillingQuickFix.kt#L13

ice1000 avatar Apr 19 '21 23:04 ice1000