[
https://issues.apache.org/jira/browse/NETBEANS-5449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17454369#comment-17454369
]
Jeroen commented on NETBEANS-5449:
----------------------------------
[~matthiasblaesing] unfortunately I didn't get a notification for your comment
so at the time I didn't test with the test build.
I have just installed version 12.6 and it does not look like it's resolved I'm
afraid.
Point 1 from my initial description is gone now, but the other 2 still apply.
After the first appearance of a namespaced variable within a selector,
everything after that has no syntax highlighting, code completion, etc. Error
message still says "Unexpected token DOT found".
See attached screenshot.
I have also tried with a very minimal case, with 1 SCSS file, '_vars.scss' with
just 1 var in it, for example $someColor: #282828; and another SCSS file,
importing the file with @use, and then 1 CSS selector with color:
vars.$someColor; and the issue then occurs as well.
Currently used versions:
NetBeans 12.6
OpenJDK 17.0.1
Dart Sass 1.44.0
Windows 10 21H2 Build 19044.1387
!NetBeans.PNG!
> 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
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists