FS#48337 - [nimble] Failed to build packages which config file is written in nimscript.

Attached to Project: Community Packages
Opened by wicastC (wicast) - Thursday, 25 February 2016, 11:07 GMT
Last edited by Alexander F. Rødseth (xyproto) - Saturday, 12 March 2016, 10:38 GMT
Task Type Bug Report
Category Upstream Bugs
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:
For those using nimscript to write nimble config,it will failed with these message:
$ nimble build
FAILURE: Could not read package info file in /home/wicast/Thrid-part/nim-readJson-benchmarks/json_reader.nimble;
Reading as ini file failed with:
Invalid section: .
Evaluating as NimScript file failed with:
Cannot find nimscriptapi.nim.

Additional info:
* package version(s): 1:0.7.2-1

Nimble need extra source file for nimscript support.


This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Saturday, 12 March 2016, 10:38 GMT
Reason for closing:  Upstream
Additional comments about closing:  Found a workaround, but this is still an issue. The installation method Upstream provides does not work.
Comment by Alexander F. Rødseth (xyproto) - Thursday, 25 February 2016, 21:08 GMT
Thanks for reporting! Will look into this.
Comment by Severen Redwood (Shrike) - Monday, 07 March 2016, 11:30 GMT
I'm also having the same issue. It's a fairly blocking issue for Nim developers as no packages that use the Nimscript package format can be built.

Package versions:
- nim: 0.13.0-2
- nimble: 1:0.7.2-1

Exact same error if you're wondering:

FAILURE: Could not read package info file in /home/shrike/confmacs/confmacs.nimble;
Reading as ini file failed with:
Invalid section: .
Evaluating as NimScript file failed with:
Cannot find nimscriptapi.nim.
Comment by Alexander F. Rødseth (xyproto) - Saturday, 12 March 2016, 09:56 GMT
I can't install nimble using the installation instructions from this web page: https://github.com/nim-lang/nimble#unix

This is the error I get:

CC: stdlib_linenoise
CC: stdlib_browsers
CC: clinenoise
Hint: [Link]
Hint: operation successful (93025 lines compiled; 18.860 sec total; 199.204MB; Debug Build) [SuccessX]
Traceback (most recent call last)
nimble.nim(962) nimble
nimble.nim(887) doAction
nimble.nim(869) execHook
packageparser.nim(230) readPackageInfo
Error: unhandled exception: Could not read package info file in /build/nimble/src/nimble/nimble.nimble;
Reading as ini file failed with:
Invalid section: .
Evaluating as NimScript file failed with:
Error: cannot open '/build/nimble/src/nimble/lib/system.nim'. [NimbleError]
Error: execution of an external program failed: '/build/nimble/src/nimble/src/nimble install'

Please report upstream.
Comment by Alexander F. Rødseth (xyproto) - Saturday, 12 March 2016, 10:37 GMT
Found a workaround for the nimscriptapi.nim error, but https://github.com/ondreian/nim-readJson-benchmarks still doesn't build.

Wish nimble came with a working installation method.

Loading...