sigmaSd / IRust

Cross Platform Rust Repl
https://crates.io/crates/irust
MIT License
627 stars 34 forks source link

Async repl not working properly #90

Closed NobodyXu closed 2 years ago

NobodyXu commented 2 years ago

During the async mode (I was using tokio runtime), no matter what I enters, irust just silently accepts them without printing any result, even for the most simple expression 1 + 2.

sigmaSd commented 2 years ago

Hello, that area indeed needs better error reporting

Usually to debug this, you can after inputing something to the repl and hitting enter, go to /tmp/irust_host_repl and run cargo r and it will show the error ( I suspect cargo add failed)

sigmaSd commented 2 years ago

thanks for the bug report turns out it an actual issue, fixed in https://github.com/sigmaSd/IRust/commit/5de6c9f68c2e18bcb230b6f912d599f43e077f46

sigmaSd commented 2 years ago

Actually I'll keep the issue open till next release

NobodyXu commented 2 years ago

Thank you so much for the quick response!

sigmaSd commented 2 years ago

You're welcome!