warpdotdev / warpdotdev/warp

Unable to *warpify* the PowerShell Core snap.

Open
#4,225 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:agent bug ready-to-implement triaged
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
  1. #!/usr/bin/env sh
    pwsh
    
  2. 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
  1. Install cpe:/o:opensuse:tumbleweed:20240220.
  2. Install docs.warp.dev/getting-started/getting-started-with-warp#opensuse-and-sle-based-distributions using warp-terminal-v0.2024.02.20.08.01.stable_01-1.x86_64.rpm.
  3. Invoke /usr/share/applications/dev.warp.Warp.desktop.
  4. Invoke the configuration pseudo-window.
  5. Select "Appearance".
  6. Scroll to "Text".
  7. Check "View all available system fonts".
  8. 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

[^1]: #L437 of a .MD file at gitlab.com/rokejulianlockhart/rokejulianlockhart/-/blob/8281225398011257df4d65637fff42796ce7c781

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.