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] Tauri 2.1.0 BaseDirectory.Home error #11633

Closed
nyssance opened this issue Nov 9, 2024 · 2 comments · Fixed by #11645
Closed

[bug] Tauri 2.1.0 BaseDirectory.Home error #11633

nyssance opened this issue Nov 9, 2024 · 2 comments · Fixed by #11645
Assignees
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@nyssance
Copy link

nyssance commented Nov 9, 2024

Describe the bug

const contents = await readTextFile(path, { baseDir: BaseDirectory.Home })

macOS
in v2.0.6 is /Users/myusername/path
in v2.1.0 is /Users/myusername/Library/Fonts/path

[2024-11-09][15:17:20][ERROR][log@http://localhost:5173/node_modules/.vite/deps/@tauri-apps_plugin-log.js:62:20] failed to open file at path: /Users/myusername/Library/Fonts/OneDrive/test.json with error: No such file or directory (os error 2)

Reproduction

No response

Expected behavior

No response

Full tauri info output

[✔] Environment
    - OS: Mac OS 15.1.0 arm64 (X64)
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.82.0 (f6e511eec 2024-10-15)
    ✔ cargo: 1.82.0 (8f40fc59f 2024-08-21)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 23.1.0
    - npm: 10.9.0
    - bun: 1.1.34

[-] Packages
    - tauri 🦀: 2.1.0
    - tauri-build 🦀: 2.0.3
    - wry 🦀: 0.47.0
    - tao 🦀: 0.30.6
    - tauri-cli 🦀: 1.6.1
    - @tauri-apps/api : 2.1.0
    - @tauri-apps/cli : 2.1.0

[-] Plugins
    - tauri-plugin-deep-link 🦀: 2.0.1
    - @tauri-apps/plugin-deep-link : 2.0.0
    - tauri-plugin-single-instance 🦀: 2.0.1
    - @tauri-apps/plugin-single-instance : not installed!
    - tauri-plugin-dialog 🦀: 2.0.3
    - @tauri-apps/plugin-dialog : 2.0.1
    - tauri-plugin-fs 🦀: 2.0.3
    - @tauri-apps/plugin-fs : 2.0.2
    - tauri-plugin-store 🦀: 2.1.0
    - @tauri-apps/plugin-store : 2.1.0
    - tauri-plugin-log 🦀: 2.0.2
    - @tauri-apps/plugin-log : 2.0.0
    - tauri-plugin-shell 🦀: 2.0.2
    - @tauri-apps/plugin-shell : 2.0.1
    - tauri-plugin-autostart 🦀: 2.0.1
    - @tauri-apps/plugin-autostart : 2.0.0
    - tauri-plugin-os 🦀: 2.0.1
    - @tauri-apps/plugin-os : 2.0.0

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../build
    - devUrl: http://localhost:5173/
    - framework: Svelte
    - bundler: Vite

Stack trace

No response

Additional context

No response

@nyssance nyssance added status: needs triage This issue needs to triage, applied to new issues type: bug labels Nov 9, 2024
@FabianLars
Copy link
Member

Please include the output of the tauri info command as required by the issue template.

@amrbashir amrbashir self-assigned this Nov 9, 2024
@nyssance
Copy link
Author

Please include the output of the tauri info command as required by the issue template.

Updated.

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
3 participants