mach lint -l wpt fails on Windows with "WindowsError: [Error 193] <no description>"

RESOLVED FIXED in Firefox 59


a year ago
a month ago


(Reporter: birtles, Assigned: ahal)


Windows 10

Firefox Tracking Flags

(firefox59 fixed)


MozReview Requests

Submitter Diff Changes Open Issues Last Updated
Error loading review requests:


(2 attachments)



a year ago
According to [1] I should be able to run lint on web-platform-tests with:

  mach lint -l wpt -l wpt_manifest

However, on Windows, doing the above, or just "mach lint -l wpt", I get the following:

  ['c:\\moz\\src2\\tools\\lint\\..\\..\\testing\\web-platform\\tests\\lint', '--json']
  Traceback (most recent call last):
    File "c:\moz\src2\python/mozlint\mozlint\", line 56, in _run_worker
      return _run_linters(*args, **lintargs)
    File "c:\moz\src2\python/mozlint\mozlint\", line 43, in _run_linters
      res = func(paths, linter, **lintargs) or []
    File "c:\moz\src2\python/mozlint\mozlint\", line 37, in __call__
      return self._lint(paths, linter, **lintargs)
    File "c:\moz\src2\python/mozlint\mozlint\", line 104, in _lint
      return payload(files, **lintargs)
    File "c:\moz\src2\tools\lint\wpt.lint", line 42, in lint
    File "c:\moz\src2\tools\lint\wpt.lint", line 34, in run_process
    File "c:\moz\src2\testing/mozbase/mozprocess\mozprocess\", line 739, in run
      self.proc = self.Process([self.cmd] + self.args, **args)
    File "c:\moz\src2\testing/mozbase/mozprocess\mozprocess\", line 114, in __init__
      universal_newlines, startupinfo, creationflags)
    File "c:\mozilla-build\python\lib\", line 710, in __init__
      errread, errwrite)
    File "c:\moz\src2\testing/mozbase/mozprocess\mozprocess\", line 280, in _execute_child
      cwd, startupinfo)
    File "c:\moz\src2\testing/mozbase/mozprocess\mozprocess\", line 200, in ErrCheckCreateProcess
      ErrCheckBool(result, func, args)
    File "c:\moz\src2\testing/mozbase/mozprocess\mozprocess\", line 57, in ErrCheckBool
      raise WinError()
  WindowsError: [Error 193] <no description>
  Error running mach:

      ['lint', '-l', 'wpt']

  The error occurred in code that was called by the mach command. This is either
  a bug in the called code itself or in the way that mach is calling it.

  You should consider filing a bug for this issue.

  If filing a bug, please include the full output of mach, including this error

  The details of the failure are as follows:

  WindowsError: [Error 193] <no description>

    File "c:\moz\src2\tools/lint/", line 43, in lint
      return*runargs, **lintargs)
    File "c:\moz\src2\python/mozlint\mozlint\", line 108, in run
    File "c:\moz\src2\python/mozlint\mozlint\", line 150, in roll
      results, failed = worker.get()
    File "c:\mozilla-build\python\lib\multiprocessing\", line 567, in get
      raise self._value

I tried running just "mach lint" by itself and it installed some npm modules, but still the same error remains.

What happens if you try to run the lint script in testing/web-platform/tests directly?
Flags: needinfo?(bbirtles)

Comment 2

a year ago
It passes? I'm not sure it just sits there for a minute or so then terminates with no message. In any case, there is no error message.
Flags: needinfo?(bbirtles)
OK, then it seems like this might be a more general problem with mozlint.

ahal: idk if you have some easy way to look at this? I could reinstall my Windows VM, but I guess I won't get to it for a few days.
Flags: needinfo?(ahalberstadt)

Comment 4

a year ago
I don't have a way to easily test this, but I think you need to prepend "python.exe" to the command here:

I did some googling and Error 139 usually means that the command isn't a valid binary, which makes sense because the command is trying to run a python script with #!/usr/bin/env python at the top (which won't do much on Windows). I'm not sure why in this case it says <No description> though..
Flags: needinfo?(ahalberstadt)

Comment 5

a year ago
I also think this would also work if the script was called '' because then Windows would associate it with the python interpreter.. But because it's just 'lint' it doesn't know what to do.

Comment 6

a year ago
It's possible the "<No description>" part is because I'm on Japanese Windows. Maybe it tries to print a Japanese error message but realizes the terminal can't display non-ASCII characters, so just displays "<No description>" instead.

Comment 7

10 months ago
Created attachment 8847227 [details] [diff] [review]

I can reproduce this problem on English Windows, with the same "<No description>" message.

Attached is a quick workaround that hard codes the python path.
Is this still an issue? There's been some changes recently that may/may not have helped this.
(In reply to Mark Banner (:standard8) from comment #8)
> Is this still an issue? There's been some changes recently that may/may not
> have helped this.

Brian ^^^
Flags: needinfo?(bbirtles)

Comment 10

2 months ago
Sorry for the delay -- I stopped using Windows because of issues like this but I've just confirmed again now that this is still an issue on trunk m-c.
Flags: needinfo?(bbirtles)

Comment 11

a month ago
I think there was some confusion over who was owning this and it got forgotten. I'll take this.
Assignee: nobody → ahalberstadt
Comment hidden (mozreview-request)

Comment 13

a month ago
Comment on attachment 8936879 [details]
Bug 1336857 - [lint] Fix 'wpt' linter on Windows,
Attachment #8936879 - Flags: review?(james) → review+

Comment 14

a month ago
Pushed by
[lint] Fix 'wpt' linter on Windows, r=jgraham

Comment 15

a month ago
Last Resolved: a month ago
status-firefox59: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
You need to log in before you can comment on or make changes to this bug.