[jira] [Commented] (NETBEANS-5449) Failed parsing of SCSS files with namespaced variables through @use "import"
[ https://issues.apache.org/jira/browse/NETBEANS-5449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17461061#comment-17461061 ] Matthias Bläsing commented on NETBEANS-5449: Thanks for the test - yes code completion for imported variables is a completely different ballpark. Feel free to open a feature request. > 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
[jira] [Commented] (NETBEANS-5449) Failed parsing of SCSS files with namespaced variables through @use "import"
[ https://issues.apache.org/jira/browse/NETBEANS-5449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17457826#comment-17457826 ] Jeroen commented on NETBEANS-5449: -- [~matthiasblaesing] Just tried with your test binary, and I can confirm that with this one points 2 and 3 from my initial post have been resolved. Something that does not seem to be a 100% yet, but might be outside of the scope of this issue, is that when I type 'vars' followed by a . (dot), I do get an autocomplete/autosuggest menu/popup, but the options listed contain pretty much every existing CSS property, as well as a few existing CSS selectors from the current file and the @ use'd file, whereas one would hope for an autocomplete list with variables/mixins from the file with the namespace entered before the dot (which could of course get more complex/layered if the @ used file in turn also "includes" other files). > 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
[jira] [Commented] (NETBEANS-5449) Failed parsing of SCSS files with namespaced variables through @use "import"
[ https://issues.apache.org/jira/browse/NETBEANS-5449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17456001#comment-17456001 ] Matthias Bläsing commented on NETBEANS-5449: I think I managed to bend the CSS parser so far, that it accepts the SCSS syntax as valid: https://github.com/apache/netbeans/pull/3359 and here is the test binary: https://doppel-helix.eu/test/NetBeans-dev-dev-edfbf5983e92674e5ce0c07d9aa2bf1b1ba00ff8-release.zip Please give it a spin. Thank you. > 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
[jira] [Commented] (NETBEANS-5449) Failed parsing of SCSS files with namespaced variables through @use "import"
[ https://issues.apache.org/jira/browse/NETBEANS-5449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17454713#comment-17454713 ] Jeroen commented on NETBEANS-5449: -- [~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
[jira] [Commented] (NETBEANS-5449) Failed parsing of SCSS files with namespaced variables through @use "import"
[ https://issues.apache.org/jira/browse/NETBEANS-5449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17454377#comment-17454377 ] Junichi Yamamoto commented on NETBEANS-5449: [~JeroenNX] You should provide not only image files but also an example code to reproduce your problem. Otherwise, your problem might not be fixed correctly. > 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: 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
[jira] [Commented] (NETBEANS-5449) Failed parsing of SCSS files with namespaced variables through @use "import"
[ 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: 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
[jira] [Commented] (NETBEANS-5449) Failed parsing of SCSS files with namespaced variables through @use "import"
[ https://issues.apache.org/jira/browse/NETBEANS-5449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17396222#comment-17396222 ] Matthias Bläsing commented on NETBEANS-5449: [~JeroenNX] please have a look at: https://github.com/apache/netbeans/pull/3092 The test build can be found here: https://doppel-helix.eu/NetBeans-dev-20210809-caee319b03dd-release.zip > 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 > Attachments: Capture.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.3.4#803005) - 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