Giter Club home page Giter Club logo

Comments (6)

gobanos avatar gobanos commented on August 22, 2024 3

@jfredett Looks like you are using edition 2018 with an older version of aoc-runner-derive.

This issue should be solve in 0.1.3.

from cargo-aoc.

jfredett avatar jfredett commented on August 22, 2024 1

That did it, I can confirm that the nightly-2018-11-30 works as expected as a workaround for this issue.

from cargo-aoc.

gobanos avatar gobanos commented on August 22, 2024

Thanks for reporting !

I have reproduce the issue on last nightly, I had a different message with a 2-3 day old one.

I'll check that :)

from cargo-aoc.

gobanos avatar gobanos commented on August 22, 2024

Ok, made some progress.

proc_macro is under refactor, see https://github.com/rust-lang/rust/tree/master/src/libproc_macro.

I'm not sure if it's a bug or an expected behavior (at least it should fail to compile aoc-runner-derive crate...), so I will open an issue, and recommend you to use an older nightly build.

PS : issue link

from cargo-aoc.

jfredett avatar jfredett commented on August 22, 2024

I'm working my way through recent nightlies (I'm also seeing this problem on most recent nightly), but I'm getting a different issue.

≈≈≈ cargo build
    Blocking waiting for file lock on build directory
   Compiling aoc-runner v0.1.0
   Compiling advent-2018 v0.1.0 (/home/jfredett/code/rust/advent-2018)
error[E0432]: unresolved import `Factory`
  --> src/day1.rs:12:1
   |
12 | #[aoc(day1, part1)]
   | ^^^^^^^^^^^^^^^^^^^ no `Factory` external crate

error: aborting due to previous error

This happens on 2018-11-25 nightly, I'm still working my way through the others, but I'm wondering if my setup is just wrong?

here's my day1.rs from whence the above error comes:

pub type SignalChain = Vec<i64>;

#[aoc_generator(day1)]
pub fn input_generator(input: &str) -> SignalChain {
   // snip
}

#[aoc(day1, part1)]
pub fn solution(input: &str) -> i32 {
    // snip
}

I haven't really got to use the framework much (trying to work through the issues getting it to run), so it may just be that I'm doing something wrong/missing some use?

from cargo-aoc.

gobanos avatar gobanos commented on August 22, 2024

I just published aoc-runner-derive 0.1.4, which solves this problem !

from cargo-aoc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.