Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

Examples are panicing #22

Closed
Pzixel opened this issue Jun 22, 2018 · 1 comment
Closed

Examples are panicing #22

Pzixel opened this issue Jun 22, 2018 · 1 comment

Comments

@Pzixel
Copy link

Pzixel commented Jun 22, 2018

I have following toml

[dependencies]
clap = "2"
thunder = "0.3"

Code is Thor example.

Output:

   Compiling winapi v0.3.5
   Compiling sample_app v0.1.0 (file:///C:/Users/Alex/Documents/Repo/sample_app)
   Compiling atty v0.2.10
   Compiling clap v2.31.2
   Compiling thunder v0.3.1
error: custom attribute panicked
  --> src\main.rs:10:1
   |
10 | #[thunderclap(drunk: bool = "Bla bla bla")]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: message: index out of bounds: the len is 2 but the index is 2

error: aborting due to previous error

error: Could not compile `sample_app`.

To learn more, run the command again with --verbose.

Process finished with exit code 101
@spacekookie
Copy link
Collaborator

Hey, thanks for reporting this issue. The attribute syntax was briefly changed ( #12 ) but then reverted for a different PR ( #19 ). The issue in the example was now fixed in e3e5038.

We should adjust the syntax again though 😬

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

No branches or pull requests

2 participants