This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 57661 - can't import projects from eclipse3.1 workspace
Summary: can't import projects from eclipse3.1 workspace
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Eclipse project importer (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-08 11:34 UTC by Pavel Rehak
Modified: 2008-01-04 14:59 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log file as requested on 9/19/2005 (20.42 KB, text/plain)
2005-09-20 05:57 UTC, pbannister
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Rehak 2005-04-08 11:34:15 UTC
tested on NB41. RC1 build with installed Eclipse Importer 1.1.15
------
Created new workspace in eclipse3.1m6 with basic project in it
and opened it in importer as eclipse workspace,
pressed next push button and message:
the workspace in directory "E:\eclipse3.1m6\workspace\" is invalid.
Old workspaces from eclipse3.1m5 works fine.
Comment 1 Martin Krauskopf 2005-04-08 12:20:06 UTC
Reproduced under linux as well.
Comment 2 Martin Krauskopf 2005-04-08 13:05:50 UTC
Fixed in trunk. There is a new element in a .classpath file (hope that only one).
Pavle could you verify it - it'll go into release41.

Checking in
src/org/netbeans/modules/projectimport/eclipse/wizard/ProjectSelectionPanel.java;
new revision: 1.20; previous revision: 1.19
Checking in src/org/netbeans/modules/projectimport/eclipse/ClassPathParser.java;
new revision: 1.4; previous revision: 1.3
Checking in manifest.mf;
new revision: 1.27; previous revision: 1.26

Comment 3 Pavel Rehak 2005-04-08 13:32:10 UTC
Verified with importer 1.1.16

I'm gonna check importing projects from eclipse 3.1m6 more deeply though.
Comment 4 steffi 2005-04-08 14:43:00 UTC
Just adding myself to CC:
Comment 5 Martin Krauskopf 2005-04-11 13:23:32 UTC
Fixed in release41 as well.

Checking in manifest.mf;
new revision: 1.26.4.1; previous revision: 1.26
Checking in src/org/netbeans/modules/projectimport/eclipse/ClassPathParser.java;
new revision: 1.3.14.1; previous revision: 1.3
Checking in
src/org/netbeans/modules/projectimport/eclipse/wizard/ProjectImporterWizard.java;
new revision: 1.11.6.1; previous revision: 1.11
Checking in
src/org/netbeans/modules/projectimport/eclipse/wizard/ProjectSelectionPanel.java;
new revision: 1.19.2.1; previous revision: 1.19

Comment 6 pbannister 2005-09-19 17:24:54 UTC
I am seeing the exact same symptom.  Using Eclipse 3.1.0 (with all updates). 
With both Netbeans 4.1 (with all updates) and 5.0 (9/15 daily pre-release build)
tried to use the Eclipse project importer.

The "Workspace Location" dialog objects to other directories, and accepts
"c:\workspace" (all quite proper).

The "Projects to Import" dialog presents an empty list (there are in fact 10
Eclipse projects in the directory), along with the complaint:
  "The workspace in a "C:\workspace\" directory is invalid."

I do not know if this should be the same issue continued, or opened as a new
issue - given that the symptom appears identical.
Comment 7 Martin Krauskopf 2005-09-19 18:10:21 UTC
Strange. Please be sure that you are not trying to import project from
"First-time started Eclipse IDE" - you need to exit/restart it. Since it seems
that the Eclipse will create some important metadata when you exit the ide.
After you start it second time you don't need to exit it anymore. If this is not
your case please run the NetBeans IDE with the parameter:

-J-Dprojectimport.logging.level=FINEST

This will turn on some logging information. Then attach the output log as an
attachment here. This could help a lot. Thanks.
Comment 8 Martin Krauskopf 2005-09-19 18:13:34 UTC
> I do not know if this should be the same issue continued, or opened as a new
> issue - given that the symptom appears identical.

Probably better to file a new issue. Since this one was really fixed ;)
Comment 9 pbannister 2005-09-20 05:57:47 UTC
Created attachment 24960 [details]
Log file as requested on 9/19/2005
Comment 10 pbannister 2005-09-20 06:05:18 UTC
Started netbeans 4.1 with the options "-J-Dprojectimport.logging.level=FINEST"
as requested, saw the same symptoms, and the log file is attached.

Tried and succeeded in importing the Eclipse project in question on another
computer.  The workspaces on the two machines differ, so the issue is apparently
with one of the other projects.
Comment 11 pbannister 2005-09-20 18:06:41 UTC
Oh yes - this is months of daily activity past the "First-time started Eclipse
IDE", so the metadata (quite a lot of it - on inspection) is there.
Comment 12 Martin Krauskopf 2005-09-21 08:09:47 UTC
Thanks for the log. There is a new element I didn't count with it. I'll consider
rewriting of some parts of code. Thanks for the cooperation.
Comment 13 Martin Krauskopf 2005-12-22 10:34:23 UTC
Sorry for late response, I was quite busy with works on other parts of IDE.

Seems to me that you chose to not use default system libraries for your
project's JDK which is... quite OK :) But Eclipse Importer didn't take this into
account.
Either I will enhance importer to take this into account or at least fix it to
pass and ignore additional external jars added to the used JDK (in that case I
would file another issue and CC you). I'm not sure how hard it will be to
impolement know.
Comment 14 Martin Krauskopf 2005-12-22 10:36:35 UTC
CCing pbannister who reported the last problem I'm going to solve. See my
previous comment. You must CC yourself if you want to be informed about
progress. Or remove if not ;)
Comment 15 Martin Krauskopf 2005-12-22 13:11:55 UTC
Fixed. Import now passes and prints out an INFO that this is currently
unsupported with link to the issue 70733 - issue for supporting additional jars
on the classpath. CC yourself there if you want to be informed.
Also verifying is appreciated (as soon as new version of Eclipse Importer is on
AutoUpdate center - version 1.23).

Checking in test/unit/projectimport/eclipse/PreferredVMParserTest.java;
initial revision: 1.1
Checking in projectimport/eclipse/PreferredVMParser.java;
new revision: 1.4; previous revision: 1.3
Comment 16 Martin Krauskopf 2006-01-05 10:53:45 UTC
Backported for 5.0 autoupdate, should appear there in a day or so.
Comment 17 Tomas Bilka 2006-03-16 16:20:53 UTC
verified in NB 5.0