| Summary: | [preferences] Issues in Inport option of User Libraries (Windows -> Preferences) | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Naveen Jain <naveen.jain> | ||||
| Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | jerome_lanneluc, martinae, naveen.jain | ||||
| Version: | 3.2 | ||||||
| Target Milestone: | 3.4 M2 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 2000 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Naveen Jain
Could you please attach the file you are trying to import to this bug ? Created attachment 77961 [details]
It contains User libraries
It is not specific for importing a particular file. Normally, it works fine but when it stops working, it does not work for any of the user library file.
Reproduced using latest I-build. It looks like the attached user libraries file has the wrong version: <eclipse-userlibraries version="2"> Changing it to <eclipse-userlibraries version="1"> makes the import work. What version of Eclipse did you use to export the user libraries ? Moving to JDT/UI for further investigation. Hi, We are using Eclipse 3.2.0 version. Moreover, I draw your kind attention to the fact that import button stops responding, giving errors n error console. It is different from the argument that jars do not get imported properly when selected a file. In that case, I can think of invalid version in file. However, I face a scenario where import button becomes inactive. Please clarify. Regards Naveen Jain Is it possible that the file from comment 2 has been manually edited? It seems as if a extra library was added at the end, but its using the wrong path delimiters. As workaround, I suggest you to change this to <library name="remoteTea" systemlibrary="false"> <archive path="Y:/km_cmg/biip/3pp/remotetea/jrpcgen.jar" /> <archive path="Y:/km_cmg/biip/3pp/remotetea/oncrpc.jar" /> <archive path="Y:/km_cmg/biip/3pp/remotetea/portmap.jar" /> </library> (You can keep the version to 2, as it is now) We can add more tolerance to the importer code, but this will be for 3.4 or 3.3.1 maximum. I'm not sure if that helps. What you observe is correct: once you tried to import the malformed file, you cannot even press 'Import' the next time. The reason is that the path of the previous file is stored and it is attempted to be loaded when the dialog is opened. fixed in 3.4 > 20070911 Martin, Thanks for your observations. Yes, I added last library block in the file manually. However, it worked fine for 2-3 times since I was able to import it fine. Suddenly, while setting up a new project, it stopped working. It is just for your information as I am quite convinced that your solution will work for me. I am unable to understand following line: We can add more tolerance to the importer code, but this will be for 3.4 or 3.3.1 maximum. I'm not sure if that helps. Do you mean upgrade to higher version of Eclipse? We are using many plugins so we can not upgrade Eclipse to 3.3 or 3.4 immediately. Can you provide some kind of patch for 3.2 itself? Yes, we're now working on 3.4 and 3.3.x. Requesting patches and rebuilds for 3.2 is a lengthy process. If you want that, I can find out who you have to ask to. But as you were manually editing the file, which is not really supported, I'd rather suggest you to fix your libraries file. Is that possible? Martin, Surely, I will do so as I understand it is not easy to provide fixes for previous releases. You can close the bug from my end. Thanks very much. Regards Naveen Jain |