Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#69048 - [nim] "nim doc" looks for /usr/doc/nimdoc.css
Attached to Project:
Community Packages
Opened by Carlo Capocasa (capocasa) - Monday, 21 December 2020, 08:53 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:01 GMT
Opened by Carlo Capocasa (capocasa) - Monday, 21 December 2020, 08:53 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:01 GMT
|
DetailsDescription:
The `nim doc` command causes an exception to be thrown due to folder paths incorrectly initialized for the layout in the nim package. `nim doc` by default assumes support files such as `nimdoc.css` to live in `../doc` from the location of the nim executable. This works fine if running directly from the build tree, but needs to be adapted by modifying config.cfg for a package within the system directory layout. Relevant variable seems to be conf.prefixDir, but I was unable to set it successfully via a /etc/nim config file or compiler flag. Steps to reproduce: pacman -S nim cd /tmp touch foo.nim nim doc foo.nim Actual output: Hint: used config file '/etc/nim/nim.cfg' [Conf] Hint: used config file '/etc/nim/config.nims' [Conf] Hint: used config file '/etc/nim/nimdoc.cfg' [Conf] ....Traceback from system (most recent call last) Error: unhandled exception: No such file or directory Additional info: "/usr/doc/nimdoc.css" [OSError] Expected output: Hint: used config file '/etc/nim/nim.cfg' [Conf] Hint: used config file '/etc/nim/config.nims' [Conf] Hint: used config file '/etc/nim/nimdoc.cfg' [Conf] Hint: 22665 lines; 0.138s; 20.652MiB peakmem; Debug build; proj: /tmp/foo.nim; out: /tmp/htmldocs/foo.html [SuccessX] |
This task depends upon
Closed by Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:01 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/nim/issues/3
Saturday, 25 November 2023, 20:01 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/nim/issues/3

I can confirm that this also happens on my system. Also, /etc/nim/nimdoc.cfg contains "$nimdoccss", but that might be unrelated. Replacing it with /usr/share/nim/doc/nimdoc.css does not help.

This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.