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

Rust panics when bun tauri info is run #9396

Closed
pavi2410 opened this issue Apr 7, 2024 · 0 comments · Fixed by #9412
Closed

Rust panics when bun tauri info is run #9396

pavi2410 opened this issue Apr 7, 2024 · 0 comments · Fixed by #9412

Comments

@pavi2410
Copy link

pavi2410 commented Apr 7, 2024

When I run bun tauri info command on Windows, it panics with the following stacktrace. I do not have Node installed.

D:\Projects\Kodular\Jigsaw git:[main]
bun tauri info
$ tauri info
thread '<unnamed>' panicked at src\info\env_nodejs.rs:45:55:
called `Result::unwrap()` on an `Err` value: Error("empty string, expected a semver version")
stack backtrace:
   0:     0x7ff8e90b1d09 - napi_register_module_v1
   1:     0x7ff8e8c027cd - <unknown>
   2:     0x7ff8e908f2b1 - napi_register_module_v1
   3:     0x7ff8e90b68ea - napi_register_module_v1
   4:     0x7ff8e90b621f - napi_register_module_v1
   5:     0x7ff8e90b5d7b - napi_register_module_v1
   6:     0x7ff8e90b6c63 - napi_register_module_v1
   7:     0x7ff8e90b6b09 - napi_register_module_v1
   8:     0x7ff8e90b6a49 - napi_register_module_v1
   9:     0x7ff8e90b6a32 - napi_register_module_v1
  10:     0x7ff8e95e57d7 - napi_register_module_v1
  11:     0x7ff8e95e5d83 - napi_register_module_v1
  12:     0x7ff8e935dff1 - napi_register_module_v1
  13:     0x7ff8e93578d4 - napi_register_module_v1
  14:     0x7ff8e9351f2d - napi_register_module_v1
  15:     0x7ff8e8b24956 - <unknown>
  16:     0x7ff8e8b2c646 - <unknown>
  17:     0x7ff8e90ada0c - napi_register_module_v1
  18:     0x7ff97e68257d - BaseThreadInitThunk
  19:     0x7ff97f02aa58 - RtlUserThreadStart

Bug source:

let version = semver::Version::parse(v).unwrap();

Environment:
Windows 11 64-bit
Bun 1.1.2

amrbashir added a commit that referenced this issue Apr 18, 2024
* chore: port PR template from `dev` branch (#9004)

* fix(runtime-wry): avoid panic during clipboard initialization on wayland (#9003)

closes #8964

* ci: downgrade thread_local to 1.1.7 in msrv list (#9012)

* Apply Version Updates From Current Changes (v1) (#9013)

Co-authored-by: lucasfernog <[email protected]>

* fix(bundler): escape potentially problematic strings in an XML (#9040)

* fix(bundler): escape potentially problematic strings in an XML (#9030)

- replace characters invalid in XML with their escaped form to properly bundle resources with such characters in their pathnames.

* change file

* fix(cli): use `matched_path_or_any_parents` when checking if a file is ignored (#8903)

* fix: taurignore ignoreing folders not working for watch

* docs: add to changes

* fix: panic: path is expected to be under the root

* Update taurignore-ignoring-folders-not-working-for-watch.md

* Update taurignore-ignoring-folders-not-working-for-watch.md

* fix(cli): migrate to stable features of `log` crate (#9119)

* fix(cli): migrate to stable features of `log` crate

* to_cow_str

* Apply Version Updates From Current Changes (v1) (#9074)

Co-authored-by: lucasfernog <[email protected]>

* fix(core/path): remove suffix in basename only once (#9166)

* fix(core/path): remove suffix in basename only once

ref: #9064

* Update tooling/api/src/path.ts

---------

Co-authored-by: Lucas Fernandes Nogueira <[email protected]>

* fix(cli): Clone Options struct after mutating it. (#9188)

* fix(bundler): Fix nsis resource paths on non-windows build systems. (#9281)

* fix(bundler): Fix nsis resource paths on non-windows build systems.

* remove leftover from alternative

* fix(bundler/nsis): Don't use /R flag on installation dir (#9282)

* fix(cli): upgrade heck to better support Chinese/Japanese prodcut name on Linux (#9298)

* chore: fix clippy false positive (#9329)

* fix(cli/info): fix crash when checking node version (#9411)

closes #9396

---------

Co-authored-by: Amr Bashir <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: lucasfernog <[email protected]>
Co-authored-by: bifs <[email protected]>
Co-authored-by: anatawa12 <[email protected]>
Co-authored-by: Lucas Fernandes Nogueira <[email protected]>
Co-authored-by: Jet Li <[email protected]>
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

Successfully merging a pull request may close this issue.

1 participant