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

grunt does not run on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.9
    • Fix Version/s: 3.9
    • Component/s: JavaScript
    • Labels:
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_39_STABLE
    • Fixed Branches:
      MOODLE_39_STABLE
    • Pull Master Branch:

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              timhunt Tim Hunt
              Reporter:
              timhunt Tim Hunt
              Peer reviewer:
              John Beedell
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Andrew Nicols
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/Jun/20

                  Time Tracking

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