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.
Build: NetBeans IDE Dev (Build 20120229-c59d1ca31e34) VM: Java HotSpot(TM) Client VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b04 OS: Linux User Comments: GUEST: Everytime I select text and type over it I get this exception. Stacktrace: java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(String.java:695) at org.netbeans.modules.html.editor.api.HtmlKit$HtmlDefaultKeyTypedAction.replaceSelection(HtmlKit.java:462) at org.netbeans.editor.BaseKit$DefaultKeyTypedAction$2.run(BaseKit.java:1160) at org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:347) at org.netbeans.editor.BaseKit$DefaultKeyTypedAction.actionPerformed(BaseKit.java:1151) at org.netbeans.editor.ext.ExtKit$ExtDefaultKeyTypedAction.actionPerformed(ExtKit.java:1076)
Created attachment 116219 [details] stacktrace
Created attachment 116226 [details] stacktrace
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=185376
Created attachment 116252 [details] stacktrace typing in html file in editor
Created attachment 116326 [details] stacktrace editing HTML file (selecting block of code and typing)
Created attachment 116351 [details] stacktrace Typing HTML code.
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=185376
Created attachment 116431 [details] stacktrace SIOOBE when typing in html while some text is selected
Created attachment 116479 [details] stacktrace Selected a short block of HTML text and then tried to type over it.
Created attachment 116565 [details] stacktrace
Created attachment 116577 [details] stacktrace Selected a string of text in a html file then pressed a key to overwrite it. This problem appears only in html files, not in php files.
Created attachment 116578 [details] stacktrace selected some text and pressed a key
I see lots of comments saying that the problem is in HTML files, but in my case it also affects PHP files.
Created attachment 116584 [details] stacktrace marked text for replacing -> typed char -> exception appeared
Created attachment 116603 [details] Patch for htmlkit Marek, I fixed this issue in csl. Bug #208931 Here is a patch for this one, if you want to push it into web-main, or I can push it to jet-main.
Created attachment 116692 [details] stacktrace I was typing fast
Created attachment 116749 [details] stacktrace Select string surrounded by quotes, then try to delete.
Created attachment 116755 [details] stacktrace overtyping selected text in html editor
Created attachment 116845 [details] stacktrace When some text selected, the keyboard can't work except the backspace key. for example, in demo.html <body> <div>TODO write content</div> </body> when TODO is selected. any charactory key can't been pressed, just must press backspace to delete the TODO. then you can type any new things.
This bug already has 50 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=185376
regression of mkristofic's fix of issue Bug 204450 - Rewrite actions to use TypingHooks SPI
the regression is workarounded in web-main#3f0d8e76ba3f
Integrated into 'main-golden', will be available in build *201203220400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/3f0d8e76ba3f User: Marek Fukala <mfukala@netbeans.org> Log: #209019 - StringIndexOutOfBoundsException: String index out of range: 0
Created attachment 117121 [details] stacktrace SIOOBE when typing while part of code is selected
Integrated into 'main-golden', will be available in build *201209031048* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/b0d2aea399b6 User: Marek Fukala <mfukala@netbeans.org> Log: #209019 - StringIndexOutOfBoundsException: String index out of range: 0