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 226802 - After committing outside of the IDE changes editor still shows files as modified/new, works only after turning IDE on and off (worked fine in 7.2)
Summary: After committing outside of the IDE changes editor still shows files as modif...
Status: RESOLVED INCOMPLETE
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 7.3
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-27 18:00 UTC by pambuk
Modified: 2013-07-18 08:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (232.91 KB, text/plain)
2013-02-27 18:00 UTC, pambuk
Details
Extended log (-J-Dorg.netbeans.modules.git.status.level=-1) (230.96 KB, text/plain)
2013-03-04 13:34 UTC, pambuk
Details
Extended log (git.status.level=-1 and watcher.level=FINE) (318.51 KB, text/plain)
2013-03-04 14:42 UTC, pambuk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pambuk 2013-02-27 18:00:23 UTC
Product Version = NetBeans IDE 7.3 (Build 201302132200)
Operating System = Mac OS X version 10.6.8 running on x86_64
Java; VM; Vendor = 1.6.0_41
Runtime = Java HotSpot(TM) 64-Bit Server VM 20.14-b01-445
Comment 1 pambuk 2013-02-27 18:00:34 UTC
Created attachment 131983 [details]
IDE log
Comment 2 Marian Mirilovic 2013-02-28 08:26:24 UTC
What version control you use ?
Comment 3 Ondrej Vrabec 2013-02-28 08:34:31 UTC
What version control system? What kind of file (php, java, other)? Is it refreshed in the Projects/Files view? Please make a screenshot. Does it help if you close and reopen the file?
Comment 4 pambuk 2013-02-28 09:11:01 UTC
What version control system? 
GIT (git version 1.7.3.4)

What kind of file (php, java, other)? 
.php, .phtml, .js. css

Is it refreshed in the Projects/Files view?
No.

Does it help if you close and reopen the file?
No.

Please make a screenshot - I'm not really sure what you'd like to see, but here's a screenshot of a file after commit: http://cl.ly/image/3l0Q1L2V3F38
Comment 5 Ondrej Vrabec 2013-02-28 09:25:01 UTC
It seems the IDE thinks the status is still modified, i don't know why. Can you try to refresh the status manually (the refresh button in the diff view's tollbar)? Does the diff view display any differences for the file?
Comment 6 pambuk 2013-02-28 09:33:31 UTC
Refreshing manually in diff view helped.
Comment 7 Ondrej Vrabec 2013-02-28 09:37:38 UTC
btw, did you commit from the IDE or in shell/commandline ?
Comment 8 pambuk 2013-02-28 09:39:31 UTC
Commandline (always worked, until 7.3)
Comment 9 Ondrej Vrabec 2013-02-28 10:28:32 UTC
works for me except for one case: i open a project from a location that is a symbolic link to the real project folder. So my question is: is the path the project is opened from real canonicalized one or is there a symlink somewhere in its path?
Comment 10 pambuk 2013-02-28 11:18:40 UTC
No symlinks.
Comment 11 pambuk 2013-03-01 19:01:28 UTC
I had some apple's updates to install and as a result I restarted my computer and now Netbeans works, so I guess this restart may have helped or the updates helped - anyway, problem doesn't seem to be on Netbeans' side after all, sorry.
Comment 12 pambuk 2013-03-04 13:01:23 UTC
It doesn't work again so it wasn't a one time thing.
Comment 13 Ondrej Vrabec 2013-03-04 13:05:44 UTC
Please try this:
1) make some local changes, then shutdown the IDE
2) start the IDE with -J-Dorg.netbeans.modules.git.status.level=-1 (from shell)
3) wait for a while so the statuses in the IDE are refreshed
4) do the commit in commandline, switch to the IDE, then wait a while and if the statuses are not refreshed attach the messages.log (http://wiki.netbeans.org/FaqLogMessagesFile)

-J-Dorg.netbeans.modules.git.status.level=-1 enables more logging, so i will be a bit wiser after i analyze the logs
Comment 14 pambuk 2013-03-04 13:34:20 UTC
Created attachment 132150 [details]
Extended log (-J-Dorg.netbeans.modules.git.status.level=-1)
Comment 15 Ondrej Vrabec 2013-03-04 14:17:04 UTC
seems no FS events are fired when you commit externally, please try again once more with the previous switch plus with -J-Dorg.netbeans.modules.masterfs.watcher.level=FINE
Comment 16 pambuk 2013-03-04 14:42:15 UTC
Created attachment 132153 [details]
Extended log (git.status.level=-1 and watcher.level=FINE)
Comment 17 Ondrej Vrabec 2013-03-04 14:46:45 UTC
the messages log states:
> FINE [org.netbeans.modules.masterfs.watcher.macosx.OSXNotifier]: Event on /Users/wojtek/desktop/webwise/git/instantform-mimi/.git/
> FINER [org.netbeans.modules.git.status.cache]: getCachedStatus for file /Users/wojtek/Desktop/webwise/git/instantform-mimi/app/instantform/views/index.phtml: [MODIFIED_HEAD_WORKING_TREE, MODIFIED_INDEX_WORKING_TREE]
Notice the difference in names: /Users/wojtek/D(d)esktop - once with 'd', once with 'D'. What is the correct name? Make sure you open the project from the right location.
Comment 18 pambuk 2013-03-04 15:19:56 UTC
Strange, but both of those names work, although Desktop is the correct one (desktop isn't even listed by ls). I create projects from Netbeans and open them from Netbeans.
Comment 19 Ondrej Vrabec 2013-03-04 15:25:41 UTC
Reassigning to filesystems, please see the log. The events coming from OSXNotifier are delivered for /Users/wojtek/desktop/webwise/git/instantform-mimi/.git instead of /Users/wojtek/Desktop/webwise/git/instantform-mimi/.git. Not sure if it makes any difference, but VCS subsystem does not get any events regarding git metadata - it should get events via Interceptor.refreshRecursively
Comment 20 pambuk 2013-03-04 15:30:08 UTC
NB 7.2 worked fine. 
Should I go back to 7.2 or is it something I should change on my end in some system settings?
I don't really understand your last comment...
Comment 21 Ondrej Vrabec 2013-03-04 15:32:45 UTC
(In reply to comment #20)
> I don't really understand your last comment...
Wasn't intended to you but to the owner of platform/FileSystems
Comment 22 Jaroslav Tulach 2013-03-26 11:38:47 UTC
Please generate also log with:

-J-Dorg.openide.filesystems.DeepListener.level=FINE

and include the previous log messages too. Thanks.
Comment 23 Jaroslav Tulach 2013-07-18 08:23:43 UTC
No new report has been generated.