-
Notifications
You must be signed in to change notification settings - Fork 192
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
[2.7.1][regression] Neither raw version nor format was specified #876
Comments
@fipro78 thanks for reporting this, I think this is because Tycho only incompletely implements the Version to match: Optional version specification. currently Tycho interprets them as required. |
Actually even the PDE tooling does not set a version on specifying a dependency. So I would assume that this breaks quite a lot of builds. Although interestingly only the platform build breaks, the other module builds work even though there are dependencies specified the same way in features. |
The problem here is that you duplicate
these are equal definitions and you don't need both unless you wan't to restrict the first one, so logically (even if allowed) it does not makes sense here to have both! The first will pin the plugin to the build-version and the second will require the plugin unconditionally.
Sad enough there are 250 tests in Tycho an none is covering this case... |
PDE's feature.xml editor make similar duplicate entries when using Compute button on Dependencies tab - I assume that is how such cases got into CDT's code base. Adding version information to the requires section seems to have resolved CDT's case - https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/192642
A couple of examples in CDT - sorry I didn't try to running 2.7.1 staged before the release - in the past there were calls for testing on tycho-dev, is there a new place such requests for tests is made prior to release? |
Yeah I think that's the root cause for those entries, nerveless tycho must support this and its unlikely PDE will change the behavior.
No problem, we have switched to a more "lightweight" approach testing the SNAPSHOTS that is less work but has some chance of missing things of course, but we could more easily in-cooperate bugfixes and do more releases. We announce this "call for testing" now in the discussions section (see for example #819) you can watch these with Beside that, the best way is to have a job that uses the current tycho snapshot build (e.g. run once a day) and try to contribute |
A build is running for a 2.7.2-SNAPSHOT that should fix the issue please tests if possible if that fixes the problems you are seeing: https://ci.eclipse.org/tycho/job/tycho-github/job/tycho-2.7.x/28/ |
@jonahgraham @fipro78 Tycho 2.7.2 is about to be released including a fix for this, please help testing: #903 |
I verified this in the by reverting the previous workaround I had put in to CDT and building with 2.7.2-SNAPSHOT. |
With Tycho 2.7.1 the APP4MC Platform build breaks on building the 3rd party feature. It shows the following error message:
Execution default-package-feature of goal org.eclipse.tycho:tycho-packaging-plugin:2.7.1:package-feature failed: Neither raw version nor format was specified: null
With a verbose output I can see the following exception:
Caused by: java.lang.IllegalArgumentException: Neither raw version nor format was specified: null
at org.eclipse.equinox.internal.p2.metadata.VersionParser.parse (VersionParser.java:155)
at org.eclipse.equinox.p2.metadata.Version.create (Version.java:96)
at org.eclipse.equinox.p2.metadata.Version.parseVersion (Version.java:164)
at org.eclipse.equinox.p2.publisher.eclipse.FeatureEntry. (FeatureEntry.java:66)
at org.eclipse.equinox.p2.publisher.eclipse.FeatureEntry.createRequires (FeatureEntry.java:43)
at org.eclipse.tycho.p2.target.ArtifactMatcher.getVersionRangeFromImport (ArtifactMatcher.java:89)
at org.eclipse.tycho.p2.target.TargetPlatformBaseImpl.resolveArtifact (TargetPlatformBaseImpl.java:100)
at org.eclipse.tycho.packaging.FeatureXmlTransformer.resolvePluginReference (FeatureXmlTransformer.java:111)
at org.eclipse.tycho.packaging.FeatureXmlTransformer.expandReferences (FeatureXmlTransformer.java:83)
at org.eclipse.tycho.packaging.PackageFeatureMojo.expandVersionQualifiers (PackageFeatureMojo.java:258)
at org.eclipse.tycho.packaging.PackageFeatureMojo.execute (PackageFeatureMojo.java:124)
The feature.xml of the project that fails is located here:
https://git.eclipse.org/c/app4mc/org.eclipse.app4mc.git/tree/features/org.eclipse.app4mc.platform.3rdparty/feature.xml?h=develop
The text was updated successfully, but these errors were encountered: