Skip to content

Improved message for missing command or plugin#3285

Merged
mergify[bot] merged 1 commit into
haskell:masterfrom
andys8:error-message-no-plugin
Oct 12, 2022
Merged

Improved message for missing command or plugin#3285
mergify[bot] merged 1 commit into
haskell:masterfrom
andys8:error-message-no-plugin

Conversation

@andys8

@andys8 andys8 commented Oct 11, 2022

Copy link
Copy Markdown
Collaborator

When opening #3283 I noticed the error message if a plugin is missing can be improved.

Changes

  • No "PluginId" / "CommandId" prefix or quotes from show
  • No line break, but comma separated (which I assume is more likely to work in all places and logs)

Before

No plugin enabled for STextDocumentFormatting, available:^@PluginId "fourmolu"^@PluginId "stylish-haskell"^@PluginId "ormolu"^@

image

After

No plugin enabled for STextDocumentFormatting, available: floskell, fourmolu, stylish-haskell, ormolu

image

@andys8
andys8 requested a review from pepeiborra as a code owner October 11, 2022 23:20
@andys8
andys8 marked this pull request as draft October 11, 2022 23:38
@andys8

andys8 commented Oct 11, 2022

Copy link
Copy Markdown
Collaborator Author

Converted to draft because of failing tests

@andys8

andys8 commented Oct 12, 2022

Copy link
Copy Markdown
Collaborator Author

Does somebody know why this change - a different plugin error message - could result in this error?

image

https://github.com/haskell/haskell-language-server/actions/runs/3230899369/jobs/5289855473

I assumed the change could break existing golden tests, but the failing tests (typecheck-all-parents-of-interest) don't exactly look related to? Are they?

@fendor

fendor commented Oct 12, 2022

Copy link
Copy Markdown
Collaborator

probably just a flaky test

@andys8
andys8 marked this pull request as ready for review October 12, 2022 12:21
* No "PluginId" / "CommandId" prefix or quotes from show
* No line break, but comma separated
@andys8
andys8 force-pushed the error-message-no-plugin branch from ea10ba8 to 4093226 Compare October 12, 2022 12:21

@fendor fendor left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, thank you!

@andys8 andys8 added the merge me Label to trigger pull request merge label Oct 12, 2022
@mergify
mergify Bot merged commit 5cdaa24 into haskell:master Oct 12, 2022
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.

2 participants