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
After adding exec($(carapace _carapace)) to ~/.config/xonsh/rc.xsh, Xonsh throws exceptions on initialization (examples with minimal traceback below). Happy to bring more detail if needed.
Expected Behavior
Xonsh should initialize without exceptions when carapace is added to the run control.
Steps To Reproduce
To try and track down what was happening, I added echo statements — this is <whatever the file is> — to the top of my Bash and Zsh run control files. My login shell is Zsh, but I do not use it — there's nothing in the run control file except the echo. All the examples below are run from iTerm2 profiles dedicated to the shell indicated.
Examples with Bash, Zsh, and Elvish run control files available:
From Xonsh:
thisisbashrcxonsh: Forfulltracebackset: $XONSH_SHOW_TRACEBACK=TrueFile"<string>", line3get-env () { echo"${!1}"; } # this looks like Elvish, but I'm not getting a debug print statement from my `rc.elv`^SyntaxError: invalidsyntaxsyntaxerrorinxonshruncontrolfile'/Users/j0m0aam/.config/xonsh/rc.xsh': invalidsyntax (<string>, line3)
~
❯
Examples without Bash, Zsh, and Elvish run control files available:
From Xonsh:
xonsh: For full traceback set: $XONSH_SHOW_TRACEBACK = True
File "<string>", line 3
get-env () { echo "${!1}"; }
^
SyntaxError: invalid syntax
syntax error in xonsh run control file '<my home dir>/.config/xonsh/rc.xsh': invalid syntax (<string>, line 3)
From Zsh:*
~ % ~/.local/xonsh-env/bin/xonsh
xonsh: For full traceback set: $XONSH_SHOW_TRACEBACK = True
File "<string>", line 3
get-env () { echo "${(P)1}"; }
^
SyntaxError: invalid syntax
syntax error in xonsh run control file '<my home dir>/.config/xonsh/rc.xsh': invalid syntax (<string>, line 3)
~
❯
~ % ~/.local/xonsh-env/bin/xonsh --no-rc
~ @
Version
No response
OS
Darwin
Linux
Termux
Windows
Shell
Bash
Cmd
Elvish
Fish
Nushell
Oil
Powershell
Xonsh
Zsh
Anything else?
No response
Polar
The text was updated successfully, but these errors were encountered:
JeffMelton
changed the title
<title>Xonsh throws exceptions on initialization only when carapace is added to the run control
Xonsh throws exceptions on initialization only when carapace is added to the run control
Dec 29, 2024
Current Behavior
After adding
exec($(carapace _carapace))
to~/.config/xonsh/rc.xsh
, Xonsh throws exceptions on initialization (examples with minimal traceback below). Happy to bring more detail if needed.Expected Behavior
Xonsh should initialize without exceptions when carapace is added to the run control.
Steps To Reproduce
To try and track down what was happening, I added echo statements —
this is <whatever the file is>
— to the top of my Bash and Zsh run control files. My login shell is Zsh, but I do not use it — there's nothing in the run control file except the echo. All the examples below are run from iTerm2 profiles dedicated to the shell indicated.Examples with Bash, Zsh, and Elvish run control files available:
From Xonsh:
From Zsh:
Examples without Bash, Zsh, and Elvish run control files available:
From Xonsh:
From Zsh:*
Version
No response
OS
Shell
Anything else?
No response
Polar
The text was updated successfully, but these errors were encountered: