GithubHelp home page GithubHelp logo

dioxuslabs / example-projects Goto Github PK

View Code? Open in Web Editor NEW
473.0 473.0 63.0 1.9 MB

Featured Dioxus projects on how to build clean user interfaces in Rust

Rust 54.59% HTML 0.40% CSS 22.96% JavaScript 22.05%

example-projects's People

Contributors

alongdate avatar andrewdavidmackenzie avatar dependabot[bot] avatar devazeredo avatar ealmloff avatar jkelleyrtp avatar junichisugiura avatar marc2332 avatar mrxiaozhuox avatar ngmisl avatar striezel avatar tkr-sh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

example-projects's Issues

Windows Counter example not incrementing counter

Problem

The windows counter example compiles and runs, however clicking on the buttons doesn't increment or decrement the displayed counter

Expected behavior

Expect the counter to display correctly and respond to button clicks.

Screenshots
image

image

image

If applicable, add screenshots to help explain your problem.
Environment:

  • Dioxus version: [0.3.2]
  • Rust version: [1.69.0]
  • OS info: [Windows 11]
  • App platform: [desktop]

Questionnaire

  • I'm interested in fixing this myself but don't know where to start
  • I would like to fix and I have a solution
  • I don't have time to fix this right now, but maybe later

e-commerce example won't compile

Problem

I'm trying to compile the e-commerce example (as it seems to be one of the more fully-featured examples) but my compilation just hangs after dioxus serve

Steps To Reproduce

Steps to reproduce the behavior:

  • Pull down the repo
  • cd ecommerce
  • dioxus serve

Expected behavior

  • I would expect the app to compile and for me to be given a link to the app in the browser

Screenshots

  • Output is below.
  • It hangs at Compiling ahash 0.7.6 (registry+https://github.com/rust-lang/crates.io-index) for about an hour
dioxus serve

[WARN] You appear to be creating a Dioxus project from scratch; we will use the default config
[INFO] ๐Ÿš… Running build command...
/ Compiling futures-sink 0.3.28 (registry+https://github.com/rust-lang/crates.io-index)                   Compiling serde v1.0.164
   Compiling futures-util v0.3.28
   Compiling thiserror v1.0.40
   Compiling mio v0.8.8
   Compiling num-traits v0.2.15
   Compiling crossbeam-utils v0.8.16
   Compiling wasm-bindgen-macro-support v0.2.87
| Compiling ahash 0.7.6 (registry+https://github.com/rust-lang/crates.io-index)
   Compiling http v0.2.9
\ Compiling ahash 0.7.6 (registry+https://github.com/rust-lang/crates.io-index)
/ Compiling ahash 0.7.6 (registry+https://github.com/rust-lang/crates.io-index)

Environment:

  • Dioxus version: master
  • Rust version: rustc 1.69.0 (84c898d65 2023-04-16)
  • OS info: Darwin Rashads-MacBook-Air.local 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct 9 20:15:52 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T8112 arm64
  • App platform: web

Questionnaire

  • I'm interested in fixing this myself but don't know where to start
  • I would like to fix and I have a solution
  • I don't have time to fix this right now, but maybe later

Cannot build weatherapp

I'm trying to build the weatherapp demo on Fedora Linux 37.

First, I installed a number of packages which turned out to be required:

sudo dnf install cairo-devel cairo-gobject-devel gdk-pixbuf2-devel atk-devel pango-devel gtk3-devel libsoup-devel webkit2gtk4.0-devel libappindicator-gtk3-devel

All dependencies seem to be order now, but the build fails:

$ cargo build
   Compiling weatherapp v0.1.0 (/var/tmp/troels/example-projects/weatherapp)
error[E0433]: failed to resolve: could not find `web` in `dioxus`
 --> src/main.rs:4:13
  |
4 |     dioxus::web::launch(app);
  |             ^^^ could not find `web` in `dioxus`

For more information about this error, try `rustc --explain E0433`.
error: could not compile `weatherapp` due to previous error

Maybe there is an error in Carto.toml?

exit code: 0xc0000135, STATUS_DLL_NOT_FOUND

Hey there, I was facing this issue when I tried to run the "wifi-scanner" app, I have installed all the dependencies and everything, and yet it still gives me this error.

Finished dev [unoptimized + debuginfo] target(s) in 0.28s
     Running `target\debug\demo.exe`
error: process didn't exit successfully: `target\debug\demo.exe` (exit code: 0xc0000135, STATUS_DLL_NOT_FOUND)

weatherapp: controls are not interactive

In the weather app, there is a "search" bar as well as a list of locations to choose from. However, despite appearances, none of these are actually interactive โ€“ the entire interface is hard-coded.

I would suggest either removing the controls or making an actual interactive app. The current example is likely to confuse anyone trying it out.

TRACE causes browser to crash

Problem

When I use trunk serve to start this project. The browser runs normally for a period of time before opening. but when i don't click browser a half minute, my browser will stuck. code doesn't panic
I set Level::INFO is useless

    console_error_panic_hook::set_once();
    
    let config = WASMLayerConfigBuilder::new()
        .set_max_level(Level::TRACE)
        .build();
    tracing_wasm::set_as_global_default_with_config(config);
    dioxus_web::launch(app);

Screenshots
1708763137310

Environment:

  • dioxus version: 0.43
  • dioxus-web version: 0.43
  • console_error_panic_hook = "0.1"
  • tracing = "0.1"
  • tracing-wasm = "0.2"
  • wasm-bindgen = {version = "0.2", features = ["enable-interning"] }
  • Rust version: 1.76
  • OS info: MacOS 14.2.1
  • App platform: web

"dog app" very confusing

It's unclear what functionality the dog app is supposed to demonstrate. The rendered page doesn't seem to be related to dogs, and the "search" is unresponsive. None of the buttons appear to work. The compiler outputs a bunch of warnings.

Any specific requirement to get the desktop examples to run on windows? wifi scanner / file explorer

I'm hyped, but cannot get the desktop examples to run.

Both desktop examples exit with 101 on Windows. A window briefly pops up and immediately disappears again.

PS C:\Users\mk\IdeaProjects\rust\example-projects\file-explorer> cargo run
warning: static variable `App` should have an upper case name
  --> src\main.rs:21:8
   |
21 | static App: Component<()> = |cx| {
   |        ^^^ help: convert the identifier to upper case: `APP`
   |
   = note: `#[warn(non_upper_case_globals)]` on by default

warning: `file-explorer` (bin "file-explorer") generated 1 warning
    Finished dev [unoptimized + debuginfo] target(s) in 0.27s
     Running `target\debug\file-explorer.exe`
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: WebView2Error(webview2 error, HRESULT 0x80070002)', C:\Users\mk\.cargo\registry\src\github.com-1ecc6299db9ec823\dioxus-desktop-0.1.6\src\lib.rs:263:68
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: process didn't exit successfully: `target\debug\file-explorer.exe` (exit code: 101)
PS C:\Users\mk\IdeaProjects\rust\example-projects\file-explorer> cargo version
cargo 1.64.0-nightly (85b500cca 2022-07-24)

TodoMVC: How to build and run?

TodoMVC doesn't have any documentation of how to build and run the example.

Simple cargo run fails with following error on Debian 11:

panicked at 'cannot call wasm-bindgen imported functions on non-wasm targets', /home/malaire/.cargo/registry/src/localhost-86e39b43d7f3e3e9/js-sys-0.3.59/src/lib.rs:5365:1

Various issues with getting examples to run

So, while trying to get any example to work, I've met the following issues:

  1. Already reported in one of the other issues, but the dioxus dependency references an invalid relative path.
  2. ios_demo seems to be referencing invalid API. Seems to me like it's been developed during early stages of development and is not compatible with the version 1.0. I get a ton of different compile time errors while trying to compile:
โฏ cargo build
   Compiling dioxus-ios-demo v0.1.0 (/Users/dlossenko/projects/example-projects/ios_demo)
error: expected item, found `;`
   --> src/lib.rs:124:2
    |
124 | };
    |  ^ help: remove this semicolon

error: macro expansion ignores token `compile_error` and any following
   --> src/lib.rs:83:26
    |
79  |       cx.render(rsx!{
    |  _______________-
80  | |         section { class: "todoapp"
81  | |             style { {[include_str!("./style.css")]} }
82  | |             div {
83  | |                 header { class: "header"
    | |                          ^^^^^
...   |
122 | |         }
123 | |     })
    | |     -- help: you might be missing a semicolon here: `;`
    | |_____|
    |       caused by the macro expansion here
    |
    = note: the usage of `rsx!` is likely invalid in expression context

error: This attribute is misisng a trailing comma
  --> src/lib.rs:80:19
   |
80 |         section { class: "todoapp"
   |                   ^^^^^

error: macro expansion ignores token `compile_error` and any following
   --> src/lib.rs:142:19
    |
140 |       cx.render(rsx!{
    |  _______________-
141 | |         li { class: "{completed}"
142 | |             div { class: "view"
    | |                   ^^^^^
143 | |                 input { class: "toggle" r#type: "checkbox" id: "cbg-{todo.id}" checked: "{todo.checked}"
...   |
165 | |         }
166 | |     })
    | |     -- help: you might be missing a semicolon here: `;`
    | |_____|
    |       caused by the macro expansion here
    |
    = note: the usage of `rsx!` is likely invalid in expression context

error: This attribute is misisng a trailing comma
   --> src/lib.rs:141:14
    |
141 |         li { class: "{completed}"
    |              ^^^^^

error[E0425]: cannot find function `use_provide_state` in this scope
  --> src/lib.rs:29:5
   |
29 |     use_provide_state(cx, || Todos::new());
   |     ^^^^^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find function `use_shared_state` in this scope
  --> src/lib.rs:37:17
   |
37 |     let todos = use_shared_state::<Todos>(cx)?;
   |                 ^^^^^^^^^^^^^^^^ not found in this scope

error[E0412]: cannot find type `FC` in this scope
   --> src/lib.rs:131:19
    |
131 | static TodoEntry: FC<TodoEntryProps> = |(cx, props)| {
    |                   ^^ help: a trait with a similar name exists: `Fn`
    |
   ::: /Users/dlossenko/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:67:1
    |
67  | pub trait Fn<Args>: FnMut<Args> {
    | ------------------------------- similarly named trait `Fn` defined here

error[E0425]: cannot find function `use_shared_state` in this scope
   --> src/lib.rs:132:17
    |
132 |     let todos = use_shared_state::<Todos>(cx)?;
    |                 ^^^^^^^^^^^^^^^^ not found in this scope

Some errors have detailed explanations: E0412, E0425.
For more information about an error, try `rustc --explain E0412`.
error: could not compile `dioxus-ios-demo` due to 9 previous errors
  1. Other projects I tried seems to have similar issues when I try to run them on mobile (like the dog-app exits with a compile error in one of the dependencies after I ran cargo mobile init on it and fixed the cargo.toml file.)

It would be much appreciated if you guys tried to run all these examples yourselves and fixed the issues.

How to run?

Problem

I'm trying to find how to run the examples, but it isnt clear.

Steps To Reproduce

TodoMVC

  • I added some comments to #15

ecommerce-site

The readme says:

Run the following commands to serve the application...

npx tailwindcss -i ./input.css -o ./public/tailwind.css --watch
cargo watch -x 'run --release'

This actually two commands. Each should be run in a new terminal.
However, cargo watch -x 'run --release' results in:

error: no such command: `watch`

        Did you mean `fetch`?

        View all installed commands with `cargo --list`

Running either dx build or dx serve results in:

[WARN] You appear to be creating a Dioxus project from scratch; we will use the default config
[INFO] ๐Ÿš… Running build command...
Error: ๐Ÿšซ Serving project failed: error: the wasm*-unknown-unknown targets are not supported by default, you may need to enable the "js" feature. For more information see: https://docs.rs/getrandom/#webassembly-support
   --> /home/anton/.cargo/registry/src/index.crates.io-6f17d22bba15001f/getrandom-0.2.11/src/lib.rs:290:9
    |
290 | / ...   compile_error!("the wasm*-unknown-unknown targets are not supported by \
291 | | ...                   default, you may need to enable the \"js\" feature. \
292 | | ...                   For more information see: \
293 | | ...                   https://docs.rs/getrandom/#webassembly-support");
    | |______________________________________________________________________^

Questionnaire

  • I'm interested in fixing this myself but don't know where to start

I'm beginning my rust journey, so I'm not sure of what commands are the correct ones. However, I'm familiar with good, clear, concise getting started guides. So maybe I can help

Out of root reference in TOML

Hi,
I can't build the example. I assume it's because of the Cargo.toml file.

[dependencies]
dioxus = { path = "../../../dioxus", features = ["desktop"] }

Have a great day.

Todo app: marking item as done toggles editing

Steps to reproduce:

  • Open todo app and create an item
  • Mark the item as done by selecting its checkbox

Result: Item is marked as done, but also activates editing โ€“ the content becomes an editable input field, as if it had been clicked.

Expected result: Item is marked as done. Editing does not begin.

Windows panic: file-explorer

Version: rustc 1.59.0-nightly (e012a191d 2022-01-06)
System: Windows 10
Target: x86_64-pc-windows-msvc

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: WebView2Error(webview2 error, HRESULT 0x80070002)', C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\dioxus-desktop-0.1.4\src\lib.rs:355:14
stack backtrace:
   0:     0x7ff789c6e01f - std::backtrace_rs::backtrace::dbghelp::trace
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\/library\std\src\..\..\backtrace\src\backtrace\dbghelp.rs:98
   1:     0x7ff789c6e01f - std::backtrace_rs::backtrace::trace_unsynchronized
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\/library\std\src\..\..\backtrace\src\backtrace\mod.rs:66
   2:     0x7ff789c6e01f - std::sys_common::backtrace::_print_fmt
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\/library\std\src\sys_common\backtrace.rs:67
   3:     0x7ff789c6e01f - std::sys_common::backtrace::_print::impl$0::fmt
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\/library\std\src\sys_common\backtrace.rs:46
   4:     0x7ff789c8547a - core::fmt::write
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\/library\core\src\fmt\mod.rs:1168
   5:     0x7ff789c69dc8 - std::io::Write::write_fmt<std::sys::windows::stdio::Stderr>
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\/library\std\src\io\mod.rs:1660
   6:     0x7ff789c70bbb - std::sys_common::backtrace::_print
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\/library\std\src\sys_common\backtrace.rs:49
   7:     0x7ff789c70bbb - std::sys_common::backtrace::print
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\/library\std\src\sys_common\backtrace.rs:36
   8:     0x7ff789c70bbb - std::panicking::default_hook::closure$1
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\/library\std\src\panicking.rs:211
   9:     0x7ff789c706b4 - std::panicking::default_hook
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\/library\std\src\panicking.rs:228
  10:     0x7ff789c710bc - std::panicking::rust_panic_with_hook
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\/library\std\src\panicking.rs:606
  11:     0x7ff789c70f7b - std::panicking::begin_panic_handler::closure$0
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\/library\std\src\panicking.rs:502
  12:     0x7ff789c6e967 - std::sys_common::backtrace::__rust_end_short_backtrace<std::panicking::begin_panic_handler::closure$0,never$>
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\/library\std\src\sys_common\backtrace.rs:139
  13:     0x7ff789c70c79 - std::panicking::begin_panic_handler
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\/library\std\src\panicking.rs:498
  14:     0x7ff789c8ebe0 - core::panicking::panic_fmt
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\/library\core\src\panicking.rs:107
  15:     0x7ff789c8ecf3 - core::result::unwrap_failed
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\/library\core\src\result.rs:1690
  16:     0x7ff7899a69f5 - enum$<core::result::Result<wry::webview::WebView,enum$<wry::Error> > >::unwrap<wry::webview::WebView,enum$<wry::Error> >
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\library\core\src\result.rs:1018
  17:     0x7ff789969a5b - dioxus_desktop::DesktopController::new_window
                               at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\dioxus-desktop-0.1.4\src\lib.rs:318
  18:     0x7ff789935867 - dioxus_desktop::launch_with_props::closure$0<tuple$<>,file_explorer::main::closure$0>
                               at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\dioxus-desktop-0.1.4\src\lib.rs:167
  19:     0x7ff789952371 - tao::platform_impl::platform::event_loop::impl$2::run_return::closure$0<enum$<dioxus_desktop::UserWindowEvent>,dioxus_desktop::launch_with_props::closure$0>
                               at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\tao-0.5.2\src\platform_impl\windows\event_loop.rs:219
  20:     0x7ff7899626d4 - alloc::boxed::impl$45::call_mut<tuple$<enum$<tao::event::Event<enum$<dioxus_desktop::UserWindowEvent> > >,ref_mut$<enum$<tao::event_loop::ControlFlow> > >,dyn$<core::ops::function::FnMut<tuple$<enum$<tao::event::Event<enum$<dioxus_desktop::UserWindowEvent
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\library\alloc\src\boxed.rs:1861
  21:     0x7ff7899801d7 - tao::platform_impl::platform::event_loop::runner::impl$3::call_event_handler::closure$0<enum$<dioxus_desktop::UserWindowEvent> >
                               at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\tao-0.5.2\src\platform_impl\windows\event_loop\runner.rs:249
  22:     0x7ff78998f184 - core::panic::unwind_safe::impl$23::call_once<tuple$<>,tao::platform_impl::platform::event_loop::runner::impl$3::call_event_handler::closure$0>
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\library\core\src\panic\unwind_safe.rs:271
  23:     0x7ff7899a83b1 - std::panicking::try::do_call<core::panic::unwind_safe::AssertUnwindSafe<tao::platform_impl::platform::event_loop::runner::impl$3::call_event_handler::closure$0>,tuple$<> >
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\library\std\src\panicking.rs:406
  24:     0x7ff7899a8983 - std::panicking::panicking
  25:     0x7ff7899a7f4b - std::panicking::try<tuple$<>,core::panic::unwind_safe::AssertUnwindSafe<tao::platform_impl::platform::event_loop::runner::impl$3::call_event_handler::closure$0> >
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\library\std\src\panicking.rs:370
  26:     0x7ff789973444 - std::panic::catch_unwind<core::panic::unwind_safe::AssertUnwindSafe<tao::platform_impl::platform::event_loop::runner::impl$3::call_event_handler::closure$0>,tuple$<> >
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\library\std\src\panic.rs:133
  27:     0x7ff78997f43b - tao::platform_impl::platform::event_loop::runner::EventLoopRunner<enum$<dioxus_desktop::UserWindowEvent> >::catch_unwind<enum$<dioxus_desktop::UserWindowEvent>,tuple$<>,tao::platform_impl::platform::event_loop::runner::impl$3::call_event_handler::closure$
                               at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\tao-0.5.2\src\platform_impl\windows\event_loop\runner.rs:155
  28:     0x7ff78997ff03 - tao::platform_impl::platform::event_loop::runner::EventLoopRunner<enum$<dioxus_desktop::UserWindowEvent> >::call_event_handler<enum$<dioxus_desktop::UserWindowEvent> >
                               at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\tao-0.5.2\src\platform_impl\windows\event_loop\runner.rs:243
  29:     0x7ff789980d32 - tao::platform_impl::platform::event_loop::runner::EventLoopRunner<enum$<dioxus_desktop::UserWindowEvent> >::call_new_events<enum$<dioxus_desktop::UserWindowEvent> >
                               at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\tao-0.5.2\src\platform_impl\windows\event_loop\runner.rs:395
  30:     0x7ff789980721 - tao::platform_impl::platform::event_loop::runner::EventLoopRunner<enum$<dioxus_desktop::UserWindowEvent> >::move_state_to<enum$<dioxus_desktop::UserWindowEvent> >
                               at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\tao-0.5.2\src\platform_impl\windows\event_loop\runner.rs:311
  31:     0x7ff78997fa87 - tao::platform_impl::platform::event_loop::runner::EventLoopRunner<enum$<dioxus_desktop::UserWindowEvent> >::poll<enum$<dioxus_desktop::UserWindowEvent> >
                               at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\tao-0.5.2\src\platform_impl\windows\event_loop\runner.rs:204
  32:     0x7ff789951ef1 - tao::platform_impl::platform::event_loop::EventLoop<enum$<dioxus_desktop::UserWindowEvent> >::run_return<enum$<dioxus_desktop::UserWindowEvent>,dioxus_desktop::launch_with_props::closure$0>
                               at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\tao-0.5.2\src\platform_impl\windows\event_loop.rs:228
  33:     0x7ff789951d5f - tao::platform_impl::platform::event_loop::EventLoop<enum$<dioxus_desktop::UserWindowEvent> >::run<enum$<dioxus_desktop::UserWindowEvent>,dioxus_desktop::launch_with_props::closure$0>
                               at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\tao-0.5.2\src\platform_impl\windows\event_loop.rs:203
  34:     0x7ff7899514b5 - tao::event_loop::EventLoop<enum$<dioxus_desktop::UserWindowEvent> >::run<enum$<dioxus_desktop::UserWindowEvent>,dioxus_desktop::launch_with_props::closure$0>
                               at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\tao-0.5.2\src\event_loop.rs:151
  35:     0x7ff78993541e - dioxus_desktop::launch_with_props<tuple$<>,file_explorer::main::closure$0>
                               at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\dioxus-desktop-0.1.4\src\lib.rs:163
  36:     0x7ff7899351ee - dioxus_desktop::launch_cfg<file_explorer::main::closure$0>
                               at C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\dioxus-desktop-0.1.4\src\lib.rs:124
  37:     0x7ff789935d00 - file_explorer::main
                               at C:\dev\example-projects\file-explorer\src\main.rs:12
  38:     0x7ff78994e41b - core::ops::function::FnOnce::call_once<void (*)(),tuple$<> >
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\library\core\src\ops\function.rs:227
  39:     0x7ff78995177b - std::sys_common::backtrace::__rust_begin_short_backtrace<void (*)(),tuple$<> >
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\library\std\src\sys_common\backtrace.rs:123
  40:     0x7ff789939261 - std::rt::lang_start::closure$0<tuple$<> >
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\library\std\src\rt.rs:145
  41:     0x7ff789c6d87f - core::ops::function::impls::impl$2::call_once
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\library\core\src\ops\function.rs:259
  42:     0x7ff789c6d87f - std::panicking::try::do_call
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\/library\std\src\panicking.rs:406
  43:     0x7ff789c6d87f - std::panicking::try
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\/library\std\src\panicking.rs:370
  44:     0x7ff789c6d87f - std::panic::catch_unwind
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\/library\std\src\panic.rs:133
  45:     0x7ff789c6d87f - std::rt::lang_start_internal::closure$2
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\/library\std\src\rt.rs:128
  46:     0x7ff789c6d87f - std::panicking::try::do_call
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\/library\std\src\panicking.rs:406
  47:     0x7ff789c6d87f - std::panicking::try
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\/library\std\src\panicking.rs:370
  48:     0x7ff789c6d87f - std::panic::catch_unwind
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\/library\std\src\panic.rs:133
  49:     0x7ff789c6d87f - std::rt::lang_start_internal
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\/library\std\src\rt.rs:128
  50:     0x7ff78993922f - std::rt::lang_start<tuple$<> >
                               at /rustc/e012a191d768adeda1ee36a99ef8b92d51920154\library\std\src\rt.rs:144
  51:     0x7ff7899369e6 - main
  52:     0x7ff789c8cc94 - invoke_main
                               at d:\agent\_work\63\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
  53:     0x7ff789c8cc94 - __scrt_common_main_seh
                               at d:\agent\_work\63\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
  54:     0x7ffe155f7034 - BaseThreadInitThunk
  55:     0x7ffe161fcec1 - RtlUserThreadStart
error: process didn't exit successfully: `target\debug\file-explorer.exe` (exit code: 101)

Duplicated examples in the main Dioxus repo

The Problem

There are several examples that are duplicated or remade in the main Dioxus repo:

Proposed Solution

There are several advantages to having these examples in the main repo:

  • CI checks the examples to insure they are correct every release
  • The examples in the main repo are more discoverable
  • The main repo could be a single place to get all examples

We could move all examples into the main repo and depreciate this repo.

Wifi Scanner: no networks found on Ubuntu

When running the wifi scanner example on Ubuntu, it shows "no networks found" despite there being available Wifi connections according to the OS.

Steps to reproduce:

  • Run Wifi scanner
  • Click "Scan" and wait

Expected: A list of available Wifi connections

Actual result: "No networks found. Try scanning"

ai generator fails when image is created

Problem

Application panics with message:

     Running `/Users/hughbrown/workspace/hughdbrown/rust/example-projects/target/debug/image_generator_open_ai`
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error("missing field `created`", line: 8, column: 1)', image_generator_open_ai/src/main.rs:127:66

Steps To Reproduce

Click on Generate image button

Expected behavior

Not sure: I've never seen the app run successfully.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment:

  • Dioxus version: master
  • Rust version: 1.71.0
  • OS info: MacOS
  • App platform: desktop

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.