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

Few checked in component definition files change on every build #1003

Closed
iloveeclipse opened this issue Dec 12, 2023 · 7 comments
Closed

Few checked in component definition files change on every build #1003

iloveeclipse opened this issue Dec 12, 2023 · 7 comments
Assignees
Labels
bug Something isn't working regression Regression defect
Milestone

Comments

@iloveeclipse
Copy link
Member

After some recent PDE changes I see that we have at least 3 files in the platform repository that are changed on build.
I assume they should be automatically generated, however the changed versions differs from checked in version.
All three files change in same way: activate="activate" attribute is removed.

Please complete the transition by either checking proper code or removing files if they are supposed to be generated.
Files in questions (there could be more?):

  • debug/org.eclipse.debug.ui.launchview/OSGI-INF/org.eclipse.debug.ui.launchview.internal.model.LaunchViewModel.xml
  • runtime/bundles/org.eclipse.e4.core.di.extensions.supplier/OSGI-INF/org.eclipse.e4.core.di.internal.extensions.OSGiObjectSupplier.xml
  • runtime/bundles/org.eclipse.e4.core.di.extensions.supplier/OSGI-INF/org.eclipse.e4.core.di.internal.extensions.ServiceSupplier.xml
@iloveeclipse iloveeclipse added bug Something isn't working regression Regression defect labels Dec 12, 2023
@iloveeclipse
Copy link
Member Author

@HannesWell, @laeubi : I believe you were playing with PDE recently in this area, could you please check?

@laeubi
Copy link
Contributor

laeubi commented Dec 12, 2023

Please describe more what is meant by "that are changed on build"? Performing a clean or similar?
The Generator was adjusted to remove obsolete activate="activate" attribute because that is the default, you can either revert or change them with the next change inthe bundle or one can unversion all xml files and add a .git ignore as we already have an a few places so the files are auto generated at build time.

The underlying problem that I was not able to fix yet is, that usually the generator leave files alone when there are no changes. What can happen is, that JDT detects a problem (e.g. a missing type in that class) and then the generator tries to generate the components, what then leads to an error -> file is removed. If you fix that build problem (e.g. by refresh or clean or modify the manifest) the type is back again and replaced with new content as generator has lost history for that.

@iloveeclipse
Copy link
Member Author

Please describe more what is meant by "that are changed on build"?

Import affected project in the workspace, build, files are checked out /modified.

@merks
Copy link
Contributor

merks commented Dec 12, 2023

These need to be committed with changes or not committed at all:

image

@iloveeclipse
Copy link
Member Author

These need to be committed with changes or not committed at all

Exact.

merks added a commit to merks/eclipse.platform that referenced this issue Dec 12, 2023
iloveeclipse pushed a commit that referenced this issue Dec 12, 2023
@HannesWell
Copy link
Member

These need to be committed with changes or not committed at all:

image

I noticed this as well already.
This happens due to the support for OSGi DS 1.4/5 recently added to PDE, that is only available in I-builds now.
As soon as we agree that all platform developers should have it available (I-builds are probably not possible? Are milestones ok?), then these files can be deleted from SCM.

I can prepare a corresponding PR tonight.

@iloveeclipse
Copy link
Member Author

Fixed via #1006

@iloveeclipse iloveeclipse added this to the 4.31 M1 milestone Dec 12, 2023
Michael5601 pushed a commit to CodeLtDave/eclipse.platform that referenced this issue Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression Regression defect
Projects
None yet
Development

No branches or pull requests

4 participants