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 10109 - Adding a filesystem to repo can be ignored by projects module
Summary: Adding a filesystem to repo can be ignored by projects module
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Jan Pokorsky
URL:
Keywords:
Depends on: 10294
Blocks: 10310
  Show dependency tree
 
Reported: 2001-03-08 20:42 UTC by Jesse Glick
Modified: 2003-07-01 14:19 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch to JavadocModule for debugging purposes (3.58 KB, patch)
2001-03-18 08:04 UTC, Jesse Glick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2001-03-08 20:42:08 UTC
[dev mar 8 '01] If you add a new filesystem to the repository around the same
time the projects module is being restored (tested in my case during first user
start, multiuser mode, from a ModuleInstall.restored() method), then usually the
filesystem will not really appear in the Filesystems tab. Occasionally it will.
If you wait a couple of seconds after module restore time, it is more reliably
added.

Probably a synchronization problem between opening the default project and the
repository.

Makes it difficult to move examples dir to usersguide module: no reliable time
to mount it. I could wait for the Places.Nodes.projectDesktop to change, but
this will never happen if the projects module is not installed.
Comment 1 David Strupl 2001-03-09 13:13:58 UTC
I am testing more synchronous project open. I don't know whether it could help
here though.
Comment 2 Jan Chalupa 2001-03-12 12:12:31 UTC
Version: 'Dev' -> 3.2
Comment 3 Jesse Glick 2001-03-18 08:03:48 UTC
Still open: I have debugging code in usersguide's UGModule, and sometimes it
just adds the samples/ dir and it is OK, sometimes it has to do it a second time
before it "sticks". Furthermore, javadoc is not consistently mounted, I found.
Will attach patch to JavadocModule.java; if you run a full build (firststart,
user start) you can see that the filesystem gets mounted, but does not appear in
Javadoc tab (at least not reliably).

Linking to #10294 because the outcome of that may affect testing of this bug.
Comment 4 Jesse Glick 2001-03-18 08:04:45 UTC
Created attachment 824 [details]
Patch to JavadocModule for debugging purposes
Comment 5 Jesse Glick 2001-03-26 14:18:57 UTC
Probably of interest to Javadoc maintainers as well, though I have already filed
a P1 showing how to fix the problem anyway.
Comment 6 Jan Pokorsky 2001-04-05 13:42:46 UTC
Jesse is this still a projects bug? I think that now if you want to mount a 
filesystem regardless on a current project or installed projects module you can 
do it but it has to be as global.

When a project is opened now it clears all mounted non-global filesystems and 
mounts its own. I do not know how just opening project should decide which fs 
remains and which not. May be it could detect start of ide in case of newly 
installed modules but what others projects opened later? May be it could 
trail project open action and mount fs after that. IMO the simplest way is to 
make fs global.

If there is no objection I would close the bug.
Comment 7 Jesse Glick 2001-04-05 16:50:14 UTC
Close it if in fact it works now. Note that usersguide *does* mark the
filesystem it mounts global. Sometime recently, it was not working all the time
as I said--from time to time it would have to remount the samples/ dir. You can
easily see for yourself--if the ide.log says "Adding samples directory to
Filesystems again." then the bug is still open. I have not checked very
recently, so if you specifically fixed this in the past few days then close it.
I will reopen if necessary.
Comment 8 Jan Pokorsky 2001-04-06 14:15:10 UTC
My ide.log contains just lines below about samples directory

Creating samples directory D:\userdirs\u32a\samples
Adding samples directory D:\userdirs\u32a\samples to Filesystems.
OK, samples directory is still in Filesystems.

FS with samples appears regularly in the repository. Global filesystems are not 
cleared from the repository by projects module during opening module now.

So I hope that it works well now.
Comment 9 Jan Chalupa 2001-05-06 14:26:58 UTC
Target milestone -> 3.2
Comment 10 Milan Kubec 2002-10-18 10:55:27 UTC
Verified, not reproducible.
Comment 11 Quality Engineering 2003-07-01 14:19:12 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.