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 107447 - Externaly modified files break some editor functionality
Summary: Externaly modified files break some editor functionality
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-20 15:03 UTC by ehucka
Modified: 2009-11-02 10:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide log fragment (9.12 KB, text/plain)
2007-06-20 15:06 UTC, ehucka
Details
threaddump (18.98 KB, text/plain)
2007-06-20 15:08 UTC, ehucka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2007-06-20 15:03:22 UTC
Product Version: NetBeans IDE Dev (Build 070620) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b04 System: Linux
version 2.6.16-1.2122_FC5 running on i386; UTF-8; en_US (nb)

I have worked on an automated tests of debugger. I have opened one of tests source in editor. The file was modified and
saved.
After I externally modified some of the test sources (including the opened file) the opened source was repainted by
yellow background and some message dialog was thrown with text - the file was modified and cannot be loaded. The file
lost code foldings and inline diffs and cannot be scrolled to end. After I tried to open other modified files code
foldings and inline diff did not work there too.
Editor for not externally modified files in the same package works.

There were some exceptions in ide log but I do not know if they were thrown in the same time.
Comment 1 ehucka 2007-06-20 15:06:56 UTC
Created attachment 44066 [details]
ide log fragment
Comment 2 ehucka 2007-06-20 15:08:03 UTC
Created attachment 44067 [details]
threaddump
Comment 3 Vitezslav Stejskal 2007-06-26 08:59:54 UTC
It looks like that you were in the middle of editing a code template when the file was reloaded. The exceptions were
thrown from the code templates handler and the reaload operation failed. After that the editor was clearly in some
undefined state.
Comment 4 ehucka 2007-06-26 10:51:47 UTC
I hope I did not modify any template. Or I do not know what do you mean by code template. I simply go to tests root
folder in terminal and executed some recursive 'sed' command to replace a text in all java files in the folder. It was
not trivial replace I replaced whole try - catch block by a single method call.
Comment 5 Vitezslav Stejskal 2007-06-26 14:32:16 UTC
I meant code templates like 'fori' followed by tab key. When it's expanded it switches editor in a special mode in which
you are required to enter code template parameters. It looks like the editor was in that state when the file was
externally modified. But I might be wrong.
Comment 6 Jiri Prox 2008-04-11 00:42:58 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 7 Max Sauer 2008-11-13 13:41:13 UTC
Will be resolved LATER, does not look like a frequent issue.
Comment 8 Quality Engineering 2009-11-02 10:59:23 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX