nimble
nimble copied to clipboard
`nimble run` selects nonexistent binary to run (with only one namedBin)
Currently, nimble run doesn't work with one namedBin.
See directory tests/issue984 in pull request #985 for example.
Hey, I also ran into this problem. Whenever I try to nimble run when I have defined one namedBin and it doesn't matter how many elements bin has, I get the error:
nimble.nim(2419) run
Error: Binary 'indicador' is not defined in 'ImSipsa' package.
If I use only bin and not namedBin, it works just fine.
And if I have multiple namedBin, it asks for the name of one but when I give it the name of the binary I want to run, it fails with the same error as above.
Here is my .nimble file:
# Package
author = "Patitotective"
description = "It processes CSV data and outputs a DOCX file"
license = "MIT"
backend = "cpp" # minidocx requires C++
srcDir = "src"
version = "1.1.0"
namedBin["indicador"] =
"generadorDelIndicador-" & version & (when defined(Windows): ".exe" else: "")
binDir = "Generar El Indicador"
# Dependencies
requires "nim ^= 2.2.0"
requires "kdl ^= 2.0.0"
requires "excelin ^= 0.5.0"
requires "datamancer ^= 0.5.0"
requires "pretty ^= 0.2.0"
requires "https://github.com/Patitotective/minidocx-nim/ ^= 0.1.0"