ros2_documentation
ros2_documentation copied to clipboard
Codespace doesn't let me `make html`
trafficstars
When I do make html, I get a locale error. I'm not sure what the fix is, especially because I can't seem to use sudo, perhaps because of the Docker setup.
$ make html
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/rosindex/.local/lib/python3.10/site-packages/sphinx/__main__.py", line 7, in <module>
raise SystemExit(main(sys.argv[1:]))
File "/home/rosindex/.local/lib/python3.10/site-packages/sphinx/cmd/build.py", line 326, in main
locale.setlocale(locale.LC_ALL, '')
File "/usr/lib/python3.10/locale.py", line 620, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
make: *** [Makefile:23: html] Error 1
Any thoughts, @cychitivav?
It also may be good to add some instructions saying how to use the codespace in the repo's readme.
I suspect that the container needs something like http://docs.ros.org/en/rolling/Installation/Ubuntu-Install-Debians.html#set-locale at the beginning of it, but I have no idea how codespace works.
as @clalancette pointed out, we need to add some procedure during devcontainer instantiation. i will come up with fix 🔨