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 nbms-and-javadoc-2535-on-20150107) VM: Java HotSpot(TM) Client VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b18 OS: Windows 8 User Comments: jan.kurnatowski: I pressed [Enter] key two times while editing YML file marckoby: adding text to src file... marckoby: deleted line in src file marckoby: editting file jan.kurnatowski: I was editing yml file jan.kurnatowski: This problem had occured just after I pressed [Enter] key three times in YML editor. Stacktrace: javax.swing.text.BadLocationException: Invalid offset at org.netbeans.editor.BaseDocument.getVisColFromPos(BaseDocument.java:2136) at org.netbeans.editor.Utilities.getVisualColumn(Utilities.java:588) at org.netbeans.modules.languages.yaml.YamlKeystrokeHandler.getLineIndent(YamlKeystrokeHandler.java:282) at org.netbeans.modules.languages.yaml.YamlKeystrokeHandler.beforeBreak(YamlKeystrokeHandler.java:192) at org.netbeans.modules.csl.core.CslEditorKit$GsfInsertBreakAction.beforeBreak(CslEditorKit.java:347) at org.netbeans.editor.BaseKit$InsertBreakAction.performLineBreakInsertion(BaseKit.java:1426)
Created attachment 151420 [details] stacktrace
Created attachment 151443 [details] stacktrace It seems the problem is pertaining to YML indenting.
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=213406
*** This bug has been marked as a duplicate of bug 249736 ***