I stumbled upon the fact today that nimble does not accept the following:
version = "0.1.0" author = "John Doe" description = "An example" license = "MIT" src_dir = "src" bin = @["example"]
The error is:
... Error: cannot open '/home/xxx/projects/example/example.nim' build.nim(176) buildFromDir
Since there is no example.nim in the root directory, but in the src directory. Thus, srcDir is case-sensitive (binDir, too).
I can live with it now that I know, but it is somewhat confusing if you assume that variables written as srcDir and src_dir are identical.
Is that intentional or a bug?
<aktshually> You mean style insensitivity, not case insensitivity. </aktshually>
Looks like a bug. Probably a bug in the new declarative parser since nimble files are just NimScript files and when executed as NimScript they should respect Nim's style insensitivity.
Could you please report?
Thank, you're right, wrong wording for the problem.
See issue <https://github.com/nim-lang/nimble/issues/1779>