Bug 43900 - Problems after importing
Summary: Problems after importing
Status: RESOLVED DUPLICATE of bug 44066
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.0 M4   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-30 07:25 EDT by Dani Megert CLA
Modified: 2004-02-06 14:03 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2003-09-30 07:25:02 EDT
I20030925 + newest code (Jdt Core + Jdt UI for I20030930).

Note: this is not reproducable but I've seen it at least twice:

1. start with fresh worksapce
2. create Java project "JUnit"
3. import JUnit source from zip file

==> background build kicks in (ok)
everything got correctly compiled BUT: Neither Package Explorer nor Java
Browsing views show any Java elements besides the Java project itself. Closing
and reopening the views doesn't help. Closing and reopening the project fixes 
the problem.

Nothing in .log.

Martin, might this be caused by our content provider changes?
Comment 1 Martin Aeschlimann CLA 2003-09-30 07:34:05 EDT
Sound's more like a problem in jdt.core. If refresh doesn't help it seems to me 
that the model is not complete.
Was this with PRIMARY_WORKING_COPIES or without?
Comment 2 Dani Megert CLA 2003-09-30 07:42:31 EDT
PRIMARY_WORKING_COPIES= false.
Happened during smoke test but Markus also saw this in his dev workspace.

I assume it is related with background building.
Comment 3 Dirk Baeumer CLA 2003-09-30 08:48:36 EDT
Asdking JDT/Core if this is related to bug 43847
Comment 4 Philipe Mulet CLA 2003-09-30 09:55:14 EDT
Sounds like a dup of bug 43670. Are you sure you were using a better JDTCore ?
Comment 5 Dani Megert CLA 2003-09-30 10:04:33 EDT
Yes, the one you released for the build (v_373 - we could not take the
advertised version v_374 since it did not exist).

Note: it is sometimes hard for us to know which JAR belongs to which CVS code
since you only update the JAR on your web page but you don't update the CVS tag
on that page. Currently there's a JAR from yesterday but it says:
  Corresponding sources are versioned using tag v_370
Comment 6 Philipe Mulet CLA 2003-09-30 17:43:38 EDT
The web page is wrong. The build note is the one telling the truth:
Eclipse SDK 3.0M4 Build - ?th September 2003 
Project org.eclipse.jdt.core v_373 (cvs). 

Also once you grab the JAR, you can tell its version with the following command:

java -classpath jdtcore.jar org.eclipse.jdt.internal.compiler.batch.Main -
version
Comment 7 Philipe Mulet CLA 2003-09-30 17:44:22 EDT
v_374 isn't released yet, it is the next version in progress.
Comment 8 Dani Megert CLA 2003-10-01 03:28:25 EDT
The thing why I brought this up is because we don't import the J Core JAR on our
build machine: we use the tagged code. This makes it easier for us: we export
the J Core stuff together with our stuff on a daily basis to a plugin-export
location. Therefore it would be very handy if you could provide a tag at least
for the official patches.
Comment 9 Philipe Mulet CLA 2003-10-01 04:51:38 EDT
This isn't a likely thing we can promise, we will only version once we think we 
are done, and usually there are a few tweaks to perform in the last day before 
integration. 
Comment 10 Dani Megert CLA 2003-10-01 04:57:05 EDT
That's no problem as long as we can rely on the information on the web page. If
there's a JAR and an outdated tag then this is the problem. If you post a patch
and remove the tag info if outdated then we know we have to take the JAR since
there's no tag yet.
Comment 11 Martin Aeschlimann CLA 2003-10-07 09:46:08 EDT
I got this bug again 2 times again. (using jdt.core v_373b).

- Start with a new workspace
- Create a new Java Project, use project as source folder and output location
- File->Import..->Zipfile  junitsrc.zip
- Look in the package explorer:
The sources are imported but there are no package fragments, only resource 
folders. It seems as if no source folder is configured. However, looking at the 
build path page: Everething is fine

- Close and open the project to get the correct view
Comment 12 Frederic Fusier CLA 2003-10-07 13:13:41 EDT
Martin,
I cannot reproduce your problem even if I precisely following your scenario 
with version v373b. I've also use latest versions (v373c and HEAD stream) and 
still cannot reproduce it.
Are you sure you gave us correct steps for this issue?
Frederic
Comment 13 Frederic Fusier CLA 2003-10-07 14:02:00 EDT
I finally found where the problem was. In your scenario you said that project 
should be source folder and output location. This is wrong as to reproduce the 
problem output location has to be different than source folder.

I've tried with JUnit/bin for output location and project for source folder and 
reproduce the bug *systematically*.

The good news is that now we're able to reproduce the problem, Jerome 
identifies it as a duplicate of bug 44066.

I've verified that whith his fix, this issue does not longer happen with 
version v373c and after.

*** This bug has been marked as a duplicate of 44066 ***