Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5449

Failed parsing of SCSS files with namespaced variables through @use "import"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 12.0, 12.1, 12.2, 12.3
    • 12.6, 13
    • None
    • None
    • 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)

    Description

      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.

      1. Tooltip when hovering red dotted line says: "Unexpected token SEMI found"
      2. Tooltip says: "Unexpected token DOT found"
      3. 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.

      Attachments

        1. test.scss
          0.1 kB
          Jeroen
        2. NetBeans.PNG
          51 kB
          Jeroen
        3. Capture.PNG
          46 kB
          Jeroen
        4. _vars.scss
          0.0 kB
          Jeroen

        Issue Links

          Activity

            People

              matthiasblaesing Matthias Bläsing
              JeroenNX Jeroen
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: