-
Notifications
You must be signed in to change notification settings - Fork 3
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
Have a way to pass the plugin/id and an error code #57
Comments
This would be also useful to extend the error message with a plugin id prefix. Currently all messages from |
@laeubi WDYT about a new component |
@kwin I'm not sure if we are having the same in min,d but the mojo /execution is already tracked, so if this is useful it should already be possible to do so. My plan would be to have a dedicated |
How does this work if currently the context is a singleton and there is multithreading going on (i.e. multiple modules are built in parallel) or are you only talking about the m2e implementation? Update: In m2e this is achieved with https://github.com/eclipse-m2e/m2e-core/blob/112488c013ba85ea43ad104296e391e68bd9fb50/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/MavenBuilderImpl.java#L145, which only works in a single-threaded build. |
In general you need to register a The in your One example can be seen at Tycho here: |
Another option would be to make implementation |
Currently one can pass a message but then it is not possible to identify the message in the IDE.
For that purpose it would be good if a caller cann pass the pligin/id and an error code, that way an IDE could map error messages to quick-fix actions. To complement this, a plugin might also want to pass additional context. So a generic way would be to have a context-map of
<String, Object>
that can be passed along.The text was updated successfully, but these errors were encountered: