-
Notifications
You must be signed in to change notification settings - Fork 196
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
Slicer fails when missing dependency #610
Comments
First of all you should Upgrade to tycho 2.6.0 to be sure the problem perist and you get the latest stack-trace for error reporting.
Second check would be to open the target file with PDE, does it resolves there or do you also get an error?
Last but not least try to provide an integration-test to demonstrate the issue as small as possible, so we can further investigate it. |
Thanks for the quick reaction. With version 2.6.0 it behaves exactly the same. In the IDE the target file can be resolved without problem and I can use it to build and run the app. From my description of the problem does it seem like there may be a problem for which I will try to provide the repro case or does it actually behave as intended (i.e. failing because the required dependency is not available in same location)? Here is complete trace from the execution with 2.6.0 and -X flag
|
If it resolves in the IDE it should resolve in tycho, so I would consider this a bug where we do not have any test coverage for at the moment. |
Here is PR with a repro case #622 If you change mode to If you stop the test at start such that the server is running (e.g. by breakpoint) and open the target file with substituted URLs in eclipse it will resolve it fine and show its contents as expected. One more possibly interesting observation is that the problem only manifests for dependencies from features, not from plugin manifest. The difference between the two is in that |
@mickaelistria what do you think should we include this with 2.7.x? I think this is clearly a bug (maybe even an undiscovered regression). |
I don't think we should commit to do anything for 2.7 any more. The more we wait, the more bugs we'll find anyway... |
… from slicer as failure to be consistent with eclipse
make SlicerResolutionStrategy not consider warnings from slicer as failure to be consistent with eclipse update tests for target resolution to expect that slicer does not fail if dependencies are missing
make SlicerResolutionStrategy not consider warnings from slicer as failure to be consistent with eclipse update tests for target resolution to expect that slicer does not fail if dependencies are missing
@vaclavHala this fix should be part of the snapshot now, please check if the issue is solved by |
Our build works fine now with 2.7.0-SNAPSHOT, thanks |
Hi, I've encountered the following problem and I'm not sure if its a bug or I just misunderstood the docs I found.
I have tycho configured to use target definition file. In the target file there are multiple locations like this
Say
some_unit_2
depends onsome_unit_1
which is only available insome_repo_1
. When I try to run a build using this target I get following errorDigging into the code I think I found the culprit.
First because I use "slicer" mode
so now
org.eclipse.equinox.internal.p2.director.Slicer
is used and it runs into thisand when this result is evaluated it is treated as failure
I'm running tycho 2.5
Thanks for any hints on this
The text was updated successfully, but these errors were encountered: