rustyscript icon indicating copy to clipboard operation
rustyscript copied to clipboard

Dependency deno_astv0.43.3 is broken so rustyscript cant compile

Open TimoLehnertz opened this issue 8 months ago • 3 comments

Describe the bug The dependency deno_astv0.43.3 is broken. It has a non-exhaustive patterns match expression. So rustyscript doesnt compile. The latest version of deno_ast works fine. The current cargo.toml of rustyscript also uses the newest version of deno_ast but the distributed version does not. Please make a new release which bumbs the version of deno_ast.

To Reproduce Steps to reproduce the behavior: cargo add rustyscript cargo run

Workarround My workarround at the moment is to use the master branch of rustyscript. So in my cargo.toml i replace rustyscript = "0.11.0" By rustyscript = { git = "https://github.com/rscarson/rustyscript.git", branch = "master" }

Expected behavior Make a minor release to bump the version of deno_ast to "=v0.46.5"

Additional context Im new to rust and would like to understand this issue better. How can this even happen in the first place? I assume that at the time of releaseing rustyscript the dependency was fine. How can it break afterwards?

TimoLehnertz avatar Apr 23 '25 08:04 TimoLehnertz

Hello Duplicate of #332. You can find the fix there. You can also contact me via email if you need help.

utyfua avatar Apr 23 '25 08:04 utyfua

Oh alright i missed that. But why is it still not fixed? Or could you at least add a note with the issue link to the readme? Because for new users the fix is not easy to find.

TimoLehnertz avatar Apr 23 '25 12:04 TimoLehnertz

The reason this occurs is because of the way deno_core specified the dependency on their end,

Effectively both versions fit their requirements so sometimes the wrong one gets selected

rscarson avatar Apr 23 '25 13:04 rscarson

Fixed in release 0.12.0

rscarson avatar Aug 16 '25 03:08 rscarson