Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-77748

Grunt componentlibrary:cssBuild task failing under Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 4.2
    • 4.2
    • HTML and CSS, JavaScript

      This has been detected when testing MDL-77333.

      Since a few weeks ago (14th March 2023 is the first detected problem, it was passing few days earlier) the grunt componentlibrary:cssBuild task is failing under Windows.

      Running "stylelint:css" (stylelint) task
      >> Linted 119 files without errors
       
      Running "componentlibrary:docsBuild" task
      Start building sites … 
      ...
      ...
      Total in 322 ms
       
      Running "componentlibrary:cssBuild" task
      D:\a\moodle\moodle\node_modules\.bin\sass:2
      basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
                ^^^^^^^
       
      SyntaxError: missing ) after argument list
          at Object.compileFunction (node:vm:360:18)
          at wrapSafe (node:internal/modules/cjs/loader:1119:15)
          at Module._compile (node:internal/modules/cjs/loader:1155:27)
          at Object.Module._extensions..js (node:internal/modules/cjs/loader:1245:10)
          at Module.load (node:internal/modules/cjs/loader:1069:32)
          at Function.Module._load (node:internal/modules/cjs/loader:904:12)
          at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
          at node:internal/main/run_main_module:22:47>> 
      Error: Process completed with exit code 1.
      

      I've reproduced it consistently both locally (git bash) and GHA (link above).

      Only affected branch is master, so far. All stables are running grunt ok.

      Ciao

            skodak Petr Skoda
            stronk7 Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Ilya Tregubov Ilya Tregubov
            Jun Pataleta Jun Pataleta
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 35 minutes
                1h 35m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.