[ 
https://issues.apache.org/jira/browse/NETBEANS-5449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17454713#comment-17454713
 ] 

Jeroen edited comment on NETBEANS-5449 at 12/7/21, 3:30 PM:
------------------------------------------------------------

[~junichi11] I described a minimal case in my comment.

/* _vars.scss */
$someColor: #282828;

/* test.scss */
@use "vars";
#test {     
    color: vars.$someColor;     
    font-size: 12px; 
}

/* output in test.css (correct) */
#test\{color:#282828;font-size:12px}

I have now also attached these files to this comment.[^_vars.scss]


was (Author: jeroennx):
[~junichi11] I described a minimal case in my comment.

/* _vars.scss */
$someColor: #282828;

/* test.scss */
@use "vars";
#test {
    color: vars.$someColor;
    font-size: 12px;
}

/* output in test.css (correct) */
#test\{color:#282828;font-size:12px}

I have now also attached these files to this comment.[^_vars.scss]

> Failed parsing of SCSS files with namespaced variables through @use "import"
> ----------------------------------------------------------------------------
>
>                 Key: NETBEANS-5449
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5449
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 12.0, 12.1, 12.2, 12.3
>         Environment: Windows 10 20H2 Build 19042.867 (same issue present with 
> previous versions)
> OpenJDK 15.0.2 (same issue with previous versions)
> Dart Sass 1.32.8 (same issue with previous versions)
>            Reporter: Jeroen
>            Assignee: Matthias Bläsing
>            Priority: Major
>             Fix For: 12.6
>
>         Attachments: Capture.PNG, NetBeans.PNG, _vars.scss, test.scss
>
>
> When parsing an .scss file, after the first line with a namespaced variable 
> has been encountered ("imported" through @use, see: 
> [https://sass-lang.com/documentation/at-rules/use)] syntax highlighting, code 
> completion, etc stop working after that.
> Regarding the attached screenshot.
>  # Tooltip when hovering red dotted line says: "Unexpected token SEMI found"
>  # Tooltip says: "Unexpected token DOT found"
>  # All text black, no green/blue, no more syntax highlighting, code 
> completion, etc
> When re-saving the main scss file, the file does get compiled by dart sass to 
> a valid CSS file without any issues/errors.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to