You are not logged in.

#1 2023-05-20 12:12:40

RealStickman
Member
Registered: 2023-05-20
Posts: 1

nim cannot find paths provided by package

I've run into two different situations where the current nim package did not provide files in the locations expected by nim. 

The first example is using "nim doc [file.nim]". Nim tries to use "/usr/doc/nimdoc.css". The package provided file is located in "/usr/share/nim/doc/nimdoc.css"
Full error message:

$ nim doc main.nim
Hint: used config file '/etc/nim/nim.cfg' [Conf]
Hint: used config file '/etc/nim/config.nims' [Conf]
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]

Similarly, I've run into issues while compiling nimlangserver. With nim being unable to find "/usr/compiler/pathutils".
An uncompiled version is provided in "/usr/lib/nim/compiler/pathutils.nim"

In both cases symlinking worked, though obviously not ideal.

Can the current package be changed to support these (and probably other) uses or is this an upstream issue?

Offline

Board footer

Powered by FluxBB