Unable to *warpify* the PowerShell Core snap.
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 65.1k
- Forks
- 5.6k
- PR merge metrics
- PR metrics pending
Description
Discord username (optional)
discord.com/users/798720532848705576 [^1]
Describe the bug
-
#!/usr/bin/env sh pwsh -
PowerShell 7.4.1 PS /home/RokeJulianLockhart> [ -z $WARP_BOOTSTRAPPED ] && echo $0 | command -p grep -q zsh && unsetopt ZLE && eval 'setopt hist_ignore_space; unsetopt ZLE; WARP_IS_SUBSHELL=1; WARP_SESSION_ID="$(command -p date +%s)$RANDOM"; _hostname=$(command -pv hostname >/dev/null 2>&1 && command -p hostname 2>/dev/null || command -p uname -n); _user=$(command -pv whoami >/dev/null 2>&1 && command -p whoami 2>/dev/null || echo $USER); _msg=$(printf "{\"hook\": \"InitShell\", \"value\": {\"session_id\": $WARP_SESSION_ID, \"shell\": \"zsh\", \"user\": \"$_user\", \"hostname\": \"$_hostname\", \"is_subshell\": true}}" | command -p od -An -v -tx1 | command -p tr -d " \n"); printf '"'"'\x1b\x50\x24\x64%s\x9c'"'"' "$_msg"; unset _hostname _user _msg;' || [ -z $WARP_BOOTSTRAPPED ] && echo $0 | command -p grep -q bash && eval 'command -p stty raw;unset PROMPT_COMMAND;HISTCONTROL=ignorespace;HISTIGNORE=" *";WARP_IS_SUBSHELL=1;WARP_SESSION_ID="$(command -p date +%s)$RANDOM";_hostname=$(command -pv hostname >/dev/null 2>&1 && command -p hostname 2>/dev/null || command -p uname -n);_user=$(command -pv whoami >/dev/null 2>&1 && command -p whoami 2>/dev/null || echo $USER);_msg=$(printf "{\"hook\": \"InitShell\", \"value\": {\"session_id\": $WARP_SESSION_ID, \"shell\": \"bash\", \"user\": \"$_user\", \"hostname\": \"$_hostname\", \"is_subshell\": true}}" | command -p od -An -v -tx1 | command -p tr -d " \n");printf '"'"'\x1b\x50\x24\x64%s\x9c'"'"' $_msg;unset _hostname _user _msg;' || [ -z $WARP_BOOTSTRAPPED ] && [ $FISH_VERSION ] && eval 'set -g WARP_SESSION_ID (random);set _hostname $(command -v hostname >/dev/null 2>&1 && command hostname 2>/dev/null || uname -n);set _user $(command -v whoami >/dev/null 2>&1 && command whoami 2>/dev/null || echo $USER);set _msg $(echo -n "{\"hook\": \"InitShell\", \"value\": {\"session_id\": $WARP_SESSION_ID, \"user\": \"$_user\", \"hostname\": \"$_hostname\", \"shell\": \"fish\", \"is_subshell\": true}}" | od -An -v -tx1 | command tr -d " \n");echo -n \u1b\u50\u24"d$_msg"\u9c;set -e _hostname _user _msg;' ParserError: Line | 1 | [ -z $WARP_BOOTSTRAPPED ] && echo $0 | command -p grep -q zsh && uns … | ~ | Missing type name after '['.
To reproduce
- Install
cpe:/o:opensuse:tumbleweed:20240220. - Install
docs.warp.dev/getting-started/getting-started-with-warp#opensuse-and-sle-based-distributionsusingwarp-terminal-v0.2024.02.20.08.01.stable_01-1.x86_64.rpm. - Invoke
/usr/share/applications/dev.warp.Warp.desktop. - Invoke the configuration pseudo-window.
- Select "Appearance".
- Scroll to "Text".
- Check "View all available system fonts".
- Attempt to apply one of the aforementioned font aliases.
Expected behavior
I expect to be able to use the Warp intelligence within the PowerShell instance.
Screenshots
No response
Operating system
Linux
Operating system and version
cpe:/o:opensuse:tumbleweed:20240220
Shell Version
#!/usr/bin/env sh
sudo snap install powershell --channel=7.4.1/stable --revision 267 --classic
Current Warp version
v0.2024.02.20.08.01.stable_01, from warp-0.6.2-1.2.src
Regression
No, this bug or issue has existed throughout my experience using Warp
Recent working Warp date
Never.
Additional context
No response
Does this block you from using Warp daily?
Yes, this issue prevents me from using Warp daily.
Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)
Yes, this I confirmed this only happens in Warp, not other terminals.
Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e
None
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with the PowerShell 7.4.1 snap on openSUSE Tumbleweed using the reported Warp version. Start by tracing the shell bootstrap command shown in the ParserError and determine why PowerShell receives zsh, bash, and fish syntax. Done means Warp intelligence initializes in that PowerShell session without a ParserError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100