Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

Annotation processing messages are not well integrated into Eclipse #45

Open
db82407 opened this issue Sep 30, 2015 · 3 comments
Open

Comments

@db82407
Copy link

db82407 commented Sep 30, 2015

I have an Annotation Processor that reports errors and warnings.

Using the native Eclipse integration, errors and warnings are shown in both the Editor and Problems view, but using the m2e-apt plugin these messages are all shown in the Error log.

This is a problem because 1) not all developers will notice annotation messages in the Error log,
2) mesages remain in Error log after they have been resolved.,
3) we want to use the m2e-apt plugin, so generated files follow Maven conventions.

I attach two screenshots showing messages from the same Annotation processor, the first using native Eclipse integration (adding Annotation Processor to FactoryPath) and the second using the m2e-apt integration with "experimental" delagation:

screen shot 2015-09-30 at 16 10 36

screen shot 2015-09-30 at 16 09 47

Thanks,

Derek

@fbricon
Copy link
Member

fbricon commented Oct 1, 2015

That's why it's experimental :-)

It is probably possible to get the errors back from the build invocation result and turn them into Error Markers, but I'm not 100% sure.

I don't have the bandwidth to investigate right now, so I recommend you provide a PR that fixes the issue. At the very least, providing a sample project exhibiting the problem would be helpful.

@db82407
Copy link
Author

db82407 commented Oct 1, 2015

Yep, no problem, I'll see if I can create a PR.

@mickaelistria
Copy link

m2e-apt's code is now included in https://github.com/eclipse-m2e/m2e-core , please consider reporting issue to https://github.com/eclipse-m2e/m2e-core/issues if it's still relevant.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants