Skip to content
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

Fix multiline eval plugin padding #2910

Merged
merged 2 commits into from
May 17, 2022

Conversation

xsebek
Copy link
Contributor

@xsebek xsebek commented May 16, 2022

  • fix multiline eval padding (concatMap lines)
  • add test for multiline show instance

@@ -358,8 +358,9 @@ runTests EvalConfig{..} e@(_st, _) tests = do
dbg "TEST RESULTS" rs

let checkedResult = testCheck eval_cfg_diff (section, test) rs
let resultLines = concatMap T.lines checkedResult
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly, I am unsure why we get [Text] that does not have the show result split into lines.

We might want to consider splitting in the evals function. 🤷‍♂️

-- M {
-- l1="first line",
-- l2="second line"
-- }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only tests -- comments, but I figured {- -} would be fine and covered by the other multiline tests.

@xsebek
Copy link
Contributor Author

xsebek commented May 16, 2022

@pepeiborra Could you please take a look? 🙂

@pepeiborra
Copy link
Collaborator

@pepeiborra Could you please take a look? 🙂

I'm not the owner of the Eval plugin, even though I was the original contributor. @tittoassini rewrote it and I have not been keeping up. If no one else can review your PR, it will have to wait until I have spare time (probably the weekend).

@xsebek
Copy link
Contributor Author

xsebek commented May 17, 2022

Thanks, @pepeiborra, I am aware but I don't know about anyone else familiar with the plugin except maybe @Ailrun?

Either way, I am in no hurry to merge this 🙂

Copy link
Member

@Ailrun Ailrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am aware but I don't know about anyone else familiar with the plugin except maybe @Ailrun?

You can tag me, though I'm sometimes not super reactive.

Anyway, looks good to me.

@Ailrun Ailrun added the merge me Label to trigger pull request merge label May 17, 2022
@mergify mergify bot merged commit a1ead72 into haskell:master May 17, 2022
sloorush pushed a commit to sloorush/haskell-language-server that referenced this pull request May 21, 2022
* Test multiline eval results

- add test for multiline show instance

See haskell#2907

* Fix multiline eval padding

See haskell#2907
hololeap pushed a commit to hololeap/haskell-language-server that referenced this pull request Aug 26, 2022
* Test multiline eval results

- add test for multiline show instance

See haskell#2907

* Fix multiline eval padding

See haskell#2907
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Label to trigger pull request merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Evaluate lens only comments the first line of multiline output
3 participants