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 232900 - Unexpected token SASS_VAR found
Summary: Unexpected token SASS_VAR found
Status: RESOLVED DUPLICATE of bug 216489
Alias: None
Product: web
Classification: Unclassified
Component: CSS Editor (show other bugs)
Version: 7.4
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-17 13:34 UTC by mta59066
Modified: 2013-07-17 14:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of Editor and Action Items (149.80 KB, image/jpeg)
2013-07-17 13:34 UTC, mta59066
Details
Screenshot showing Files window of 7.3.1 and 7.4 side by side (73.10 KB, image/jpeg)
2013-07-17 14:21 UTC, mta59066
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mta59066 2013-07-17 13:34:56 UTC
Created attachment 137318 [details]
Screenshot of Editor and Action Items

Build 201307162300 shows "Unexpected token SASS_VAR found" where 7.3.1 doesn't show anything. Looks like it cannot be turned off from Hints. The file was generated via apigen and looks to be ok but not sure?

Screenshot showing Action Items and the editor is attached.
Comment 1 Vladimir Riha 2013-07-17 13:39:38 UTC
I believe this is coming from CSS, reassigning. I think $ character is not allowed for ID, but maybe apigen replaces it with something
Comment 2 Vladimir Riha 2013-07-17 13:45:58 UTC
Reproducible, ApiGen uses for in-page navigation:

<a href="#$file" class="anchor">#</a>
<tr data-order="file" id="$file">

HTML5 validator from w3c shows the page as correct



Product Version: NetBeans IDE Dev (Build 201307162300)
Updates: Updates available
Java: 1.7.0_25; Java HotSpot(TM) Client VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 3 Marek Fukala 2013-07-17 13:52:54 UTC
Basically the same issue as reported in bug 216489 - Attribute 'id' shows an error with forward slash in it.The set of characters allowed in the html id attribute value is not the same as characters allowed in css id selector. They needs to be escaped when sent to the css parser.

*** This bug has been marked as a duplicate of bug 216489 ***
Comment 4 mta59066 2013-07-17 14:12:50 UTC
Note that forward slash issue (bug 216489) has been present for a while, where this issue was not present on 7.3.1 but is present on the current dev build.
Comment 5 mta59066 2013-07-17 14:21:42 UTC
Created attachment 137325 [details]
Screenshot showing Files window of 7.3.1 and 7.4 side by side
Comment 6 mta59066 2013-07-17 14:22:26 UTC
(In reply to comment #4)
> Note that forward slash issue (bug 216489) has been present for a while, where
> this issue was not present on 7.3.1 but is present on the current dev build.

Actually, looks like the same is shown as an error on 7.3.1 as well. What is different between 7.3.1 and Build 201307162300 is error mark on the Files window. 7.3.1 shows the error on Editor window but doesn't mark those files as having and error on Files window. Attached screenshot of two versions running side by side above.
Comment 7 Marek Fukala 2013-07-17 14:52:25 UTC
You are right - still I believe it is the same issue. 

I've changed the css parser recently (to support the SASS/LESS syntax as well) which caused the issue to appear. 

Do not worry, I'll verify on both samples, that's also why I put an extra notice to the original issue. I've started already, will be fixed tomorrow.
Comment 8 Marek Fukala 2013-07-17 14:54:15 UTC
> different between 7.3.1 and Build 201307162300 is error mark on the Files
> window. 7.3.1 shows the error on Editor window but doesn't mark those files as
> having and error on Files window. Attached screenshot of two versions running
Error badging has been enabled for html files.