Closed Bug 1697613 Opened 2 months ago Closed 2 months ago

`./mach doc` errors

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: tjr, Unassigned)

References

(Blocks 1 open bug)

Details

A relatively new machine (so not every package is installed), ran ./mach doc and got:

# Sphinx version: 3.5.1
# Python version: 3.8.5 (CPython)
# Docutils version: 0.16 release
# Jinja2 version: 2.11.2
# Last messages:

# Loaded extensions:
Traceback (most recent call last):
  File "/home/tom/Documents/moz/static-analysis/mozilla-unified/obj-x86_64-pc-linux-gnu/_virtualenvs/docs/lib/python3.8/site-packages/sphinx/cmd/build.py", line 276, in build_main
    app = Sphinx(args.sourcedir, args.confdir, args.outputdir,
  File "/home/tom/Documents/moz/static-analysis/mozilla-unified/obj-x86_64-pc-linux-gnu/_virtualenvs/docs/lib/python3.8/site-packages/sphinx/application.py", line 245, in __init__
    self.setup_extension(extension)
  File "/home/tom/Documents/moz/static-analysis/mozilla-unified/obj-x86_64-pc-linux-gnu/_virtualenvs/docs/lib/python3.8/site-packages/sphinx/application.py", line 402, in setup_extension
    self.registry.load_extension(self, extname)
  File "/home/tom/Documents/moz/static-analysis/mozilla-unified/obj-x86_64-pc-linux-gnu/_virtualenvs/docs/lib/python3.8/site-packages/sphinx/registry.py", line 430, in load_extension
    metadata = setup(app)
  File "/home/tom/Documents/moz/static-analysis/mozilla-unified/python/mozbuild/mozbuild/sphinx.py", line 212, in setup
    manager.generate_docs(app)
  File "/home/tom/Documents/moz/static-analysis/mozilla-unified/tools/moztreedocs/__init__.py", line 96, in generate_docs
    self.trees, self.python_package_dirs = read_build_config(app.srcdir)
  File "/home/tom/Documents/moz/static-analysis/mozilla-unified/python/mozbuild/mozbuild/util.py", line 1040, in __call__
    self[args] = self.func(*args)
  File "/home/tom/Documents/moz/static-analysis/mozilla-unified/tools/moztreedocs/__init__.py", line 51, in read_build_config
    for path, name, key, value in result:
  File "/home/tom/Documents/moz/static-analysis/mozilla-unified/python/mozbuild/mozbuild/frontend/reader.py", line 1056, in find_variables_from_ast
    mozbuild_paths = chain(*self._find_relevant_mozbuilds([path]).values())
  File "/home/tom/Documents/moz/static-analysis/mozilla-unified/python/mozbuild/mozbuild/frontend/reader.py", line 1306, in _find_relevant_mozbuilds
    raise Exception("Path outside topsrcdir: %s" % path)
Exception: Path outside topsrcdir: /home/tom/Documents/moz/static-analysis/mozilla-unified/docs

I rm-ed my objdir and this went away. /shrug

Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.