alire-project / alire

Command-line tool from the Alire project and supporting library
GNU General Public License v3.0
278 stars 49 forks source link

Incorrect error message when keys are not found #1744

Open Joebeazelman opened 1 month ago

Joebeazelman commented 1 month ago

I'm running version 2.0.1. In the code snippet below, note the table name has been commented out. When I run alr build in the workspace, I get the following error:

error: Cannot continue without a workspace:
error:    Loading release from manifest: alire.toml:
error:    Failed to load alire.toml:
error:    Loading release from manifest: alire.toml:
error:    TOML keys should use hyphens instead of underscores, but found key: rp2040_hal

Toml file

name = "rp_pico_2040"
description = "RP2040 g-coder"
version = "0.1.0-dev"

authors = ["Joe Beazelman"]
maintainers = ["Joe Beazelman <joebeazelman@gmail.com>"]
maintainers-logins = ["joebeazelman"]

executables = ["rp_pico_2040"]

#[configuration.values]
rp2040_hal.Use_Startup = false
rp2040_hal.Interrupts="bb_runtimes"

[[depends-on]]
pico_bsp = "^2.0.0"

[[pins]]
pico_bsp = { path='../../deps/pico_bsp' }
usb_embedded = { path='../../deps/usb_embedded' }
rp2040_hal = { path='../../deps/rp2040_hal' }

Originally posted by @Joebeazelman in https://github.com/alire-project/alire/issues/1230#issuecomment-2307737752

mosteo commented 1 month ago

Understood. Well-formed key check is kicking in before unknown key reporting. So the error is correct, but confusing.