Comments (18)
Thanks for the example, I'll try to take a look at this. Can you verify that removing the additional bundle from the build.properties makes the build succeed?
from tycho.
Can you verify that removing the additional bundle from the build.properties makes the build succeed?
yes this works
so it looks like tycho now seeks for upstream add. bundles to be present in downstream plugins, whilst in pde they are not, they are available in the plugin specifiying the add. bundles only.
from tycho.
so it looks like tycho now seeks for upstream add. bundles to be present in downstream plugins, whilst in p2 they are not, they are available in the plugin specifiying the add. bundles only.
Can you elaborate a bit more here? I must confess I'm not completely sure what you suspect to be the problem here.
from tycho.
pde:
mydsl has add. bundles org.eclipse.xtext.xtext.generator so i can use stuff from it like XtextGenerator class.
in myldsl.ide which has a dependency to mydsl i cannot use stuff from org.eclipse.xtext.xtext.generator
but why does tycho need it then
from tycho.
Tycho resolves the complete chain of transitive dependencies.
from tycho.
then the question would be: why can mydsl find org.eclipse.xtext.xtext.generator if it is resolved itself,
but cannot find it (org.eclipse.xtext.xtext.generator) if it (mydsl) is resovled as dependency of mydsl.ide
so when i restrict the build to
<modules>
<module>org.xtext.example.mydsl</module>
<module>org.xtext.example.mydsl.target</module>
</modules>
it is green
from tycho.
I don't know yet :-)
Possible reasons include:
- Target platform is different for both projects
- A bug in Tycho
- A bug in P2
- Something is restricting the scope (e.g. platform filters)
- ...
from tycho.
I have checked out your example. The build complains about
"org.xtext.example.mydsl" is missing it is not part of the target nor part of the reactor build.
from tycho.
but why
and why could it be resolved 50 lines before
[INFO] Computing target platform for MavenProject: org.xtext.example.mydsl:org.xtext.example.mydsl:1.0.0-SNAPSHOT @ /Users/cdietrich/eclipse-workspaces/es2103/org.xtext.example.mydsl.parent/org.xtext.example.mydsl/pom.xml
[INFO] Resolving dependencies of MavenProject: org.xtext.example.mydsl:org.xtext.example.mydsl:1.0.0-SNAPSHOT @ /Users/cdietrich/eclipse-workspaces/es2103/org.xtext.example.mydsl.parent/org.xtext.example.mydsl/pom.xml
[INFO] Resolving class path of MavenProject: org.xtext.example.mydsl:org.xtext.example.mydsl:1.0.0-SNAPSHOT @ /Users/cdietrich/eclipse-workspaces/es2103/org.xtext.example.mydsl.parent/org.xtext.example.mydsl/pom.xml
[INFO] Fetching 202103171000&countryCode=de&timeZone=1&format=xml from http://www.eclipse.org/downloads/download.php?format=xml&file=/releases/2021-03/
...
from tycho.
Good question :-)
While implementing this feature I had the problem that the requirement was there but the claspathresolver has thrown it away, but here it seems missing in the first place. I need to further debug this.
from tycho.
I think I found the issue, if the bundles uses requirebundle AND additional bundles then only the req. ones are used.
from tycho.
@cdietrich can you try with a local build version of https://github.com/laeubi/tycho/tree/issue_23 if that fixes your issue?
from tycho.
@laeubi nice, my demo project seems to work, so do xtext-eclipse and xtext-xtend
from tycho.
Thanks for verification!
from tycho.
@laeubi I think this is worthwhile to be mentioned in the release notes
from tycho.
from tycho.
@cdietrich 👍 @LorenzoBettini I did not think that this feature is of much interest to be noted in the release notes :-)
from tycho.
@laeubi IMHO it definitely is :)
I mean it's something that it was meant to work but it didn't
from tycho.
Related Issues (20)
- set-version fails to update MANIFEST.MF if CI-firendly versions are in use
- Improve output for missing requirements on dependencies
- Building fails because of `Inconsistent reactor project` HOT 2
- Broken links in the Eclipse/Github wiki HOT 1
- Unconsidered linked .classpath files and test source folders HOT 1
- [tycho-version-plugin] Since 4.0.5 non-matching version of child modules are forcefully overwritten HOT 3
- forceContextQualifier has been broken since Tycho 4.0.5 HOT 1
- sort order of root nodes in dependency-tree is unstable HOT 1
- Linked .classpath files: linked classpath entries paths not resolve against project base directory
- Parsing custom variables in linked project resources HOT 2
- [DS] Validation of transitive generated 'osgi.extender=osgi.component' requirement fails HOT 11
- support reuseFork option in tycho-surefire-plugin
- Unable to build eclipse application repository or site with patch features HOT 3
- The application packaged by Tycho can't start on MacOS 14.4 HOT 1
- Missing p2 dependencies in maven dependency:tree output HOT 1
- Goal `publish-features-and-bundles` inherits metadata available in reactor HOT 3
- Not possible to remove qualifier for release build from bundles/features and product when using CI friendly versions HOT 1
- Strange error with Tycho 4.0.8 HOT 4
- [sbom] BOM is calculated multiple times for the same unit HOT 3
- DumpStackTracesTimer fails to log during platform shutdown
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tycho.