You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to launch an app built with useBootstrapper enabled, the app fails to start. Running __bootstrapper directly results in a lot of errors.
Without the bootstrapper, custom commands fail with No such file or directory (os error 2).
Reproduction
Running __bootstrapper directly results in errors:
error log
$ /Users/fractal/dev/Projects/seamless-desktop/src-tauri/target/debug/bundle/macos/Seamless.app/Contents/MacOS/__bootstrapper/Users/fractal/.zprofile: eval: line 57: conditional binary operator expected/Users/fractal/.zprofile: eval: line 57: syntax error near `PS1'/Users/fractal/.zprofile: eval: line 57: ` [[ -v PS1 ]] && PS1="$FIG_USER_PS1"'/Users/fractal/.zshrc: line 10: ${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh: bad substitutionError: Oh My Zsh can't be loaded from: sh. You need to run zsh instead.Here's the process tree:
PPID PID COMMAND1 10063 /Applications/iTerm.app/Contents/MacOS/iTerm210063 10070 /Users/fractal/Library/Application Support/iTerm2/iTermServer-3.5.0beta5 /Users/fractal/Library/Application Support/iTerm2/iterm2-daemon-1.sock10070 10072 /usr/bin/login -fqpl fractal /Applications/iTerm.app/Contents/MacOS/ShellLauncher --launch_shell10072 10073 /bin/zsh (figterm)10073 10081 /bin/zsh --login10081 15158 sh /Users/fractal/dev/Projects/seamless-desktop/src-tauri/target/debug/bundle/macos/Seamless.app/Contents/MacOS/__bootstrapper/Users/fractal/.p10k.zsh: line 15: local: can only be used in a function/Users/fractal/.p10k.zsh: line 19: builtin: setopt: not a shell builtin/Users/fractal/.p10k.zsh: line 21: syntax error near unexpected token `)'/Users/fractal/.p10k.zsh: line 21: `() {'/usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh: line 31: alias: -L: invalid optionalias: usage: alias [-p] [name[=value] ... ]/usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh: line 36: unalias: -m: invalid optionunalias: usage: unalias [-a] name [name ...]/usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh: line 39: 0=${(%):-%N}: bad substitution/usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh: line 42: /.version: No such file or directory/usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh: line 42: typeset: -g: invalid optiontypeset: usage: typeset [-afFirtx] [-p] name[=value] .../usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh: line 43: /.revision-hash: No such file or directory/usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh: line 43: typeset: -g: invalid optiontypeset: usage: typeset [-afFirtx] [-p] name[=value] .../usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh: line 58: autoload: command not found/usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh: line 59: is-at-least: command not found/usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh: line 62: typeset: -g: invalid optiontypeset: usage: typeset [-afFirtx] [-p] name[=value] .../usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh: line 66: typeset: -g: invalid optiontypeset: usage: typeset [-afFirtx] [-p] name[=value] .../usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh: line 81: syntax error near unexpected token `}'/usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh: line 81: ` if [[ $WIDGET == zle-isearch-update ]] && { $zsh_highlight__pat_static_bug || ! (( $+ISEARCHMATCH_ACTIVE )) }; then'/Users/fractal/.zshrc: line 243: autoload: command not found/Users/fractal/.zshrc: line 251: `p10k-on-pre-prompt': not a valid identifier
Without the bootstrapper:
Test example
<!-- index.svelte --><scriptlang="ts">import{Command}from'@tauri-apps/api/shell'asyncfunctiontest(){try{awaitnewCommand('echo','test').execute()}catch(e){console.error('Test: ',e)// `Test: - No such file or directory (os error 2)`}}</script><buttonon:click={test}> Test </button>
Describe the bug
When attempting to launch an app built with
useBootstrapper
enabled, the app fails to start. Running__bootstrapper
directly results in a lot of errors.Without the bootstrapper, custom commands fail with
No such file or directory (os error 2)
.Reproduction
Running
__bootstrapper
directly results in errors:error log
Without the bootstrapper:
Test example
With this scope:
A debug build shows the following error in the console:
No such file or directory (os error 2)
Expected behavior
The app to start when clicked.
Platform and versions
Stack trace
No response
Additional context
I'm using the latest version of SvelteKit with SSR disabled.
The text was updated successfully, but these errors were encountered: