I created a new folder with only a test.nim and in my test.nimble I have:
# Package
version = "0.1.0"
author = "pengowen123"
description = "foo"
license = "MIT"
bin = "test"
# Dependencies
requires "nim >= 0.13.0"
I created it with nimble init, but when I try nimble build I get this error:
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 C:\Users\laptop\Desktop\test\test.nimble;
Reading as ini file failed with:
Invalid section: .
Evaluating as NimScript file failed with:
c:\users\laptop\desktop\test\test.nimble(8, 17) Error: type mismatch: got (string) but expected 'seq[string]'. [NimbleError]
The bin needs to be a sequence. The error message explains it pretty well I think ;) c:\users\laptop\desktop\test\test.nimble(8, 17) Error: type mismatch: got (string) but expected 'seq[string]'.
# Package
version = "0.1.0"
author = "pengowen123"
description = "foo"
license = "MIT"
bin = @["test"]
# Dependencies
requires "nim >= 0.13.0"
nimble init
created the test.nimble file which then produces an error. Wouldn't this mean that there is a bug in nimble or did I miss anything?
Sorry, I overlooked this.
I tried nimble init and got this:
In order to initialise a new Nimble package, I will need to ask you
some questions. Default values are shown in square brackets, press
enter to use them.
Enter package name [nimble]: mypgm
Enter intial version of package [0.1.0]:
Enter your name [Manfred Lotz]: John Doe
Enter package description: something
Enter package license [MIT]:
Enter lowest supported Nim version [0.13.0]:
FAILURE: Could not read package info file in /data/tmp/nimble/mypgm.nimble;
- Reading as ini file failed with:
- Invalid section: .
- Evaluating as NimScript file failed with:
- Error: cannot open '/usr/local/lib/nim/system.nim'.
What is wrong here?