gobanos / cargo-aoc

437 stars 47 forks source link

Panic when running cargo aoc #55

Open NilsIrl opened 3 years ago

NilsIrl commented 3 years ago

When running cargo aoc the following panic is hit:

https://github.com/gobanos/cargo-aoc/blob/7026a13b357800aabe9f6c594c1ee86a15c57340/cargo-aoc/src/project.rs#L46

jskrzypek commented 3 years ago

Also hitting this

jskrzypek commented 3 years ago

Hmm looks like the v0.3 branch might be the working one? https://github.com/gobanos/cargo-aoc/blob/v0.3/cargo-aoc/src/project.rs#L45

jskrzypek commented 3 years ago

Bah, now it just prints AOC 2020 and doesn't seem to run my code :(

jskrzypek commented 3 years ago
    Checking advent-of-code-2020 v0.2.0 (/home/jskrzypek/dev/jskrzypek/advent-of-code-2020/rust)
    Finished dev [unoptimized + debuginfo] target(s) in 0.44s
   Compiling advent-of-code-2020 v0.2.0 (/home/jskrzypek/dev/jskrzypek/advent-of-code-2020/rust)
   Compiling aoc-autobuild v0.3.0 (/home/jskrzypek/dev/jskrzypek/advent-of-code-2020/rust/target/aoc/aoc-autobuild)
    Finished release [optimized + debuginfo] target(s) in 2.11s
     Running `target/release/aoc-autobuild`
AOC 2020
jskrzypek commented 3 years ago

Oh, nvm. That was my fault, I had a segfault in an unsafe block.... wheee valgrind :roll_eyes:

NilsIrl commented 3 years ago

Ok, it works with the 0.3 branch. I'm not going to close this, because this is still a bug on master...