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.
Product Version: NetBeans IDE Dev (Build 200810031107) Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11 System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb) Userdir: C:\Documents and Settings\uadmin\.netbeans\dev ----------- - create project on UNC path - modify the java class, save it - dialog "File XXX was externaly modifed, do you wish to save it?" appears ..maybe should be assigned to FS?!
Can't see how this has any relation to the project system. (The very first thing you should check is to save a plain text file opened from a random UNC location in the Favorites tab, which would rule out any interactions from either Java infrastructure or the project system.)
reproducible always or random?
I am not able to reproduce it at all.
reproducible always on my XP. Just one note: when i do first modification in file and save it, no dialog appears. Second and every other modification brings up this dialog.
The problem is that there can be a delay between closing of stream and setting file modification time by OS. Please review my patch and possibly apply it.
Created attachment 71214 [details] CloneableEditorSupport patch.
*** Issue 149152 has been marked as a duplicate of this issue. ***
The fix helps. Thanks a lot: 34e0ffc99ff3
*** Issue 149330 has been marked as a duplicate of this issue. ***
Integrated into 'main-golden', will be available in build *200810080201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/34e0ffc99ff3 User: Jaroslav Tulach <jtulach@netbeans.org> Log: #149152 and #149069: Using real time from the file and not System.currentTimeMillis. Patch by jskrivanek@netbeans.org
Product Version: NetBeans IDE 6.5 RC1 (Build 200810151402) Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b15 System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb) I am sorry, but I have to reopen :( I found another steps to reproduce this problem (the external file modifications dialog) 1, create new simple J2SE project 2, create new package within this project 3, move Main.java to this new package 4, rename the new package -> the dialog appears, displaying that Main cannot be saved. From now on it keeps poping up, for example when you try to Save All. The only way to get rid of it is to directly save (ctrl+S) Main.java, because only then you have the option to confirm that you really want to save it (there are buttons Yes and No, in other cases there is just OK button)
Hopefully fixed with issue 149330. Please, try to reproduce in the latest trunk build.
You are right, it works without problem in 6.5 RC1 (Build 200810170201) (I am sorry, I did not realized I tried that on older build) Setting back to FIXED
Product Version: NetBeans IDE Dev (Build 200810240201) Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b15 System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb) Another approach :( Now after moving a .properties file Steps to reproduce: 1, Create new J2SE project with default setting. 2, Create a new package 3, In the new package create new JFrame Form and new Properties file with some key and value 4, Use the Properties file in the Form (e.g. use the value from the properties as Form's title) 5, Now move the Properties file to another package, add new key and value (or change it anyhow) and try to save it -> the well known dialog is here again (And agin: when using Ctrl+S, the dialog offers "Yes" and "No" buttons, while using "Save All" there is only "OK" button)
I believe it is another use case how to reproduce issue 150432. It belongs to properties module.
cannot reproduce on linux; 20081223