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.
This issue was reported manually by gorrus. It already has 1 duplicates Build: NetBeans IDE Dev (Build 20130823-bf5273f0acf8) VM: Java HotSpot(TM) Client VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b15 OS: SunOS User Comments: gorrus: started two c++ debug session with disassembly view opened Stacktrace: java.lang.IllegalArgumentException: bad position: 1 at javax.swing.text.JTextComponent.setCaretPosition(JTextComponent.java:1678) at org.openide.text.DocumentOpenClose$DocumentLoad$1.run(DocumentOpenClose.java:802) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733) at java.awt.EventQueue.access$200(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:694)
Created attachment 139136 [details] stacktrace
Created attachment 139239 [details] stacktrace Switched to nb window after changing files externally (hg from commandline)
Created attachment 139247 [details] stacktrace - open a file - set carret anywhere - edit the file in any external editor and save
easy steps to reproduce: - open a file - set carret anywhere - edit the file in any external editor, remove all content and save Then get the exception in the IDE
Created attachment 139262 [details] stacktrace <Please provide a description of the problem or the steps to reproduce>
Created attachment 139263 [details] stacktrace <Please provide a description of the problem or the steps to reproduce>
Created attachment 139264 [details] stacktrace <Please provide a description of the problem or the steps to reproduce>
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=203301
Created attachment 139265 [details] stacktrace Chaning code from cli with git
Created attachment 139276 [details] stacktrace external modification of sources
Created attachment 139296 [details] stacktrace I was closing a tab, if I well remember.
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=203301
Created attachment 139312 [details] stacktrace I have just reverted a file from SVN
Created attachment 139319 [details] stacktrace reverting in svn.
exceptions number raising rapidly, looks like a recent regression, this exception happens all the time when using c++ disassembly (where we write file content to the opened file directly)
Created attachment 139368 [details] stacktrace external modification
Created attachment 139370 [details] stacktrace switching browser in php project?
Created attachment 139378 [details] stacktrace Search and replace in multiple xml files
Created attachment 139403 [details] stacktrace Selected "Revert Modifications" (CVS) at a java-file.
Created attachment 139440 [details] stacktrace running a mercurial command changing content of open files
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=203301
Created attachment 139442 [details] stacktrace Waiting for debugging session to start
Created attachment 139462 [details] stacktrace <Please provide a description of the problem or the steps to reproduce>
Created attachment 139494 [details] stacktrace reverted a file
Created attachment 139601 [details] stacktrace svn update to older version
Created attachment 139602 [details] stacktrace an open file modified externally by a versioning command, i think the previous caret position was outside of the current file's content (the file was shortened by the git command)
Created attachment 139603 [details] stacktrace the same as before
Created attachment 139612 [details] stacktrace Run file ... ?
http://hg.netbeans.org/jet-main/rev/0f56f601975c
The fix will be integrated into 7.4, right?
I would like to ask QE for verification. Thanks. (In reply to Egor Ushakov from comment #30) > The fix will be integrated into 7.4, right? Yes, it will be in 7.4.
The fix seems fine to me.
verified in trunk
0f56f601975c transplanted to a13cfc173b65
verified in Product Version: NetBeans IDE 7.4 RC1 (Build 201309112301) Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b55 Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b39 System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb) User directory: C:\Users\jprox\AppData\Roaming\NetBeans\7.4rc1 Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\7.4rc1