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 231103 - File Z:\path\index.php was modified externally. Overwrite it? after several quick edits & saves
Summary: File Z:\path\index.php was modified externally. Overwrite it? after several q...
Status: REOPENED
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 7.3
Hardware: PC Windows 8
: P3 normal with 2 votes (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-11 19:19 UTC by primatas
Modified: 2013-10-27 13:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (366.48 KB, text/plain)
2013-06-11 19:19 UTC, primatas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description primatas 2013-06-11 19:19:00 UTC
Product Version = NetBeans IDE 7.3 (Build 201302132200)
Operating System = Windows 8 version 6.2 running on x86
Java; VM; Vendor = 1.7.0_17
Runtime = Java HotSpot(TM) Client VM 23.7-b01

when i edit file and save it, quick edit and save again (ctrl+s) IDE shows such confirmation: i have 2 buttons yes/no
 
File Z:\path\index.php was modified externally. Overwrite it? 

if i make bigger pause, at least several seconds, between saves - it mostly works just fine. it's so annoying..
Comment 1 primatas 2013-06-11 19:19:11 UTC
Created attachment 135655 [details]
IDE log
Comment 2 Vladimir Riha 2013-06-12 06:13:47 UTC
Could you please attach profiler snapshot taken in moment this happens (meaning start profiling, reproduce the problem and stop profiling)? See [1] for more information. Maybe there will be more information. 

Also, what is this Z:\, is it a local drive, network drive etc? It could be useful to know.


Thank you


[1] http://wiki.netbeans.org/FaqProfileMeNow
Comment 3 Tomas Mysik 2013-06-12 06:37:33 UTC
Please, tell us more about your project setup - e.g. do you use copying/uploading on save?

Simply reopen this issue, thanks.
Comment 4 primatas 2013-06-16 11:56:05 UTC
I'm working with windows, but i have ubuntu in virtual machine. Z:/ is mapped disk to ubuntu. there can't be any errors with this, all other programs works fine. i do not have anything like copy/upload on save, just save it locally on Z disk and that's it. I've been using previously netbeans with same environment and there were no issues. Can't tell which version I've used of netbeans previously.
Comment 5 Tomas Mysik 2013-06-17 05:28:57 UTC
The message comes from openide.text module. Reassigning (is it correct
component?), please evaluate.

Thanks.
Comment 6 neon55 2013-08-08 10:00:29 UTC
I have the same problem with a similar setup.

I'm working from Win 7 machine and have a drive mapped as z:\ through samba server on another local Linux box. We're using GIT to sync files to bitbucket.org as 3 programmers are working on this project.

On some files (.php) i can press "ctrl + s" as many times as i want to. On another files it constantly pops up "file XXX was externally modified. Overwrite it? At the same time "undo/redo" option disappears or allows only one step back. If i press ctrl + s just once and then wait a some time (e.g. 2 minutes), it will NOT popup the dialog.

I can see they're also talking about this bug here.
https://netbeans.org/bugzilla/show_bug.cgi?id=191445
And i tested what someone suggested, longer filenames and i can confirm there
is something about that.

thistest.php will popup dialog constantly (i can reproduce it everytime, it takes me just a few seconds), but if i rename this same file to thistest_thistest.php (longer filename), then this problem fully disappears. Once i rename it back to something shorter again ,the problem is back.

My NetBeans IDE version: 7.3.1 (Build 201306052037)

This bug is so annoying, basically as undo/redo option disappears when dialog pops up, it's a real deal breaker for me. I'll import the same project into the Eclipse to see if the same problem will occur there.

Kind regards!
Comment 7 neon55 2013-08-08 12:02:17 UTC
To update you about the problem (read my previous post above first):

I've installed Eclipse and i've tested the exact same project, the same files, used the same methods. It works there without a problem. So this really seems to be Netbeans related problem.

I have also installed Netbeans 7.4 beta, hoping this issue would be already solved there, but it wasn't.

I love Netbeans, but this bug is really a deal breaker for me and i'll have to work with Eclipse until this bug is resolved.

BTW: I've found quite a LOT of complaints regarding this problem on google, but noone offered a working solution yet.

best regrds!