oyvindberg/tui-scala

"unknown feature `proc_macro_span_shrink`" when trying to run demos

Closed this issue ยท 3 comments

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.

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?

we can see if passes CI as well?

It seems like it does.