Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starship Prompt doesn't render properly. #4907

Closed
1 task done
akashdiphazra opened this issue May 12, 2024 · 6 comments
Closed
1 task done

Starship Prompt doesn't render properly. #4907

akashdiphazra opened this issue May 12, 2024 · 6 comments
Labels
Bugs Bugs, Hangs, Crash, and Freezes

Comments

@akashdiphazra
Copy link

akashdiphazra commented May 12, 2024

Dupe Check

Describe the bug

I am using fedora 40 and Starship Gruvbox Rainbow Preset is not rendering properly in warp terminal but is rendering properly on gnome terminal

Warp Terminal

Screenshot from 2024-05-12 12-09-57

Gnome Terminal

Screenshot from 2024-05-12 12-10-28

To reproduce

Download Starship prompt and use Gruvbox Rainbow Preset theme in bash terminal on fedora 40.

Expected behavior

No response

Screenshots

No response

Operating system

Linux

Operating system and version

Fedora 40

Shell Version

5.2.26

Current Warp version

2024.05.07.08.02.stable_02

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

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

@akashdiphazra akashdiphazra added the Bugs Bugs, Hangs, Crash, and Freezes label May 12, 2024
@akashdiphazra akashdiphazra changed the title Starship Prompt doen'st render properly. Starship Prompt doesn't render properly. May 12, 2024
@Advait-M
Copy link
Member

Thanks for reporting @akashdiphazra! So, I believe part of this stems from #2304 and part of this is due to how we handle prompts in Bash. I'm actively working on addressing 2304 and the changes I have should fix these prompt issues 😄 ! No concrete ETA but getting closer to a release-ready state (#2304 (comment) has some context on the technical complexity here)!

Could you provide your ~/.config/starship.toml perhaps? Is it just using this: https://github.com/fang2hou/starship-gruvbox-rainbow? I'd love to confirm my thinking above! Thanks!

@akashdiphazra
Copy link
Author

akashdiphazra commented May 12, 2024

Yes, It's the default starship theme, nothing has been changed.

"$schema" = 'https://starship.rs/config-schema.json'
command_timeout = 15000

format = """
[](color_orange)\
$os\
$username\
[](bg:color_yellow fg:color_orange)\
$directory\
[](fg:color_yellow bg:color_aqua)\
$git_branch\
$git_status\
[](fg:color_aqua bg:color_blue)\
$c\
$rust\
$golang\
$nodejs\
$php\
$java\
$kotlin\
$haskell\
$python\
[](fg:color_blue bg:color_bg3)\
$docker_context\
$conda\
[](fg:color_bg3 bg:color_bg1)\
$time\
[ ](fg:color_bg1)\
$line_break$character"""

palette = 'gruvbox_dark'

[palettes.gruvbox_dark]
color_fg0 = '#fbf1c7'
color_bg1 = '#3c3836'
color_bg3 = '#665c54'
color_blue = '#458588'
color_aqua = '#689d6a'
color_green = '#98971a'
color_orange = '#d65d0e'
color_purple = '#b16286'
color_red = '#cc241d'
color_yellow = '#d79921'

[os]
disabled = false
style = "bg:color_orange fg:color_fg0"

[os.symbols]
Windows = "󰍲"
Ubuntu = "󰕈"
SUSE = ""
Raspbian = "󰐿"
Mint = "󰣭"
Macos = "󰀵"
Manjaro = ""
Linux = "󰌽"
Gentoo = "󰣨"
Fedora = "󰣛"
Alpine = ""
Amazon = ""
Android = ""
Arch = "󰣇"
Artix = "󰣇"
CentOS = ""
Debian = "󰣚"
Redhat = "󱄛"
RedHatEnterprise = "󱄛"

[username]
show_always = true
style_user = "bg:color_orange fg:color_fg0"
style_root = "bg:color_orange fg:color_fg0"
format = '[ $user ]($style)'

[directory]
style = "fg:color_fg0 bg:color_yellow"
format = "[ $path ]($style)"
truncation_length = 3
truncation_symbol = "…/"

[directory.substitutions]
"Documents" = "󰈙 "
"Downloads" = ""
"Music" = "󰝚 "
"Pictures" = ""
"Developer" = "󰲋 "

[git_branch]
symbol = ""
style = "bg:color_aqua"
format = '[[ $symbol $branch ](fg:color_fg0 bg:color_aqua)]($style)'

[git_status]
style = "bg:color_aqua"
format = '[[($all_status$ahead_behind )](fg:color_fg0 bg:color_aqua)]($style)'

[nodejs]
symbol = ""
style = "bg:color_blue"
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)'

[c]
symbol = ""
style = "bg:color_blue"
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)'

[rust]
symbol = ""
style = "bg:color_blue"
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)'

[golang]
symbol = ""
style = "bg:color_blue"
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)'

[php]
symbol = ""
style = "bg:color_blue"
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)'

[java]
symbol = ""
style = "bg:color_blue"
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)'

[kotlin]
symbol = ""
style = "bg:color_blue"
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)'

[haskell]
symbol = ""
style = "bg:color_blue"
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)]($style)'

[python]
symbol = ""
style = "bg:color_blue"
format = '[[ $symbol( $version) ](fg:color_fg0 bg:color_blue)( 📦 ${virtualenv})]($style)'

[docker_context]
symbol = ""
style = "bg:color_bg3"
format = '[[ $symbol( $context) ](fg:#83a598 bg:color_bg3)]($style)'

[conda]
style = "bg:color_bg3"
format = '[[ $symbol( $environment) ](fg:#83a598 bg:color_bg3)]($style)'

[time]
disabled = false
time_format = "%R"
style = "bg:color_bg1"
format = '[[  $time ](fg:color_fg0 bg:color_bg1)]($style)'

[line_break]
disabled = false

[character]
disabled = false
success_symbol = '[](bold fg:color_green)'
error_symbol = '[](bold fg:color_red)'
vimcmd_symbol = '[](bold fg:color_green)'
vimcmd_replace_one_symbol = '[](bold fg:color_purple)'
vimcmd_replace_symbol = '[](bold fg:color_purple)'
vimcmd_visual_symbol = '[](bold fg:color_yellow)'

@a1401358759
Copy link

image
+1

@nylqd
Copy link

nylqd commented May 17, 2024

same issue in p10k theme with hack nerd font, line height is wired
image

@dannyneira
Copy link
Member

Hey Folks, We'll be closing this in favor of #2304 as this issue is related to the same-line prompt work we're actively working on addressing.

Please follow that issue for updates, we have no firm eta but stay tuned as this is coming soon!

@dannyneira
Copy link
Member

Duplicate of #2304

@dannyneira dannyneira marked this as a duplicate of #2304 May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugs Bugs, Hangs, Crash, and Freezes
Projects
None yet
Development

No branches or pull requests

5 participants