-
Notifications
You must be signed in to change notification settings - Fork 320
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
[Setup] Reference xtext target-files in Xtext's Oomph Setup directly #2213
Conversation
need to try this out |
am getting
for latest. of course(tm) the 2nd try no issue. will have to test on other machine too |
for some reason we had the itemis update site in the targlet before |
For me it worked well, but I have only tested it in my existing xtext workspace. Will try it again in a clean one.
To me it also looked like there were some inconsistencies between the target files and the workspace TP defined by the Oomph targlets. But because the target-files are used in the CI I assumed they should work and did not made a detailed comparison. |
I've always thought that's because of the antlr generator so that it's not get downloaded if we run mwe2 workflows. |
Yes, exactly. It's for convenience and dev experience. |
maybe we can add it to the cbi section or create a sibling to it? |
Definitively. I'll update this PR. |
de.itemis.xtext.antlr it requires the 2nd plugin |
eb40981
to
fb4feac
Compare
Thanks. Added the |
I'm not sure I understand the last change (that's why I don't like push-forces in PRs ;) ;) isn't the |
@LorenzoBettini no its not. and it also should not. (we dont generate workflows in build) |
But it is in the target platform: https://github.com/eclipse/xtext/blob/main/xtext-latest.target#L42 |
hmm this is also new to me. |
I don't understand what you mean: if it's in the target platform file it's useless to add it in Oomph, or am I missing something? However, I tested this PR locally and it works for me! :) One small note we should be aware of: by using
in the workspace, containing features and bundles, while with standard Oomph targlets that directory was not populated and the Oomph bundle pool was completely reused. I'm fine with that. Even though some disk space is used, I prefer to have only single target files to maintain. |
As usual, I'm stopping the CI jobs since they're useless for this PR. |
let's hear from @szarnekow |
If you click After a rebase this also includes the changes from the commit one rebased on, but in case different files are affect you can see quite quickly the change within the PR. If you want to make it easier to compare one could simply first rebase and force-push and the do additional changes or the other way round. This way you get two compares.
That's right and as far as I can tell not even one itemis plugin or feature was in the Oomph-Setup TP. Any way, since it is now in the Oomph-setup created TP of the workspace, should it then be removed from the TP (in a subsequent PR)? |
That's right. And that's something I wanted to change in PDE for a while, so that the shared bundle pool for the |
This avoids the need to replicate and maintain all different target platforms as pure Oomph Targlets. Use one TargletTask for each xtext-target file (the targlet-task contains the target-file as 'composedTarget') and use a corresponding filter to activate that task if the 'eclipse.target.platform' variable has a corresponding value. Only for the o.e.cbi.p2repo.analyzers dependencies a always active TargletTask with corresponding Targlet is created, because they are not contained in the target-definition specified by the target-files. That targlet is merged with the one activated for the selected Eclipse target. Without the p2repo-analyzers dependencies or if they where contained in the target-files Xtext could use a simple TargetPlatformTask (if it is not desired to merge the TP with the Targlets defined by other Projects in the workspace).
fb4feac
to
7d16c02
Compare
@HannesWell thanks for updating this PR. |
Just created eclipse-pde/eclipse.pde#577 to track any future effort in the area. |
As suggested in #2207 this PR aims to simplify Xtext's Oomph setup by using the xtext-target files used in the Tycho/Maven build also in the Target-Platform of the development workspace.
This avoids the need to replicate and maintain all different target platforms as pure Oomph Targlets.
Use one TargletTask for each xtext-target file (the targlet-task contains the target-file as 'composedTarget') and use a corresponding filter to activate that task if the 'eclipse.target.platform' variable has a corresponding value.
Only for the o.e.cbi.p2repo.analyzers dependencies a always active TargletTask with corresponding Targlet is created, because they are not contained in the target-definition specified by the target-files. That targlet is merged with the one activated for the selected Eclipse target. Without the p2repo-analyzers dependencies or if they where contained in the target-files Xtext could use a simple TargetPlatformTask (if it is not desired to merge the TP with the Targlets defined by other Projects in the workspace).
I checked for all supported TPs that the right target-file is selected and tested the workspace with the latest (aka 2023-06), the 2023-03 and oldest 2022-03 target and all of them resulted in an error free workspace.