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

[bug] use of unstable library feature 'scoped_threads' in ignore crate #6050

Closed
isaacfink opened this issue Jan 13, 2023 · 3 comments
Closed
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@isaacfink
Copy link

Describe the bug

build fails on brand new project

Reproduction

  1. pnpm create tauri-app
  2. pnpm i
  3. pnpm run tauri dev

Expected behavior

App does not start, I am new to tauri so i don't know what to expect

Platform and versions

> launcher@0.0.0 tauri /Users/isaac/Desktop/projects/launcher
> tauri "info"


Environment
  › OS: Mac OS 13.0.1 X64
  › Node.js: 16.18.0
  › npm: 8.19.2
  › pnpm: 6.28.0
  › yarn: Not installed!
  › rustup: Not installed!
  › rustc: 1.62.1
  › cargo: 1.62.0
  › Rust toolchain: 

Packages
  › @tauri-apps/cli [NPM]: 1.2.2
  › @tauri-apps/api [NPM]: 1.2.0
  › tauri [RUST]: 1.2.3,
  › tauri-build [RUST]: 1.2.1,
  › tao [RUST]: 0.15.8,
  › wry [RUST]: 0.23.4,

App
  › build-type: bundle
  › CSP: unset
  › distDir: ../build
  › devPath: http://localhost:1420/
  › framework: Svelte
  › bundler: Vite

App directory structure
  ├─ node_modules
  ├─ static
  ├─ src-tauri
  ├─ .svelte-kit
  ├─ .vscode
  └─ src

Stack trace

> launcher@0.0.0 tauri /Users/isaac/Desktop/projects/launcher
> tauri "dev"

     Running BeforeDevCommand (`pnpm dev`)

> launcher@0.0.0 dev /Users/isaac/Desktop/projects/launcher
> vite dev



  VITE v4.0.4  ready in 528 ms

  ➜  Local:   http://127.0.0.1:1420/
  ➜  Network: use --host to expose
        Info Watching /Users/isaac/Desktop/projects/launcher/src-tauri for changes...
   Compiling ignore v0.4.19
   Compiling html5ever v0.25.2
error[E0658]: use of unstable library feature 'scoped_threads'
    --> /Users/isaac/.cargo/registry/src/github.com-1ecc6299db9ec823/ignore-0.4.19/src/walk.rs:1285:9
     |
1285 |         std::thread::scope(|s| {
     |         ^^^^^^^^^^^^^^^^^^
     |
     = note: see issue #93203 <https://github.com/rust-lang/rust/issues/93203> for more information

error[E0658]: use of unstable library feature 'scoped_threads'
    --> /Users/isaac/.cargo/registry/src/github.com-1ecc6299db9ec823/ignore-0.4.19/src/walk.rs:1299:32
     |
1299 |                 handles.push(s.spawn(|| worker.run()));
     |                                ^^^^^
     |
     = note: see issue #93203 <https://github.com/rust-lang/rust/issues/93203> for more information

error[E0658]: use of unstable library feature 'scoped_threads'
    --> /Users/isaac/.cargo/registry/src/github.com-1ecc6299db9ec823/ignore-0.4.19/src/walk.rs:1302:24
     |
1302 |                 handle.join().unwrap();
     |                        ^^^^
     |
     = note: see issue #93203 <https://github.com/rust-lang/rust/issues/93203> for more information

For more information about this error, try `rustc --explain E0658`.
error: could not compile `ignore` due to 3 previous errors
warning: build failed, waiting for other jobs to finish...

 ELIFECYCLE  Command failed with exit code 101.


### Additional context

the same thing also happens when installing through cargo in the src-tauri directory
@isaacfink isaacfink added status: needs triage This issue needs to triage, applied to new issues type: bug labels Jan 13, 2023
@amrbashir
Copy link
Member

amrbashir commented Jan 13, 2023

run cargo update -p ignore --precise 0.4.18 inside src-tauri until next release.

@isaacfink
Copy link
Author

isaacfink commented Jan 14, 2023

@amrbashir It worked but the correct command is cargo update -p ignore --precise 0.4.18 thanks

@amrbashir amrbashir changed the title pnpm tauri dev exits with error on clean install [bug] use of unstable library feature 'scoped_threads' in ignore crate Jan 16, 2023
@amrbashir
Copy link
Member

closed by 7ccfa2f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

2 participants