"unknown feature `proc_macro_span_shrink`" when trying to run demos
Closed this issue ยท 3 comments
mccartney commented
I am new to the project. Just trying to follow the [contributing.md] instructions.
bleep run demo@jvm213
fails with
๐ Launching Bleep version 0.0.1-M27 as requested in /private/tmp/tui-scala/bleep.yaml
๐ bootstrapped in 19 ms
๐ Running source generator `tui.scripts.GenJniLibrary` for project crossterm because output didn't exist
๐ BSP: Picked up _JAVA_OPTIONS: -Djava.awt.headless=true
๐ BSP / [script GenJniLibrary]: bootstrapped in 684 ms
๐ BSP / [script GenJniLibrary]: Building library with native build tool Cargo
๐ BSP / [script GenJniLibrary] / [subprocess: cargo build]: Compiling proc-macro2 v1.0.47
๐ BSP / [script GenJniLibrary] / [subprocess: cargo build]: Compiling signal-hook-mio v0.2.3
๐ BSP / [script GenJniLibrary] / [subprocess: cargo build]: Compiling crossterm v0.25.0
๐ BSP / [script GenJniLibrary] / [subprocess: cargo build]: error[E0635]: unknown feature `proc_macro_span_shrink`
๐ BSP / [script GenJniLibrary] / [subprocess: cargo build]: --> /Users/mccartney/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.47/src/lib.rs:92:30
๐ BSP / [script GenJniLibrary] / [subprocess: cargo build]: |
๐ BSP / [script GenJniLibrary] / [subprocess: cargo build]: 92 | feature(proc_macro_span, proc_macro_span_shrink)
๐ BSP / [script GenJniLibrary] / [subprocess: cargo build]: | ^^^^^^^^^^^^^^^^^^^^^^
๐ BSP / [script GenJniLibrary] / [subprocess: cargo build]:
๐ BSP / [script GenJniLibrary] / [subprocess: cargo build]: For more information about this error, try `rustc --explain E0635`.
๐ BSP / [script GenJniLibrary] / [subprocess: cargo build]: error: could not compile `proc-macro2` (lib) due to 1 previous error
๐ BSP / [script GenJniLibrary] / [subprocess: cargo build]: warning: build failed, waiting for other jobs to finish...
๐ BSP / [script GenJniLibrary]: Failed to run script: `GenJniLibrary`.: Failed external command 'cargo build' with exit code 101. See log file for exact command
๐ command failed: Run scripts failed status code ERROR
I can see the same failure in CI, so I guess it's not specific to my local setup.
mccartney commented
Bumping https://github.com/oyvindberg/tui-scala/blob/master/crossterm/cargo/Cargo.lock#L166 to 1.0.70
seems to fix the issue.
oyvindberg commented
Interesting. I thought the rust code would be quite "frozen", but not quite apparently. Can you PR the change so we can see if passes CI as well?
mccartney commented
we can see if passes CI as well?
It seems like it does.