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(plugins): dont unload before print #3240

Merged
merged 6 commits into from
Dec 7, 2022
Merged

fix(plugins): dont unload before print #3240

merged 6 commits into from
Dec 7, 2022

Conversation

tbruyelle
Copy link
Contributor

Unloaded plugin cannot be printed because the print requires a call to Manifest, in order to retrieve the information to print.

The fix ensures the Unload is invoked after the print.

Also:

  • Remove the error returned on print, in favor of printing the error in the plugin line.
  • Replace print icons by those from the icons package (we get colors in return \o/)
  • Improve error message when the plugin path reference isn't found

Fix #3236

Unloaded plugin cannot be printed because the print requires a call to
`Manifest`, in order to retrieve the information to print.

The fix ensures the Unload is invoked after the print.

Also:
- Remove the error returned on print, in favor of printing the error
  in the plugin line.
- Replace print icons by those from the `icons` package (we get colors
  in return \o/)
- Improve error message when the plugin path reference isn't found

Fix #3236
aljo242
aljo242 previously approved these changes Dec 6, 2022
@aljo242 aljo242 added the skip-changelog Don't check changelog for new entries label Dec 6, 2022
aljo242
aljo242 previously approved these changes Dec 6, 2022
jeronimoalbi
jeronimoalbi previously approved these changes Dec 7, 2022
Pantani
Pantani previously approved these changes Dec 7, 2022
Copy link
Collaborator

@Pantani Pantani left a comment

Choose a reason for hiding this comment

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

lgmt

ignite/cmd/plugin.go Outdated Show resolved Hide resolved
@tbruyelle tbruyelle dismissed stale reviews from Pantani, jeronimoalbi, and aljo242 via 4c58511 December 7, 2022 14:36
@tbruyelle tbruyelle merged commit 625f6b4 into main Dec 7, 2022
@tbruyelle tbruyelle deleted the fix/print-plugins branch December 7, 2022 16:23
Jchicode pushed a commit to Jchicode/cli that referenced this pull request Aug 9, 2023
* fix(plugins): dont unload before print

Unloaded plugin cannot be printed because the print requires a call to
`Manifest`, in order to retrieve the information to print.

The fix ensures the Unload is invoked after the print.

Also:
- Remove the error returned on print, in favor of printing the error
  in the plugin line.
- Replace print icons by those from the `icons` package (we get colors
  in return \o/)
- Improve error message when the plugin path reference isn't found

Fix ignite#3236

Co-authored-by: Alex Johnson <alex@shmeeload.xyz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog Don't check changelog for new entries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

plugins: load error may not print the plugin list
4 participants