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 bug was originally marked as duplicate of bug 216906, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE Dev (Build 20130611-12216e6b334a) VM: Java HotSpot(TM) 64-Bit Server VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_10-b31 OS: Mac OS X User Comments: GUEST: Rename interfase mfukala: using rule editor on an empy class rule I added alignment-baseline property and selected after-edge value. Stacktrace: javax.swing.text.BadLocationException: Wrong (offset+length)=247 > getLength()=246 at org.netbeans.editor.BaseDocument.handleRemove(BaseDocument.java:949) at org.netbeans.editor.BaseDocument$FilterBypassImpl.remove(BaseDocument.java:2476) at javax.swing.text.DocumentFilter.remove(DocumentFilter.java:79) at org.openide.text.CloneableEditorSupport$DocFilter.remove(CloneableEditorSupport.java:3113) at org.netbeans.editor.BaseDocument.remove(BaseDocument.java:929) at org.netbeans.modules.css.model.api.Model.applyChanges(Model.java:561)
Created attachment 135630 [details] stacktrace
It is reproducible in a css file which contains a line comment at the end of the file. Line comments itself should not be allowed in plain css files but just in SASS/LESS files.