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

grunt does not run on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 3.9
    • 3.9
    • JavaScript
    • MOODLE_39_STABLE
    • MOODLE_39_STABLE
    • Hide

      Travis build verifies that this fix does not cause regressions on Linux.

      Either find a Windows machine with a Moodle developer set-up, and verify grunt works there, or be satisfied with my testing that this fix works on Windows.

      Show
      Travis build verifies that this fix does not cause regressions on Linux. Either find a Windows machine with a Moodle developer set-up, and verify grunt works there, or be satisfied with my testing that this fix works on Windows.

      Using master branch (3.9 dev) grunt is completely broken in windows using git bash. It does not matter what commend you try to run, you get

      $ node_modules/grunt/bin/grunt amd --root=theme/boost/amd
      >> Setting root to C:\Users\tjh238\workspace\moodle_head\theme\boost\amd
      Loading "Gruntfile.js" tasks...ERROR
      >> Error: ENOENT: no such file or directory, lstat 'C:\Users\tjh238\workspace\moodle_head\C:'
      Warning: Task "amd" not found. Use --force to continue.
       
      Aborted due to warnings.
       
      $ node_modules/grunt/bin/grunt --watch
      Loading "Gruntfile.js" tasks...ERROR
      >> Error: ENOENT: no such file or directory, lstat 'C:\Users\tjh238\workspace\moodle_head\C:'
      Warning: Task "default" not found. Use --force to continue.
       
      Aborted due to warnings.
      

      It works on my 3.8 checkout.

            timhunt Tim Hunt
            timhunt Tim Hunt
            John Beedell John Beedell
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Andrew Lyons Andrew Lyons
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 56 minutes
                2h 56m

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