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.

Bug 257018

Summary: Code completion breaks after hit $ inside mixin.
Product: web Reporter: Christian Lenz <chrizzly>
Component: CSS Preprocessors (SASS, LESS, ...)Assignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal CC: tmysik
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Other   
Issue Type: DEFECT Exception Reporter:
Attachments: Mixin completion works

Description Christian Lenz 2015-12-07 10:45:53 UTC
I have this piece of code:
@mixin notificationCaret($left, $bottom: -.4em) {
   display: block;
   width: 2px;
   height: 2px;
   content: '';
   position: absolute;
   bottom: $bottom;
   left: 2em;
   border-bottom-width: 10px;
   border-bottom-style: solid;
   border-left: 10px solid transparent;
   border-right: 10px solid transparent;
   border-bottom-color: yellow;
}

When I want to change the prop left to left: $left; I type:
left: $ and I expect the code completion for the variables, but no.

The $ turns into red and I got this message:
Error	line 218:19 Unexpected character(s) $ found	_header.scss.

Same happens for:

.myClass {
   color: $
}

If hit:

"color: " I got the color list code completion and on top of it, there is the color chooser. When I type $ after this, the whole list removes all entries except the color chooser. But my variables will not shown.


Regards

Chris
Comment 1 Milutin Kristofic 2016-12-01 15:04:59 UTC
Created attachment 163112 [details]
Mixin completion works

Hi, I tested this on current build 

Product Version: NetBeans IDE Dev (Build 20161129-7b569529745d)

can you still reproduce it?

Thanks
Comment 2 Christian Lenz 2016-12-02 08:23:49 UTC
It happens in the stable version: NetBeans IDE 8.2 (Build 201609300101)

I will test a nightly build later. thx.