Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dx serve a desktop project panics on latest git version #2927

Open
TheAlexDev23 opened this issue Sep 4, 2024 · 0 comments
Open

dx serve a desktop project panics on latest git version #2927

TheAlexDev23 opened this issue Sep 4, 2024 · 0 comments

Comments

@TheAlexDev23
Copy link

Problem

Running dx serve --platform desktop on a fresh project crashes the program with the following message:

2024-09-04T18:50:58.389478Z  INFO dx::builder::cargo: 🚅 Running build [Desktop] command...
thread 'tokio-runtime-worker' panicked at packages/cli/src/assets.rs:24:47:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Steps To Reproduce

Steps to reproduce the behavior:

  • Installing latest version of dioxus-cli. cargo install --git https://github.com/DioxusLabs/dioxus dioxus-cli
  • Create a new desktop project dx new
  • Change the dioxus dependency version to the latest git version in Cargo.toml:
dioxus = { git = "https://github.com/DioxusLabs/dioxus", branch = "main", features = [
    "desktop",
    "router",
] }
  • Serve the project dx serve --platform desktop

Environment:

  • Dioxus version: master
  • Rust version: rustc 1.80.0 (051478957 2024-07-21)
  • OS info: Linux
  • App platform: desktop

Questionnaire
Unless the fix is very trivial, I could look into it myself if I find the time, unfortunately I'm unfamiliar with the project internals, so a little guidance will be appreciated in that case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant