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.
Product Version: NetBeans IDE Dev (Build 201407040001) Java: 1.8.0_05; Java HotSpot(TM) 64-Bit Server VM 25.5-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13 System: Windows 7 version 6.1 running on amd64; Cp1252; en_CA (nb) User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev When code-formatting a SCSS file, the following code formats wrong: .cta { background: $green; color: $white; @include font30(); height: 60px; overflow: hidden; font-weight: 100; cursor: pointer; &:hover { background-color: lighten($green, 5%) } &.wide { width: 100% } [class^="icon-"] { font-size: 0.6em; position: relative; top: -1px; left: 0.5em } } Netbeans code-formats the brace after &:hover wrong (two tabs instead of one). In contrast, the brace after &.wide code-formats fine.
The problem also occurs for: p:last-child { margin-top: 20px; @include systemFontFamily(); } Meaning, the & is irrelevant. The trigger seems to be the colon.
The 2nd case works for me, result is p:last-child { margin-top: 20px; @include systemFontFamily(); } but the use case from description is reproducible. Reassigning to CSS Prep. Product Version: NetBeans IDE Dev (Build 201407080001) Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13 System: Linux version 3.13.0-30-generic running on i386; UTF-8; en_US (nb)
Reproducible. There's a minimum use case: div { .inner:hover { } }
Integrated into 'main-silver', will be available in build *201407180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/2c60cd3912f0 User: Marek Fukala <mfukala@netbeans.org> Log: #245458 - added failing unit test
The target milestone needs to be updated (8.0.1 already shipped).