Warp
Warp copied to clipboard
java -version autocompletion not working properly
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
- Type
java -verto open the completions menu - select
java -version - notice how
java -verversionis run instead ofjava -version - 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
If anyone else is seeing this issue with other completions, please let us know in the comments.
I was also able to repro with tar -nu (select -null) -> tar -nunull.
This is a guess based on a very limited sample size, but it seems related to command line options that are a single dash followed by more than one character.
Another, similar story: wget -n (select -nc) -> wget -nnc
I have a similar issue. When I run the following command to unzip the file bookstore-example-24.zip I get this error in Warp: unzip bookstore-example-24.zip unzip bookstore-example24.zip unzip: cannot find or open bookstore-example24.zip, bookstore-example24.zip.zip or bookstore-example24.zip.ZIP.
Warp for some reason seems to remove the last dash out of the filename. This is not an isolated incident as I've had seen this behavior with other commands and parameters with multiple dashes in the parameters. Warps seems to always remove the last dash for some reason.