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 - Code completion breaks after hit $ inside mixin.
Summary: Code completion breaks after hit $ inside mixin.
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: CSS Preprocessors (SASS, LESS, ...) (show other bugs)
Version: 8.1
Hardware: PC Other
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-07 10:45 UTC by Christian Lenz
Modified: 2016-12-02 08:23 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Mixin completion works (26.44 KB, image/png)
2016-12-01 15:04 UTC, Milutin Kristofic
Details

Note You need to log in before you can comment on or make changes to this bug.
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.