FS#48118 - [nim] Error message with doc2 command
Attached to Project:
Community Packages
Opened by wicastC (wicast) - Wednesday, 10 February 2016, 15:38 GMT
Last edited by Alexander F. Rødseth (xyproto) - Thursday, 11 February 2016, 22:53 GMT
Opened by wicastC (wicast) - Wednesday, 10 February 2016, 15:38 GMT
Last edited by Alexander F. Rødseth (xyproto) - Thursday, 11 February 2016, 22:53 GMT
|
Details
Description:
The doc2 generation's semantic checking seems broken because macro.nim will open a "astspec.txt" file which is missing,the solution is simple:just add a softlink form /usr/share/nim/doc to /usr/lib/nim folder. Additional info: * package version(s):0.13.0-1 * config and/or log files etc. $ nim doc2 templates.nim Hint: system [Processing] Hint: templates [Processing] Hint: tables [Processing] Hint: hashes [Processing] lib/nim/pure/hashes.nim(13, 19) Warning: redefinition of label 'proc' [RedefinitionOfLabel] Hint: strutils [Processing] Hint: parseutils [Processing] Hint: etcpriv [Processing] Hint: math [Processing] Hint: times [Processing] Hint: macros [Processing] lib/nim/core/macros.nim(15, 32) Error: cannot open '../doc/astspec.txt' Hint: annotate [Processing] annotate.nim(5, 14) Error: undeclared identifier: 'newStmtList' annotate.nim(5, 25) Error: attempting to call undeclared routine: 'newStmtList' annotate.nim(5, 25) Error: expression 'newStmtList' cannot be called annotate.nim(7, 24) Error: type mismatch: got (NimNode) but expected one of: system.len(x: seq[T]) system.len(x: cstring) system.len(x: TOpenArray) system.len(w: WideCString) system.len(x: string) system.len(x: array[I, T]) annotate.nim(8, 20) Error: undeclared identifier: 'newProc' annotate.nim(9, 22) Error: undeclared identifier: 'ident' annotate.nim(9, 34) Error: could not resolve: [](names, i) annotate.nim(9, 28) Error: type mismatch: got ([].T) but expected one of: system.$(x: system.int) system.$(x: $.T) system.$(x: seq[T]) system.$(x: system.uint64) Steps to reproduce: Any nim file whit "nim doc2" command |
This task depends upon
Closed by Alexander F. Rødseth (xyproto)
Thursday, 11 February 2016, 22:53 GMT
Reason for closing: Fixed
Thursday, 11 February 2016, 22:53 GMT
Reason for closing: Fixed
Comment by
Alexander F. Rødseth (xyproto) -
Thursday, 11 February 2016, 22:53 GMT
Thanks for reporting! The updated package will appear in
[community] shortly.