Warp icon indicating copy to clipboard operation
Warp copied to clipboard

java -version autocompletion not working properly

Open dannyneira opened this issue 2 years ago • 4 comments

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

dannyneira avatar Mar 16 '23 22:03 dannyneira

If anyone else is seeing this issue with other completions, please let us know in the comments.

dannyneira avatar Mar 16 '23 22:03 dannyneira

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.

HaloFour avatar Mar 17 '23 01:03 HaloFour

Another, similar story: wget -n (select -nc) -> wget -nnc

HaloFour avatar Mar 17 '23 01:03 HaloFour

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.

nicholasc69 avatar Jun 22 '24 08:06 nicholasc69