new Java project has error, may disappear from Project Explorer [message #256390] |
Mon, 15 September 2008 10:50  |
Eclipse User |
|
|
|
Hi,
Sometimes when I create a new Java project, it shows up in the Project
Explorer view for a split second and then disappears. It happens about
10% of the time.
Whether or not the project disappears from the Project Explorer view, it
always has an error initially. There's a red X which quickly goes away.
It comes and goes so fast that the Problems view never displays it. I
think it may be important. How can I figure out what that error is?
Other info:
* The project is being created OK: if I do a Refresh then it appears.
* Turning the Build Automatically preference on/off has no effect.
* I've never had the problem with the Navigator or Package Explorer views.
In fact I've had all three views open at the same time, and the project
is only missing from the Project Explorer.
* There's nothing relevant in the .log file and no exceptions are being
thrown.
* I'm using Eclipse 3.4.0, Build id: I20080617-2000
* I create the project this way:
1. Use IWorkspaceRoot.getProject(String) to get an IProject.
2. Call project.create(null) then project.open(null).
3. Add the nature JavaCore.NATURE_ID using
project.setDescription(IProjectDescription,null).
4. Finally, I create some folders and files in the new project.
* The problem didn't happen when I used the same code with Eclipse 3.2.
* I tried project.refreshLocal() but it didn't help.
* If I use the New Project wizard, this does not happen. The project is
always shown in the Project Explorer view and it won't have that
short-lived error.
There might be a bug in my code, or a bug in JDT or Platform. I'd
appreciate some help tracking down the problem before I open a bug report
and possibly waste someone's time.
|
|
|
Re: new Java project has error, may disappear from Project Explorer [message #256403 is a reply to message #256390] |
Mon, 15 September 2008 13:04   |
Eclipse User |
|
|
|
Matt Heitz wrote:
> Hi,
>
> Sometimes when I create a new Java project, it shows up in the
> Project Explorer view for a split second and then disappears. It
> happens about 10% of the time.
I think you see this: https://bugs.eclipse.org/bugs/show_bug.cgi?id=242762
Dani
>
> Whether or not the project disappears from the Project Explorer view,
> it always has an error initially. There's a red X which quickly goes
> away. It comes and goes so fast that the Problems view never displays
> it. I think it may be important. How can I figure out what that
> error is?
>
> Other info:
> * The project is being created OK: if I do a Refresh then it appears.
> * Turning the Build Automatically preference on/off has no effect.
> * I've never had the problem with the Navigator or Package Explorer
> views. In fact I've had all three views open at the same time, and the
> project is only missing from the Project Explorer.
> * There's nothing relevant in the .log file and no exceptions are
> being thrown.
> * I'm using Eclipse 3.4.0, Build id: I20080617-2000
> * I create the project this way:
> 1. Use IWorkspaceRoot.getProject(String) to get an IProject.
> 2. Call project.create(null) then project.open(null).
> 3. Add the nature JavaCore.NATURE_ID using
> project.setDescription(IProjectDescription,null).
> 4. Finally, I create some folders and files in the new project.
> * The problem didn't happen when I used the same code with Eclipse 3.2.
> * I tried project.refreshLocal() but it didn't help.
> * If I use the New Project wizard, this does not happen. The project
> is always shown in the Project Explorer view and it won't have that
> short-lived error.
>
> There might be a bug in my code, or a bug in JDT or Platform. I'd
> appreciate some help tracking down the problem before I open a bug
> report and possibly waste someone's time.
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.21470 seconds