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
I would guess this is because what ends up getting executed is:
![echofoo]
![echobar]
And the indent on the second line is invalid python syntax?
I would say this is probably a pretty uncommon edge case, but I encountered it while trying to install the neovim plugin neovim-treesitter which runs shell commands from lua, and one of them follows the above pattern with the newline and space. (I might open a PR on that repo to remove the space, but this still seems like a potential bug with xonsh anyway.) FWIW I already have a workaround for that, I can force vim to use bash as its shell for command execution.
xonfig
Expected Behavior
Running from bash:
Should result in:
i.e. whitespace like that should be ignored around a semicolon
Current Behavior
Result is a
SyntaxError
:I would guess this is because what ends up getting executed is:
And the indent on the second line is invalid python syntax?
I would say this is probably a pretty uncommon edge case, but I encountered it while trying to install the neovim plugin neovim-treesitter which runs shell commands from lua, and one of them follows the above pattern with the newline and space. (I might open a PR on that repo to remove the space, but this still seems like a potential bug with xonsh anyway.) FWIW I already have a workaround for that, I can force vim to use bash as its shell for command execution.
Traceback (if applicable)
Steps to Reproduce
From bash:
From xonsh:
For community
⬇️ Please click the 👍 reaction instead of leaving a
+1
or 👍 commentThe text was updated successfully, but these errors were encountered: