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 211915 - When a project is included under Libraries it is not seen if opened via a Window share path
Summary: When a project is included under Libraries it is not seen if opened via a Win...
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.0.1
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-01 21:33 UTC by lvskiprof
Modified: 2016-07-07 07:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lvskiprof 2012-05-01 21:33:14 UTC
This appears to be similar to the Javadoc issue mentioned in bug 198563.  If a project that is listed as being part of the libraries for a project is listed via a share path in Windows, instead of via a drive letter, no changes to that project will be seen by the project that depends on it.

How to reproduce:

To reproduce this simply open a main project and a library project that the main depends on.  In my case I opened the library project via the drive letter.

In the main project Properties, under the Libraries, list the library project in the Library settings - but by a share pathname (\\MyDocuments\yourID\NetbeansProjects\library for example).  Now make a change to the library project source code by adding a new class or a method.  If you try to reference the new class or method it will show as an unknown class or symbol.

Workaround:
Remove the entry under Libraries and add it using the drive letter and everything will be good.

I did not test if it worked fine if both library definition *and* project were named via a share path, but it might.  It is quite possible that it is the "different" paths (one via share path and the other via drive letter path) that has caused this problem.

Unfortunately for me the My Documents at work defaults to the share path and not the drive letter.  I am in the habit now, because of 198563, to opening my projects using the drive letter.  However, many of them that defined a dependent project under libraries I did before I knew that was an issue, so they are defined using the share path.

Other than issuing a warning dialog about using a share path when opening a project or defining a library dependency I am not sure there is a way to "fix" this.  A warning dialog would at least make people aware of the issue, similar to what was proposed for the Javadoc issue in bug 198563.
Comment 1 Martin Balin 2016-07-07 07:18:52 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss