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

Incorrect error message when keys are not found #1744

Open
Joebeazelman opened this issue Aug 27, 2024 · 1 comment
Open

Incorrect error message when keys are not found #1744

Joebeazelman opened this issue Aug 27, 2024 · 1 comment
Labels
type: enhancement Improvements to existing functionality type: usability User-friendliness

Comments

@Joebeazelman
Copy link

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 #1230 (comment)

@mosteo
Copy link
Member

mosteo commented Aug 27, 2024

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

@mosteo mosteo added type: enhancement Improvements to existing functionality type: usability User-friendliness labels Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Improvements to existing functionality type: usability User-friendliness
Projects
None yet
Development

No branches or pull requests

4 participants
@mosteo @Joebeazelman and others