-
Notifications
You must be signed in to change notification settings - Fork 81
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
Compilation errors in org.eclipse.tools.layout.spy
and org.eclipse.ui.editors
bundles in the IDE
#1424
Comments
Don't use additional bundles for this, it is a completely different purpose see:
|
Which solution do you propose? |
At best JDT would support its own annotations out-of the box like PDE does for API-Tools and OSGi-DS/Bundle/... Annotations, or |
I mean, which currently available solution exists to get an error free workspace? |
|
Could you be so kind and provide the patch please? If I understand the linked ticket, currently it requires bundle file name, which is not nice as it has to be updated on every change. |
|
OK, I wil try later, I understood the other ticket that symbolic name alone doesn't work. |
I found this example that uses
the first references a jar inside a bundle, the second only the bundle itself... still its odd that only you seem to seeing issues with that, the optional import is even not nice at all but should work (regardless of split packages). |
OK, in this particular case in
Only |
|
Tried to rebuild / close + rebuild, no way. Only IDE restart helped!
The question is still: why it worked before and why it doesn't now? |
Indeed. Another question, why does it work for me and not for you? The error suggests it's not in your target platform. |
I have both annotation projects in my workspace. However, I've also tried to close them one by one, with no changes. Probably one need to restart IDE every time one changes here something... |
Another day, another issue. I couldn't reproduce with I20240930-1800 anymore. |
Not sure whether this is related to the split package issue or not, but using I20240929-1800 I see compilation errors in
org.eclipse.tools.layout.spy
andorg.eclipse.ui.editors
bundles.The reason is that the compiler can't resolve
org.eclipse.jdt.annotation
anymore.The only way to "fix" the errors is to add
additional.bundles = org.eclipse.jdt.annotation
line to thebuild.properties
for each not compilable bundle.Without looking into PDE / JDT code I can't understand why that is needed, as both affected bundles require the bundle in question in manifests via
org.eclipse.jdt.annotation;resolution:=optional
and I have the annotation bundle in both the workspace / target platform.For me it looks like some PDE hard-coded hack, however, I don't understand why did it work last week with build
I20240923-1800
but doesn't work this week with the new `I20240929-1800 SDK version.I will provide patches for both bundle build files, but it would be better to understand why do we have such change first.
The text was updated successfully, but these errors were encountered: