oyvindberg / tui-scala

Beautiful Text-based User Interfaces for Scala
MIT License
207 stars 11 forks source link

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

Closed mccartney closed 11 months ago

mccartney commented 11 months ago

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 11 months ago

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 11 months ago

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 11 months ago

we can see if passes CI as well?

It seems like it does.