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 219101 - Project does not accept the source directory
Summary: Project does not accept the source directory
Status: RESOLVED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-27 06:29 UTC by rudyment
Modified: 2015-06-04 15:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (518.95 KB, text/plain)
2012-09-27 06:29 UTC, rudyment
Details
Screenshol of the project pane (16.69 KB, image/png)
2012-09-27 06:33 UTC, rudyment
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rudyment 2012-09-27 06:29:08 UTC
After the source folder has been mistakenly externally renamed, the project does not want to accept it despite it has been renamed back to the original name.

Removing the source folder int the option window and adding it back did not help.
In the project window inky the file icon is shown instead of the folder item (see the attached file)

Product Version = NetBeans IDE 7.2 (Build 201207171143)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_07
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.3-b01
Comment 1 rudyment 2012-09-27 06:29:23 UTC
Created attachment 124993 [details]
IDE log
Comment 2 rudyment 2012-09-27 06:33:03 UTC
Created attachment 124994 [details]
Screenshol of the project pane
Comment 3 rudyment 2012-09-27 06:59:30 UTC
I asked the NetBeans to delete the damaged project and checked, that its folder was really removed.

Then I copied the projects folder to the same place from another computer, where the same project correctly works.

When I opened this copy, both folders, that means Source Packages and Test Packages as well, were not accepted and only the file icons were shown at their places in the project pane.
Comment 4 rudyment 2012-09-27 07:15:59 UTC
When I again deleted this project and tried to create a new project with the same name, this new project has not the source folders. Again only the file icon was shown.

Closing and reopening NetBeans 7.2 did not help.

However closing the NetBeans 7.2, opening the projet in NetBeans 7.1, then closing the NetBeans 7.1 and reopening the NetBeans 7.2 solved the problem.
Comment 5 Milos Kleint 2012-10-02 10:13:06 UTC
what is the path on your local disk to the project in question? That would help a lot to make sense of the log file. Thanks.
Comment 6 Milos Kleint 2012-11-21 11:51:28 UTC
(In reply to comment #3)
> I asked the NetBeans to delete the damaged project and checked, that its folder
> was really removed.

using the Delete project action? did you delete the project source files as well?

> 
> Then I copied the projects folder to the same place from another computer,
> where the same project correctly works.


have you done that while the IDE was running?
How have you copied the projects? please note that some files (eg nbproject/private/*) can contain absolute paths to files and folders and as such would not work when copied from another computer.
Comment 7 rudyment 2012-11-22 16:03:17 UTC
(In reply to comment #5)
> what is the path on your local disk to the project in question? That would help
> a lot to make sense of the log file. Thanks.

Excuse me for long delay.
The path was many times mentioned in the attachment:

D:\Tvorba_PGM_SVN\@B_Knihy\@B_44G_POJJ_7\PRJ_44_AUX\N211z_SmoothVehicle
Comment 8 rudyment 2012-11-22 16:13:44 UTC
(In reply to comment #6)
> (In reply to comment #3)
> > I asked the NetBeans to delete the damaged project and checked, that its folder
> > was really removed.
> 
> using the Delete project action? did you delete the project source files as
> well?

Yes, and as I said, i checked, that the foder was really removed.


> > Then I copied the projects folder to the same place from another computer,
> > where the same project correctly works.
> 
> 
> have you done that while the IDE was running?

I don't remenber. Maybe.


> How have you copied the projects? please note that some files (eg
> nbproject/private/*) can contain absolute paths to files and folders and as
> such would not work when copied from another computer.

The all files are at the both computers at the same locations, at the same absolute address.
I have my working instance of NetBeans on the first computer and ane clear, not modified instance of the Netbeans on the second one. The secon NB instance I use for screeschots for the writen book.
Comment 9 Milos Kleint 2013-10-07 14:30:44 UTC
could be related to/duplicate of issue 236276, just different effect.
Comment 10 Tomas Stupka 2015-06-04 15:54:44 UTC
tried to reproduce in NetBeans IDE Dev (Build 20150604-3ebddb01bb22). Worked just fine. Guess this problem is gone. 
- after externally renaming the folder it disappeared from the projects view
- after renaming it back it reappeared and everything seemed to work fine

feel free to reopen in case you are able to reproduce with an current dev build