warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
20.37k stars 338 forks source link

Error in spring boot tests when using warp and starship prompt #1486

Open sillen102 opened 2 years ago

sillen102 commented 2 years ago

Discord username (optional)

No response

Describe the bug

I'm getting errors when building a Spring Boot application (I'm a Java developer). Tests are failing when using Warp together with the Starship prompt. When I use a different terminal with the Starship prompt or a different prompt with Warp (such as Pure), I don't get this issue.

The error is always the same and is the following:

java.lang.IllegalStateException: Failed to load ApplicationContext

      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'propertiesPrinter': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'STARSHIP_PIPE_STATUS[*]' in value "$(/opt/homebrew/bin/starship prompt --terminal-width="$COLUMNS" --keymap="${KEYMAP:-}" --status="$STARSHIP_CMD_STATUS" --pipestatus="${STARSHIP_PIPE_STATUS[*]}" --cmd-duration="${STARSHIP_DURATION:-}" --jobs="$STARSHIP_JOBS_COUNT")"

      Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'STARSHIP_PIPE_STATUS[*]' in value "$(/opt/homebrew/bin/starship prompt --terminal-width="$COLUMNS" --keymap="${KEYMAP:-}" --status="$STARSHIP_CMD_STATUS" --pipestatus="${STARSHIP_PIPE_STATUS[*]}" --cmd-duration="${STARSHIP_DURATION:-}" --jobs="$STARSHIP_JOBS_COUNT")"

Operating System

MacOS

OS Version

12.4

Shell Version

zsh 5.8.1 (x86_64-apple-darwin21.0)

Warp Version

v0.2022.06.06.09.05.stable_01

elviskahoro commented 2 years ago

Thanks for reporting!