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

Improve encapsulation within AbstractGnuToolPrefixMacro #371

Merged
merged 1 commit into from
Apr 19, 2023

Conversation

jld01
Copy link
Contributor

@jld01 jld01 commented Apr 19, 2023

Part of #361

@jld01 jld01 merged commit 82a235f into eclipse-cdt:main Apr 19, 2023
@jld01 jld01 added this to the 11.2.0 milestone Apr 20, 2023
@jld01 jld01 deleted the gnu-tool-macro-encapsulation branch April 28, 2023 19:59
@gmiossec29
Copy link

Hi,

this commit seems to break my usage of cdt 11.2
org.eclipse.cdt.managedbuilder.macros.AbstractGnuToolPrefixMacro cannot be found in cdt 11.2 tag

@jonahgraham
Copy link
Member

The file is there on the branch - https://github.com/eclipse-cdt/cdt/blob/cdt_11_2/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/macros/AbstractGnuToolPrefixMacro.java and tag https://github.com/eclipse-cdt/cdt/blob/CDT_11_2_0/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/macros/AbstractGnuToolPrefixMacro.java

However it seems that GitHub indexing isn't working because if I type AbstractGnuToolPrefixMacro in the search it says it is not there:

image

I have filed a bug report with GitHub on this issue - but I think the link is private https://support.github.com/ticket/personal/0/2276662

@jonahgraham
Copy link
Member

this commit seems to break my usage of cdt 11.2

Can you expand on how your usage is broken please?

@gmiossec29
Copy link

I have errors for projects which are using cdt. Log says [....]Caused by: java.lang.ClassNotFoundException: org.eclipse.cdt.managedbuilder.macros.AbstractGnuToolPrefixMacro cannot be found by org.eclipse.cdt.build.crossgcc_1.3.100.202304191745$

@jonahgraham
Copy link
Member

It looks like there is a mix and match of version here. AbstractGnuToolPrefixMacro is a new class in CDT 11.2 so I wonder if you have a partially updated CDT install (indicating a bug in the update process) or something else going on. We don't support mixing and matching bundles across CDT releases, but sometimes the auto update mechanism fails us.

Can you please provide more details, e.g. how to reproduce this and maybe the full stack trace too.

I see a potential problem in

org.eclipse.cdt.managedbuilder.core;bundle-version="9.2.0",

The crossgcc has as a minimum version 9.2, but AbstractGnuToolPrefixMacro is in 9.6+.

@jld01
Copy link
Contributor Author

jld01 commented Aug 2, 2023

The crossgcc has as a minimum version 9.2, but AbstractGnuToolPrefixMacro is in 9.6+.

I will update the minimum version string.

@gmiossec29
Copy link

I downgraded cdt to version 11.1 to be able to use my eclipse projects.
I tried to upgrade again to 11.2 to give you more info. And now... it's works !

It was certainly a migration error...

@jonahgraham
Copy link
Member

Thanks for trying again and for raising this issue. With what John plans for version constraints should mean future users aren't affected.

@gmiossec29
Copy link

Thanks for your help !

@jonahgraham
Copy link
Member

The file is there on the branch - https://github.com/eclipse-cdt/cdt/blob/cdt_11_2/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/macros/AbstractGnuToolPrefixMacro.java and tag https://github.com/eclipse-cdt/cdt/blob/CDT_11_2_0/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/macros/AbstractGnuToolPrefixMacro.java

However it seems that GitHub indexing isn't working because if I type AbstractGnuToolPrefixMacro in the search it says it is not there:

image

I have filed a bug report with GitHub on this issue - but I think the link is private https://support.github.com/ticket/personal/0/2276662

This has a probable fix sitting in #518

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

Successfully merging this pull request may close these issues.

3 participants