workbenchdev / Workbench

Code playground for GNOME 🛠️
https://apps.gnome.org/Workbench
GNU General Public License v3.0
672 stars 88 forks source link

The second Rust session always fails #919

Open sonnyp opened 3 months ago

sonnyp commented 3 months ago

Steps to reproduce

  1. flatpak kill re.sonny.Workbench.Devel
  2. rm -rf ~/.var/app/re.sonny.Workbench.Devel
  3. Start Workbench from main
  4. Open any Rust demo
  5. Press "Run" - it compiles and execute all good
  6. Open any other Rust demo
  7. Press "Run" - it fails with the following
thread '<unnamed>' panicked at code.rs:4:89:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5

It appears that running only works after a fresh cargo build?

sonnyp commented 3 months ago

I can reproduce with the same steps (adjusted) with Workbench 46 from Flathub