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 258425 - Syntax checking (hints) SASS language "Unexpected token HASH_SYMBOL found"
Summary: Syntax checking (hints) SASS language "Unexpected token HASH_SYMBOL found"
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Preprocessors (SASS, LESS, ...) (show other bugs)
Version: 8.0.2
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-17 21:07 UTC by willcampbell7
Modified: 2016-11-30 02:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample scss file (443 bytes, application/octet-stream)
2016-03-17 21:07 UTC, willcampbell7
Details

Note You need to log in before you can comment on or make changes to this bug.
Description willcampbell7 2016-03-17 21:07:40 UTC
Created attachment 158914 [details]
Sample scss file

The attached file is a snippet of SASS code. Line 11 is flagged by editor syntax-checking with "Unexpected token HASH_SYMBOL found". This is false error reporting. The file complies correctly. This error appears only a flaw in the editor's hint rules for SASS/SCSS language. Thank you.
Comment 1 Milutin Kristofic 2016-07-18 13:46:18 UTC
Hi, it is reproducible, I am trying to fix this. Now Netbeans can accept sass interpolation only in brackets ... like this (#{$declaration})
Comment 2 willcampbell7 2016-07-19 14:11:07 UTC
Yes, adding brackets makes NetBeans happy. No longer an error (hint) in the editor. However, adding the brackets as indicated then prevents the scss from compiling:

----
"C:\Ruby\bin\sass.bat" "--cache-location" "C:\Users\William\AppData\Local\NetBeans\Cache\8.0.2\sass-compiler" "\\COMET\www\marspremedia.test\scss\site.scss" "\\COMET\www\marspremedia.test\css\site.css"
'\\COMET\www\marspremedia.test'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.
Error: Invalid CSS after "only screen and (": expected expression (e.g. 1px, bold), was "(max-width: 480..."
        on line 300 of \\COMET\www\marspremedia.test\scss\site.scss, in `grid-media-query'
        from line 474 of \\COMET\www\marspremedia.test\scss\site.scss
  Use --trace for backtrace.
----

Remove the brackets and it compiles correctly. I will await a fix, just let me know, but no worries, this is only an annoyance. Not at all critical.

Thank you for your help with this. --William
Comment 3 Milutin Kristofic 2016-11-22 14:41:57 UTC
Ok, I fixed this in http://hg.netbeans.org/web-main/rev/30ec99ad5616
Comment 4 Quality Engineering 2016-11-30 02:54:23 UTC
Integrated into 'main-silver', will be available in build *201611300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/30ec99ad5616
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #258425 - Syntax checking (hints) SASS language "Unexpected token HASH_SYMBOL found"