Comments (4)
My guess is that you have a custom prompt or fish plugin and Warp is unable to parse it.
You can check whether it’s something in your dotfiles by commenting on your config.fish or disable parts of your dotfiles just for Warp by using this conditional statement:
# Fish
if test "$TERM_PROGRAM" != "WarpTerminal"
# > What you want to disable here <
end
We have a list of incompatible tools here: https://docs.warp.dev/help/known-issues#list-of-incompatible-tools
And more info on custom prompts here: https://docs.warp.dev/features/prompt
from warp.
Hello dannyneira,
I am afraid the issue still persists even after i comment out everything in ~/.config/fish/config.fish. and removing all plugins.
After removing all plugins and commenting out config.
![image](https://private-user-images.githubusercontent.com/65998019/329201709-f71d61cb-392a-40be-8810-c6808d55eb17.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTU3MDQzNjgsIm5iZiI6MTcxNTcwNDA2OCwicGF0aCI6Ii82NTk5ODAxOS8zMjkyMDE3MDktZjcxZDYxY2ItMzkyYS00MGJlLTg4MTAtYzY4MDhkNTVlYjE3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTE0VDE2Mjc0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFiNjg4ZDc0NzIzNjVhZGVmNWYzYWY3MmI3NjJhNWFlOTYzYWM0NmNmMDU0ZGZkMzI1YjFhNWM0ZjM0NzMwZWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.KW5q8826nRhZAZELtgJmRxl8lBrq74AJxwLQl-h7B-0)
Please note that the issue doesn't happen when the default shell is zsh and opening subshell by typing 'fish'.
The issue only happens when I set fish as default shell. (After typing chsh -s $(which fish)
)
from warp.
Oh I see, I'm having trouble reproducing this issue, even with an empty fish config and settings fish as default shell as well.
Can you please try putting the result of which fish
into your Settings > Features > Session > Startup shell for new sessions > Custom
, then open a new session and activate/deactivate again to see if that helps?
If not, please delete the logs, then post the logs for when you run the activate/deactivate a few times. This could help us see where the script is failing on your end. https://docs.warp.dev/help/sending-us-feedback#gathering-warp-logs
from warp.
Hello, thank you for your message.
Unfortunately, i am not seeing any error message on ~/Library/Logs/warp.log.
![image](https://private-user-images.githubusercontent.com/65998019/330279905-bf4f48b5-c98e-4467-8852-cd94a53651f3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTU3MDQzNjgsIm5iZiI6MTcxNTcwNDA2OCwicGF0aCI6Ii82NTk5ODAxOS8zMzAyNzk5MDUtYmY0ZjQ4YjUtYzk4ZS00NDY3LTg4NTItY2Q5NGE1MzY1MWYzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTE0VDE2Mjc0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZlYmQwOTFjMGVmMjcyYmMyOTZkYzJlNzE3ZGVkNjRlZTc0N2QzZTUzMTIwNjM5NmM5NTIwYmQ2NDI5Y2IxNGEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.3oX2sWzZIfQhfkwDBR3nKm0FBrRxsCI2YD469mJijmk)
Warp’s logs do not contain any console input or output.
![image](https://private-user-images.githubusercontent.com/65998019/330280440-e98e05c8-3aef-4a60-83e2-d3580ff7c602.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTU3MDQzNjgsIm5iZiI6MTcxNTcwNDA2OCwicGF0aCI6Ii82NTk5ODAxOS8zMzAyODA0NDAtZTk4ZTA1YzgtM2FlZi00YTYwLTgzZTItZDM1ODBmZjdjNjAyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTE0VDE2Mjc0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThhZGIyNTQwMjU4NjM4OWY0NTVlNDQ0NjQxZDhkZDljY2I3NjMwZGNhNzIzNTAwYmIwMzIyOWUwZjE1NmVlZmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Va0fKVukab9UozIH900a0RfR7hmVf6zstnSVBjf0mTs)
I think it is because Warp itself isn't crashing but the code that wraps fish crashes fish?
fish: Unknown command: _old_fish_prompt
fish:
_old_fish_prompt
^~~~~~~~~~~~~~~^
in command substitution
in function '_warp_prompt'
called on line 1 of file /var/folders/56/f04gtv6x1mvc_mqn0c4n2nz4msr0jz/T/.tmpXdNHiN
in command substitution
called on line 120 of file /var/folders/56/f04gtv6x1mvc_mqn0c4n2nz4msr0jz/T/.tmpXdNHiN
in function 'warp_precmd'
in event handler: handler for generic event 'fish_prompt'
fish: Unknown command
set -l prompt (_old_fish_prompt)
^~~~~~~~~~~~~~~~~^
in function '_warp_prompt'
called on line 1 of file /var/folders/56/f04gtv6x1mvc_mqn0c4n2nz4msr0jz/T/.tmpXdNHiN
in command substitution
called on line 120 of file /var/folders/56/f04gtv6x1mvc_mqn0c4n2nz4msr0jz/T/.tmpXdNHiN
in function 'warp_precmd'
in event handler: handler for generic event 'fish_prompt'
This is all i am getting right now
Update:
So this if statement in the activate.fish is problematic
if test -z "$VIRTUAL_ENV_DISABLE_PROMPT"
# Copy the current `fish_prompt` function as `_old_fish_prompt`.
functions -c fish_prompt _old_fish_prompt
function fish_prompt
# Run the user's prompt first; it might depend on (pipe)status.
set -l prompt (_old_fish_prompt) # <- ISSUE HERE
printf '(%s) ' $VIRTUAL_ENV_PROMPT
string join -- \n $prompt # handle multi-line prompts
end
set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV"
end
so by setting
set -Ux VIRTUAL_ENV_DISABLE_PROMPT 1
I can avoid the issue from happening but this is still quite strange.
Also, When i use Warp prompt, I am still getting pythonvirtualenv prompt despite setting VIRTUAL_ENV_DISABLE_PROMPT = 1, so that function part in activate.fish is completely unnecessary when it comes to Warp.
![image](https://private-user-images.githubusercontent.com/65998019/330285613-679565d1-7f33-4ea2-b8ba-d5f56ccecfd5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTU3MDQzNjgsIm5iZiI6MTcxNTcwNDA2OCwicGF0aCI6Ii82NTk5ODAxOS8zMzAyODU2MTMtNjc5NTY1ZDEtN2YzMy00ZWEyLWI4YmEtZDVmNTZjY2VjZmQ1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTE0VDE2Mjc0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIxMjA2YzVmMTZhMTkzZjQ1YzkwNGFjN2FmODRmYTExMzY4NDI5MmY1MmNmZmQyYTc4MmNlYWJiYmNmOTRlNzgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.E9H5wDSjGXkmcn3lSgiAr37U6n7jQPzz6PXlkBC0pIo)
from warp.
Related Issues (20)
- Feature Request: Send command to all windows/tiles HOT 2
- discontinue warp terminal HOT 1
- feat: support path completion of named directories (as in zsh) HOT 1
- Can Warp support adb shell commands like ssh? HOT 1
- "" HOT 1
- Allow navigating between tabs using mouse side scroll HOT 1
- Warp-terminal signup doesn't work on Win 10 + WSL2 + Ubuntu HOT 8
- Extend text selection with Shift + left mouse click HOT 2
- AppImage welcome survey every launch HOT 4
- while AI tab is open Settings close button dont work sometimes and ui is disturbed HOT 1
- Starship Prompt doesn't render properly. HOT 4
- Automatically remove $ (dollar sign) from pasted commands HOT 1
- vim style navigation for warp drive HOT 1
- Warp Terminal becomes unresponsive after logging in via Edge browser on Ubuntu 22.04 running on Windows 11 HOT 6
- I want to use Warp notebook in multiple tabs / terminals, HOT 3
- warp_escape_json:1: can't create temp file for here document: permission denied HOT 1
- Cannot Open URL Link On Ubuntu22.04 with VIM HOT 5
- SSH not align HOT 5
- Feature: Running in both: GUI and terminal modes HOT 4
- Login shell HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from warp.