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

Error when using annotation collector #1408

Closed
chrylis opened this issue Oct 13, 2022 · 8 comments
Closed

Error when using annotation collector #1408

chrylis opened this issue Oct 13, 2022 · 8 comments
Assignees
Labels
Milestone

Comments

@chrylis
Copy link

chrylis commented Oct 13, 2022

I just updated to 4.8.0.v202210112349-e2209 in 4.25-SNAPSHOT. I have an annotation collector that includes @TupleConstructor, and the editor for the file shows this error at -1,-1:

@AnnotationCollector
@TupleConstructor
@interface ExampleData{}
Groovy:Error processing interface 'com.example.ExampleData'. @TupleConstructor not allowed for interfaces.

Any classes annotated with the collector annotation then have

Groovy:Expecting static method `Object[][] value()` in groovy.transform.Undefined$CLASS. Was it compiled from a Java source?

This does not appear to affect the actual .class output, and it doesn't show in the Package Explorer, but it's alarming the newbies.

@chrylis chrylis changed the title Cosmetic error when using annotation collector Error when using annotation collector Oct 13, 2022
@chrylis
Copy link
Author

chrylis commented Oct 13, 2022

Updating to remove the "cosmetic" part, as the editor seems to have forgotten how annotation collectors work, and service objects that contain collected @Slf4j no longer see the log field in the editor.

@chrylis
Copy link
Author

chrylis commented Oct 14, 2022

The fixes for this and the other got everything working in my 4.25 installation, but I was facing so many other problems relating to the m2e paper-bag bug that I did a clean install of 4.24 (STS 4.15.3), and the latest nightly I see in the 4.24 update site is 2022-10-12, pre-fix (on 4.25 it was 2022-10-14). Is there something I need to refresh?

@eric-milles
Copy link
Member

I just started that build. I missed the daily check for 4.24 and below. 4.25 and 4.26 are polled for changes.

@chrylis
Copy link
Author

chrylis commented Oct 14, 2022

I'm seeing the updates in the Eclipse update wizard, but "No repository found containing" when I try to apply the update. Do you know if there's a sync delay for artifacts?

@eric-milles
Copy link
Member

You need to restart eclipse for it to refresh its cached update site data.

@chrylis
Copy link
Author

chrylis commented Oct 14, 2022

I'd done that. It sees the updates (4.8.0.v202210141721-e2206) in the metadata, but proceeding to install produces

An error occurred while collecting items to be installed
session context was:(profile=DefaultProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.codehaus.groovy.eclipse,4.8.0.v202210141721-e2206
No repository found containing: osgi.bundle,org.codehaus.groovy.eclipse.ant,4.8.0.v202210141721-e2206
No repository found containing: osgi.bundle,org.codehaus.groovy.eclipse.astviews,4.8.0.v202210141721-e2206
No repository found containing: osgi.bundle,org.codehaus.groovy.eclipse.codeassist,4.8.0.v202210141721-e2206
No repository found containing: osgi.bundle,org.codehaus.groovy.eclipse.codebrowsing,4.8.0.v202210141721-e2206
No repository found containing: osgi.bundle,org.codehaus.groovy.eclipse.compilerResolver,4.8.0.v202210141721-e2206
No repository found containing: osgi.bundle,org.codehaus.groovy.eclipse.core,4.8.0.v202210141721-e2206
No repository found containing: osgi.bundle,org.codehaus.groovy.eclipse.dsl,4.8.0.v202210141721-e2206
No repository found containing: osgi.bundle,org.codehaus.groovy.eclipse.frameworkAdapter,4.8.0.v202210141721-e2206
No repository found containing: osgi.bundle,org.codehaus.groovy.eclipse.quickfix,4.8.0.v202210141721-e2206
No repository found containing: osgi.bundle,org.codehaus.groovy.eclipse.refactoring,4.8.0.v202210141721-e2206
No repository found containing: osgi.bundle,org.codehaus.groovy.eclipse.ui,4.8.0.v202210141721-e2206
No repository found containing: osgi.bundle,org.codehaus.groovy.m2eclipse,4.8.0.v202210141721-e2206
No repository found containing: osgi.bundle,org.eclipse.jdt.core,3.30.0.v202210141721-e2206
No repository found containing: osgi.bundle,org.eclipse.jdt.groovy.core,4.8.0.v202210141721-e2206
No repository found containing: osgi.bundle,org.codehaus.groovy,2.5.19.v202210141721-e2206
No repository found containing: osgi.bundle,org.codehaus.groovy,4.0.6.v202210141721-e2206
No repository found containing: org.eclipse.update.feature,org.codehaus.groovy.compilerless.feature,4.8.0.v202210141721-e2206
No repository found containing: org.eclipse.update.feature,org.codehaus.groovy.eclipse.feature,4.8.0.v202210141721-e2206
No repository found containing: org.eclipse.update.feature,org.codehaus.groovy.headless.feature,4.8.0.v202210141721-e2206
No repository found containing: org.eclipse.update.feature,org.codehaus.groovy.jdt.patch,4.8.0.v202210141721-e2206
No repository found containing: org.eclipse.update.feature,org.codehaus.groovy.m2eclipse.feature,4.8.0.v202210141721-e2206
No repository found containing: org.eclipse.update.feature,org.codehaus.groovy25.feature,4.8.0.v202210141721-e2206
No repository found containing: org.eclipse.update.feature,org.codehaus.groovy40.feature,4.8.0.v202210141721-e2206

In my experience, this has normally meant that the binary artifacts weren't present (usually because the update metadata had been cached and the update attempted after they were replaced with newer versions), but I'm getting it on 20221014.

@eric-milles
Copy link
Member

Build says it finished successfully 41 minutes ago.

@chrylis
Copy link
Author

chrylis commented Oct 18, 2022

It seems the repository hadn't synced; the 2022-10-16 version installed successfully, and everything's happy.

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

No branches or pull requests

2 participants