jbosstools / m2e-apt

Maven integration with Eclipse JDT Annotation Processor Toolkit
39 stars 19 forks source link

Annotation processing messages are not well integrated into Eclipse #45

Open db82407 opened 8 years ago

db82407 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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

mickaelistria commented 2 years ago

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.