Community Packages

Please read this before reporting a bug:
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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
Task Type Bug Report
Category Packages
Status Closed
Assigned To Alexander F. Rødseth (xyproto)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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
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.

Loading...