Comments (6)
@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.
That did it, I can confirm that the nightly-2018-11-30 works as expected as a workaround for this issue.
from cargo-aoc.
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.
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.
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.
I just published aoc-runner-derive
0.1.4, which solves this problem !
from cargo-aoc.
Related Issues (20)
- Feature: Add cargo aoc setup
- Allow &str input in aoc function after generator was defined. HOT 4
- Allow downloading the inputs of all the days
- Allow running specific (/last) day (and/or part) from the regular executable HOT 1
- Run with debug-assertions and overflow-checks turned on HOT 3
- Add option to only generate the aoc-autobuild source
- input to generator function seems to be missing trailing newlines HOT 6
- Unexpected type argument? HOT 1
- The solving functions cannot receive a mutable reference HOT 2
- How do I debug with cargo-aoc HOT 3
- Lifetime error with `#[aoc...` HOT 1
- Allow overriding criterion configs
- Feature request: cargo aoc init
- Cannot download input from 2020: error 400 (credentials are set) HOT 1
- rust-analyzer macro-error everywhere HOT 2
- What are 'named solutions' in aoc_generate
- aoc_generator(day, part) seems broken HOT 3
- Can't get minimal example to work HOT 3
- Include contact info in user agent HOT 2
- Add a way to run in release mode with `cargo aoc --release` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cargo-aoc.