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.
Summary: | When saving/compiling across a network, user gets "File has been externally modified" message. | ||
---|---|---|---|
Product: | platform | Reporter: | _ tboudreau <tboudreau> |
Component: | Filesystems | Assignee: | Jaroslav Havlin <jhavlin> |
Status: | REOPENED --- | ||
Severity: | normal | CC: | teynon |
Priority: | P4 | ||
Version: | 3.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Netbeans log with notifyModified |
Description
_ tboudreau
1999-12-15 20:42:50 UTC
Priority is changed to P4 (normal). Mila, is this bug still apearing in the current code? Otherwise, can you close it? I think it's fixed already. I will close it as fixed. If it appears again we will reopen it. Resolved for 3.4.x or earlier, no new info since then -> verified. Resolved for 3.4.x or earlier, no new info since then -> closing. I am experiencing this exact issue on 7.3 Build 201302132200. Windows 7 64 bit accessing files on a Linux/Samba server. Saving the file causes the message and navigating away and then refocusing with unsaved changes occasionally results in "X was modified externally. Reload it?" I've tried clearing cache and re-installing. There seems to be a short period after start-up that this doesn't happen. This may or may not be related, but adding a space to a new line anywhere in a file is automatically converted to around 16 to 20 spaces. Wow, a bug from the dawn of time reopened! If the data in your files is not being saved correctly, I'd suspect something is badly broken in the network or Samba setup. Is that reproducible with Notepad or similar? Depending on the file type, it's also possible that when you pressed enter, the IDE simply indented the next line and inserted spaces to do that, which would be normal behavior. (In reply to comment #7) > Wow, a bug from the dawn of time reopened! > > If the data in your files is not being saved correctly, I'd suspect something > is badly broken in the network or Samba setup. Is that reproducible with > Notepad or similar? > > Depending on the file type, it's also possible that when you pressed enter, the > IDE simply indented the next line and inserted spaces to do that, which would > be normal behavior. Yeah, I noticed the date on it too. I considered opening a new one, but it was this issue exactly. It is not reproducible with notepad or notepad++. Other developers using the exact same setup were not experiencing the issue on the same files on the network. I am working with PHP files and the issue occurs regardless of which key I entered. I can type any letter, number, or character and push CTRL+S and the message would pop up. I can reproduce on demand. Is there a log file anywhere, that I can post, that would help with this? Also, it is saving the files fine. However, it's giving me warnings every time I change a character. Could you please check whether a modification datetime of the file (possibly use ls --full-time in bash) upon save corresponds with the actual system's datetime? If you could run the IDE with parameter (possibly see http://wiki.netbeans.org/FaqStartupParameters) -J-Dorg.openide.text.CloneableEditorSupport.level=FINE and attach the resulting messages.log to this issue (possibly see http://wiki.netbeans.org/FaqLogMessagesFile)? Thanks. Created attachment 134423 [details]
Netbeans log with notifyModified
EDT 2013
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: saveDocument() started.
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: Saved 26204 bytes to memory output stream.
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: Setting new lastSaveTime to -1, Wed Dec 31 18:59:59 EST 1969
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: setAlreadyModified from true to false
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: Save to file OK, oldSaveTime: 1368539627000, Tue May 14 09:53:47 EDT 2013
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: Setting new lastSaveTime to 1368539627000, Tue May 14 09:53:47 EDT 2013
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: setAlreadyModified from false to true
FINE [org.openide.text.CloneableEditorSupport]: notifyModified returns true; env.isModified()=true
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: saveDocument() started.
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: externalMod=1368539629000 > prevLST=1368539627000 => throw new UserQuestionException()
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: Setting new lastSaveTime to 1368539629000, Tue May 14 09:53:49 EDT 2013
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: saveDocument() started.
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: Saved 26203 bytes to memory output stream.
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: Setting new lastSaveTime to -1, Wed Dec 31 18:59:59 EST 1969
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: setAlreadyModified from true to false
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: Save to file OK, oldSaveTime: 1368539629000, Tue May 14 09:53:49 EDT 2013
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: Setting new lastSaveTime to 1368539629000, Tue May 14 09:53:49 EDT 2013
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: setAlreadyModified from false to true
FINE [org.openide.text.CloneableEditorSupport]: notifyModified returns true; env.isModified()=true
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: saveDocument() started.
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: externalMod=1368539631000 > prevLST=1368539629000 => throw new UserQuestionException()
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: Setting new lastSaveTime to 1368539631000, Tue May 14 09:53:51 EDT 2013
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: saveDocument() started.
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: Saved 26204 bytes to memory output stream.
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: Setting new lastSaveTime to -1, Wed Dec 31 18:59:59 EST 1969
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: setAlreadyModified from true to false
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: Save to file OK, oldSaveTime: 1368539631000, Tue May 14 09:53:51 EDT 2013
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: Setting new lastSaveTime to 1368539631000, Tue May 14 09:53:51 EDT 2013
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: setAlreadyModified from false to true
FINE [org.openide.text.CloneableEditorSupport]: notifyModified returns true; env.isModified()=true
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: saveDocument() started.
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: externalMod=1368539633000 > prevLST=1368539631000 => throw new UserQuestionException()
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: Setting new lastSaveTime to 1368539633000, Tue May 14 09:53:53 EDT 2013
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: saveDocument() started.
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: Saved 26203 bytes to memory output stream.
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: Setting new lastSaveTime to -1, Wed Dec 31 18:59:59 EST 1969
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: setAlreadyModified from true to false
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: Save to file OK, oldSaveTime: 1368539633000, Tue May 14 09:53:53 EDT 2013
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: Setting new lastSaveTime to 1368539633000, Tue May 14 09:53:53 EDT 2013
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: PROP_TIME new value: Tue May 14 09:53:56 EDT 2013, 1368539636000
FINE [org.openide.text.CloneableEditorSupport]: lastSaveTime: Tue May 14 09:53:53 EDT 2013, 1368539633000
FINE [org.openide.text.CloneableEditorSupport]: reload: true
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: reload task posted
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: checkReload noAsk: true
FINE [org.openide.text.CloneableEditorSupport]: reloadDocument in Thread[AWT-EventQueue-0,6,IDE Main]
FINE [org.openide.text.CloneableEditorSupport]: clearDocument
FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: Setting new lastSaveTime to 1368539636000, Tue May 14 09:53:56 EDT 2013
FINE [org.openide.text.CloneableEditorSupport]: post-reload task posting to AWT
FINE [org.openide.text.CloneableEditorSupport]: Posting the AWT runnable: org.openide.text.CloneableEditorSupport$9$2@73fa8402
FINE [org.openide.text.CloneableEditorSupport]: Posted in Thread[AWT-EventQueue-0,6,IDE Main]
FINE [org.openide.text.CloneableEditorSupport]: task-discardAllEdits
FINE [org.openide.text.CloneableEditorSupport]: task-check already modified
FINE [org.openide.text.CloneableEditorSupport]: task-addUndoableEditListener
Last bash file save time appears to match the last one in netbeans. -rwxrwxrwx 1 teynon developers 26203 2013-05-14 09:53:56.000000000 -0400 PExcel.php I attached the complete log file. Maybe this is expected, but in the log file, I am seeing an odd time: FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: saveDocument() started. FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: Saved 26204 bytes to memory output stream. FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: Setting new lastSaveTime to -1, Wed Dec 31 18:59:59 EST 1969 FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: setAlreadyModified from true to false FINE [org.openide.text.CloneableEditorSupport]: PExcel.php: Save to file OK, oldSaveTime: 1368539627000, Tue May 14 09:53:47 Note the: Setting new lastSaveTime to -1, Wed Dec 31 18:59:59 EST 1969 The save date and the linux date appear to be in sync, but I did notice that my Win 7 system time appears to be about 1 - 2 seconds ahead of the bash date time. |