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
PluginManager: Installing non-existing plugin returns confusing error message #17226
Comments
|
If we want this to be "nicer" we could print a message in this final case on the usage info about what is supported (official plugin name, maven coordinates, or url). |
++ that was the purpose of this issue I believe. The logic is clear to developers, but the current error is confusing to users. |
I suspect this mostly comes up in the "I misspelled kuromoji" kind of use case. |
Perhaps we should improve the usage information, and throw a UserError with USAGE here then. This way we don't have to repeat in this case, and in the general help. |
I think need to show message like follows: $elasticsearch-plugin install lipsum Not found as core plugin. Not found as maven artifact. Not found as URL. Usages: install name install groupId:artifactId:version install file:///name.zip Why github isn't supported now (5.x)? |
Site plugins are no longer supported, only Java plugins. Site plugins should be reimplemented as Kibana plugins. |
It's easy enough to figure out whether the argument looks like a protocol or not, and it would be much friendlier to say "unknown plugin" in this case than "no protocol: foo". Also, the current usage method doesn't mention that you can pass a URL or maven coordinates to install. |
I opened #18876 to give a nicer error message. It does not yet force listing out all the acceptable patterns for installing, but that is a broader issue I think we need to address with real usage lines. |
When installing plugins, we first try the elastic download service for official plugins, then try maven coordinates, and finally try the argument as a url. This can lead to confusing error messages about unknown protocols when eg an official plugin name is mispelled. This change adds a heuristic for determining if the argument in the final case is in fact a url that we should try, and gives a simplified error message in the case it is definitely not a url. closes elastic#17226
If a plugin does not exist, then this is returned
Also I cant seem to find out the URL which is actually requested for debugging purposes anymore, might be intended though?
The text was updated successfully, but these errors were encountered: