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

cli.plugins: keep plugin meta info on loading error #2135

Merged
merged 1 commit into from
Aug 3, 2021

Conversation

Exirel
Copy link
Contributor

@Exirel Exirel commented Jul 2, 2021

Description

Fix #2113

Checklist

  • I have read CONTRIBUTING.md
  • I can and do license this contribution under the EFLv2
  • No issues are reported by make qa (runs make quality and make test)
  • I have tested the functionality of the things this change touches

@Exirel Exirel added the Bugfix Generally, PRs that reference (and fix) one or more issue(s) label Jul 2, 2021
@Exirel Exirel added this to the 8.0.0 milestone Jul 2, 2021
@Exirel Exirel requested a review from a team July 2, 2021 13:09
Copy link
Member

@dgw dgw left a comment

Choose a reason for hiding this comment

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

I tested it, and 👍.

dgw@Lamarr:~/github/sopel$ sopel-plugins list
[...snip...]
broken/python-file broken plugin (error: invalid syntax (broken.py, line 9)) (/home/dgw/.sopel/plugins/broken.py) [error]
[...snip...]

dgw@Lamarr:~/github/sopel$ sopel-plugins show broken
Plugin: broken
Status: error
Type: python-file
Source: /home/dgw/.sopel/plugins/broken.py
Label: broken plugin (error: invalid syntax (broken.py, line 9))
Loading failed

@Exirel Exirel force-pushed the cli-plugins-list-show-error-info branch from e401c86 to 4df1d0e Compare July 5, 2021 06:55
@dgw dgw merged commit c614ca1 into sopel-irc:master Aug 3, 2021
dgw added a commit that referenced this pull request Aug 4, 2021
cli.plugins: keep plugin meta info on loading error

Backported from master.
@dgw dgw modified the milestones: 8.0.0, 7.1.3 Aug 4, 2021
@dgw
Copy link
Member

dgw commented Aug 4, 2021

The answer is, yes, this can be applied to 7.1.x. And so we shall, because this is a silly bug.

dgw added a commit that referenced this pull request Aug 5, 2021
cli.plugins: keep plugin meta info on loading error

Backported from master.
@Exirel Exirel deleted the cli-plugins-list-show-error-info branch December 31, 2021 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugfix Generally, PRs that reference (and fix) one or more issue(s)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sopel-plugins CLI doesn't show broken plugin source
2 participants