java -version autocompletion not working properly

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

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java, rust
Domain
cli

Research direction

Reproduce the completion flow with java -ver, then inspect Warp's command-completion entry point for how the existing partial flag is combined with the selected java -version suggestion. Done means selecting the completion runs java -version without duplicating the typed flag, including the other flags listed in the report.

Written by the indexing model from the issue text.

Description

area:completions bug ready-to-implement triaged
Discord username (optional)

HaloFour#4917

Describe the bug

It seems to be adding to the end of my partial input, e.g. I type java -ver and it suggests -versio so I hit enter and the result is java -verversion.

To Reproduce
  1. Type java -ver to open the completions menu
  2. select java -version
  3. notice how java -verversion is run instead of java -version
  4. It's the same with other two character flags like -jar, -cp, -showversion, etc.
Expected behaviour

Expect the completion to not duplicate the flag

Screenshots

https://user-images.githubusercontent.com/16809145/225769850-16c4449b-f9d4-41bc-9de9-ec96ec832341.mp4

Operating System

MacOS

OS Version

No response

Shell Version

No response

Warp Version

No response

Additional context

No response

Does this block you from using Warp daily?

Yes, this issue prevents me from using Warp daily.

Warp Internal (ignore): linear-label:b8107fdf-ba31-488d-b103-d271c89cac3e

None

Dominant language
Rust
Stars
65.1k
Forks
5.6k
PR merge metrics
PR metrics pending

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.

More from warpdotdev/warp

All issues in warpdotdev/warp

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.