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

grunt does not run on Windows

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 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.

    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

              timhunt Tim Hunt
              timhunt Tim Hunt
              John Beedell John Beedell
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Andrew Lyons Andrew Lyons
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                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