Open abergmeier opened 1 year ago
Looks the error is coming from a custom directive defined in kernel_api.py
, and looking at the last few lines of the stack trace
File "/home/user/Projects/linux/Documentation/sphinx/kernel_abi.py", line 89, in run
srctree = path.abspath(os.environ["srctree"]) <---
File "/usr/lib/python3.10/os.py", line 679, in __getitem__
raise KeyError(key) from None
KeyError: 'srctree'
it's trying to read from the srctree
environment variable which, judging from the error is undefined.
Unfortunately, the Esbonio extension doesn't allow you to set environment variables directly, but I can think of a few workarounds
$ srctree=/path/to/my/srctree code
Based on a quick test, the language server should be able to inherit the value.
kernel_abi.py
to get the value of srctree
from somewhere else
Inside Visual Studio Code I see Sphinx failing. Output is: