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

bin/plugin should allow plugin files to be maintained for debugging purposes #6090

Closed
pickypg opened this issue May 8, 2014 · 4 comments
Closed

Comments

@pickypg
Copy link
Member

pickypg commented May 8, 2014

Currently, when unpacking plugin files, the files will be deleted in multiple scenarios (e.g., if it detects any *.java files) without a way to prevent it.

It would be ideal if there were a flag like --retain that could accompany --install (and the future --update) that would prevent the plugin manager from deleting the perceived-to-be extra--or particularly invalid--files. That way, plugin developers could themselves debug situations more easily and end users could see what the actual cause for the failure was.

The files should be retained in a special directory rather than in-place to avoid leaving files where they should not exist in the event that users do nothing with the retained files. It's worth considering whether to wholesale copy the original directory (extractLocation) into the special directory and then delete the actual files versus selectively moving the content that would otherwise be deleted.

As it currently exists, this pertains to the unpack function as it is currently implemented and modified in #5977.

@clintongormley
Copy link

@pickypg not quite understanding this issue... is this still something that you want? if so, could you explain more?

@pickypg
Copy link
Member Author

pickypg commented Dec 30, 2014

#5977 (diff)

It related to how the PluginManager deletes everything, which seems pretty strict for any plugin developer that may be hitting issues with integration. Every step of unpacking the download results in deletions that may be hiding an issue.

It's certainly not a must-have flag.

@clintongormley
Copy link

@pickypg The part I don't understand is why the unpacking step requires so much debugging? Surely that's the easy bit. A developer will typically work with an unpacked plugin, no?

@pickypg
Copy link
Member Author

pickypg commented Dec 31, 2014

True, I guess when I wrote the comment that I was thinking of autogenerated bundles failing. Since then, I think I've realized how unlikely that is. I will just got ahead and close this one. We can open it if it is ever an actual issue.

@pickypg pickypg closed this as completed Dec 31, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants