Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: undeclared identifier: 'name'. #237

Closed
karantin2020 opened this issue Jun 14, 2016 · 1 comment
Closed

Error: undeclared identifier: 'name'. #237

karantin2020 opened this issue Jun 14, 2016 · 1 comment
Labels

Comments

@karantin2020
Copy link

Changed zip.nimble file to

# Package

name          = "zip"
version       = "0.1.0"
author        = "Anonymous"
description   = "Wrapper for the zip library"
license       = "MIT"

# Dependencies

requires "nim >= 0.10.0"

task tests, "Run lib tests":
  withDir "tests":
    exec "nim c -r ziptests"

Got that error

FAILURE: Could not read package info file in .../zip/zip.nimble;
  Reading as ini file failed with: 
    Invalid section: .
  Evaluating as NimScript file failed with: 
    .../zip/zip.nimble(3, 1) Error: undeclared identifier: 'name'.

Without name field in nimble file everything works fine.
Where can I write package name? Thanks

@Araq
Copy link
Member

Araq commented Jun 14, 2016

Don't write it at all, nimble knows the name already from the filename. There is pkgName too, but let's fight the boilerplate instead!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants