I noticed that the compiler has a ctags command, which can be used like so:
nim ctags code.nim
However, there's not really any documentation for it, and it doesn't seem to work. If I run it on a simple file I get an error like:
Error: cannot open '/foo/bar/htmldocs/code.ctags'
If I make the htmldocs directory, then I get this error:
assertions.nim(34) raiseAssert
Error: unhandled exception: options.nim(726, 3) `not conf.outFile.isEmpty` [AssertionDefect]
This seems to actually generate a file before failing, but the file is just a list of identifiers with no other information, not a functional tags file. If I pass --stdout I can generate the same file without getting an error. But again it's not usable.
Am I missing something?
This seems to actually generate a file before failing, but the file is just a list of identifiers with no other information, not a functional tags file
will be fixed in https://github.com/nim-lang/Nim/pull/24944