|mach doc| is broken on Windows
Categories
(Firefox Build System :: General, defect)
Tracking
(firefox45 wontfix, firefox71 fixed)
People
(Reporter: Dexter, Assigned: erik)
References
(Blocks 1 open bug)
Details
Attachments
(4 files, 2 obsolete files)
Reporter | ||
Comment 1•9 years ago
|
||
Reporter | ||
Comment 2•7 years ago
|
||
Assignee | ||
Comment 3•7 years ago
|
||
Reporter | ||
Comment 4•7 years ago
|
||
Reporter | ||
Comment 5•7 years ago
|
||
Reporter | ||
Comment 6•7 years ago
|
||
Assignee | ||
Comment 7•7 years ago
|
||
Reporter | ||
Comment 8•7 years ago
|
||
Reporter | ||
Comment 9•7 years ago
|
||
Assignee | ||
Comment 10•7 years ago
|
||
Reporter | ||
Comment 11•7 years ago
|
||
Comment 12•7 years ago
|
||
Assignee | ||
Comment 13•7 years ago
|
||
Comment 14•7 years ago
|
||
Reporter | ||
Comment 15•7 years ago
|
||
Assignee | ||
Comment 16•7 years ago
|
||
Reporter | ||
Comment 17•7 years ago
|
||
Comment 18•7 years ago
|
||
Updated•7 years ago
|
Comment 19•6 years ago
•
|
||
I tried mach doc
on Windows 10 today, ran into this message:
[edit, somehow submitted by accident]
Exception occurred:
File "c:\mozilla-build\python\lib\subprocess.py", line 644, in _execute_child
startupinfo)
TypeError: environment can only contain strings
This seems related to bug 1473377, I think it's due to Sphinx setting up DOCUTILSCONFIG
as a Unicode string, which _subprocess.CreateProcess
doesn't like since it does PyString_Check(value)
.
But then I hit the jsdoc vs jsdoc.cmd thing from comment 4.
Comment 20•5 years ago
|
||
(In reply to Adam Gashlin (he/him) [:agashlin] from comment #19)
I tried
mach doc
on Windows 10 today, ran into this message:
I'm still seeing the same symptoms:
Exception occurred:
File "c:\mozilla-build\python\lib\subprocess.py", line 644, in _execute_child
startupinfo)
TypeError: environment can only contain stringsThis seems related to bug 1473377, I think it's due to Sphinx setting up `DOCUTILSCONFIG` as a Unicode string,
Yep :( I'm guessing this is from sphinx's jsdoc.py, but I worked around it by doing os.environ["DOCUTILSCONFIG"] = os.environ["DOCUTILSCONFIG"].encode("mbcs")
in mozbuild/sphinx.py.
But then I hit the jsdoc vs jsdoc.cmd thing from comment 4.
Yep - which I worked around by editing the jsdoc.py file installed into the build directory - I couldn't work out how to have the build process use a local copy of sphinx, so making a patch seems difficult and I've already blown enough time on this for now.
Erik, is there anything you can do here to help move things along? I'm surprised the .cmd
thing reported a couple of years ago remains a problem, but working out how to use a locally patched version of sphinx would at least help me submit a PR to sphinx.
Reporter | ||
Comment 21•5 years ago
|
||
(In reply to Mark Hammond [:markh] from comment #20)
(In reply to Adam Gashlin (he/him) [:agashlin] from comment #19)
I tried
mach doc
on Windows 10 today, ran into this message:I'm still seeing the same symptoms:
FWIW I started building docs in the WSL in Windows 10. After you manually install jsdoc, it works great!
Assignee | ||
Comment 22•5 years ago
|
||
Hi, Mark! The .cmd thing was indeed fixed in sphinx-js in 2.3.1. We're at 2.7.1 now. What I need to do is update the version in moz-central. I will do so soon. Maybe you can review the patch.
Assignee | ||
Comment 23•5 years ago
|
||
This should fix the doc builds on Windows, as sphinx-js added Windows support in 2.3.1 and 2.4. We also now get support for variadic args, @deprecated, and @see, along with other features.
sphinx-js 2.7.1 changed the default cwd to be the one containing conf.py, so I also had to twiddle jsdoc_config_path
.
Let some other pipenv pinnings update themselves as well, as, if I don't, they'll just update themselves the next time somebody runs mach doc
, dirtying their tree.
I suspect this also fixes bug 1556460, whose equivalent bug in sphinx-js is https://github.com/mozilla/sphinx-js/issues/106. IOW, it should no longer break with versions of jsdoc >= 3.6.
Comment 24•5 years ago
|
||
Comment 25•5 years ago
|
||
Backed out changeset e206bc685749 (Bug 1232403) for causing a linting failure CLOSED TREE
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=269802618&repo=autoland&lineNumber=257
Comment 26•5 years ago
|
||
Stefan, did you intend to needinfo the patch author here?
Comment 27•5 years ago
|
||
Comment 28•5 years ago
|
||
:chmanchester yes, sorry.
Assignee | ||
Comment 29•5 years ago
|
||
Should be fixed now. Ready for another look, ahal, if you have a moment.
Comment 30•5 years ago
|
||
Thanks, changes look good. Not really sure why that happened, but also don't have the time to dig into it.
Comment 31•5 years ago
|
||
Comment 32•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Updated•3 years ago
|
Description
•