| Summary: | Shared install local plugins not loaded due to mishandling of bundles.info | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | Ben Tels <bzt> | ||||||
| Component: | p2 | Assignee: | P2 Inbox <equinox.p2-inbox> | ||||||
| Status: | CLOSED DUPLICATE | QA Contact: | |||||||
| Severity: | major | ||||||||
| Priority: | P3 | CC: | bzt, irbull, niels, simon_kaegi | ||||||
| Version: | 3.6 | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Ben Tels
What are using as your base install. e.g. which EPP package from the download page. If the users bundle.info does not contain a reference to every bundle in the shared bundle.info the shared bundle.info is used as the basis of the install. If possible could you compare the two to see if you can see any difference. (In reply to comment #1) Hi Simon, > What are using as your base install. e.g. which EPP package from the download > page. The basic Eclipse IDE for Java Developers package. Which I downloaded explicitly to experiment with, but I had an earlier experience with exactly the same problem on the package for JEE development (which is currently installed per-user due to this problem). > If the users bundle.info does not contain a reference to every bundle in the > shared bundle.info the shared bundle.info is used as the basis of the install. > If possible could you compare the two to see if you can see any difference. I just did a diff of the two. The local file is a strict superset of the shared file (i.e. it has lines that are not in the shared file, but the entire contents of the shared file are in the local file). Does Eclipse use a diff-like tool to compare local and shared files? Because I did notice the extra lines in the local file are mixed in with the lines that were copied over from the shared install. If Eclipse is using a diff-like algorithm, could the existence of differences in the middle of the file be leading to make the wrong choice? (In reply to comment #2) > > I just did a diff of the two. The local file is a strict superset of the shared > file (i.e. it has lines that are not in the shared file, but the entire > contents of the shared file are in the local file). > Hum.. I've reproduced a similar problem on Linux, but in my case the Shared file was not a strict subset of the Local file (some entries from the shared file have been removed / changed). > Does Eclipse use a diff-like tool to compare local and shared files? Because I > did notice the extra lines in the local file are mixed in with the lines that > were copied over from the shared install. If Eclipse is using a diff-like > algorithm, could the existence of differences in the middle of the file be > leading to make the wrong choice? IIRC, Eclipse just loads the contents into two sets and does some set math. So the fact that they are mixed shouldn't cause a problem. Can you upload the two bundles.info files? It would be interesting to see if there is anything else in there that could be causing problems. FWIW, I do have shared installs working (there is appears to be some combination of installs that lead to this). When it works, I also have the local plugins referenced relative to the shared install directory, and this appears to work fine. Created attachment 176489 [details]
bundles.info -- local file
The locally installed file with the local plugin references.
Created attachment 176490 [details]
Shared bundles.info
(In reply to comment #3) > Can you upload the two bundles.info files? It would be interesting to see if > there is anything else in there that could be causing problems. I've uploaded them. Sorry for the delay -- I didn't get a mail of your reply for some reason. Ok, I'm pretty sure this is the same issue that we've seen time and time again. I need to start closing these as duplicates so we can keep all the information in one place. In this case you do have all the bundles in your local bundles.info file, but some of them have 'moved' from your shared to your local area. BundleInfo objects are compared with location, so this change makes them not equal. Thanks for uploading these files. Just so you know, this appears to be a configuration problem with the EPP packages (that's the root cause). I'm working with them to see if we can get that configuration problem fixed. Thanks again! (In reply to comment #7) > Just so you know, this appears to be a configuration problem with the EPP > packages (that's the root cause). I'm working with them to see if we can get > that configuration problem fixed. > > Thanks again! No problem. Hope it helps you guys to get it fixed! Thanks, Ben. *** This bug has been marked as a duplicate of bug 322929 *** |