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

Improved message for missing command or plugin #3285

Merged
merged 1 commit into from
Oct 12, 2022

Conversation

andys8
Copy link
Collaborator

@andys8 andys8 commented Oct 11, 2022

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
Copy link
Collaborator Author

andys8 commented Oct 11, 2022

Converted to draft because of failing tests

@andys8
Copy link
Collaborator Author

andys8 commented Oct 12, 2022

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
Copy link
Collaborator

fendor commented Oct 12, 2022

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
Copy link
Collaborator

@fendor fendor left a comment

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