-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
quarkus dev broken for command mode arguments #37921
quarkus dev broken for command mode arguments #37921
Comments
/cc @ebullient (cli) |
Hey @maxandersen I started looking into this issue, was able to fix already the second issue You pointed out. I will continue work on this in the upcoming days :) |
Awesome. Remember it's just as fine fixing smaller subparts in multiple prs as that often makes it easier to fix and review. |
You are right. In this case this pr is ready for review, it fixes the second pointed out issue |
Regarding point 3, I did some investigation and I'm afraid it's impossible to provide a string to be edited from the command line. |
Which pr is it? Got a link? |
Makes sense. |
Yes, there you go Fix quarkus dev broken... |
Here is new PR which fixes this issue from point 3. Display current args... |
@maxandersen Here is PR which fixes point 1 Fix command line args... |
Awesome. I'm back working on Monday so hope to get to this as soon as possible. |
Alright thanks. I'm looking forward for the feedback |
sorry for the delay! first off - awesome contributions @MaciejDromin - these greatly improve the devmode experience with cli based commands. #37961 - spot on! LGTM. |
Thanks for the feedback @maxandersen! |
Fix command line arguments being squashed
Fix quarkus dev broken for command mode arguments
Describe the bug
using quarkus dev with command mode seem to have regressed.
do this:
quarkus create app -x picocli whoops
then run:
quarkus dev this is my name
and it will print out "this is my name" and in bottom line have:
Press [space] to restart, [e] to edit command line args (currently 'this is my name'), [r] to resume testing, [o] Toggle test output, [:] for the terminal, [h] for more options>
now press 'e' to edit and notice that you are shown an empty line. Type in
something else completely
and press enter and you get:Unmatched arguments from index 1: 'completely', 'different' Usage: greeting [-hV] <name> <name> Your name. -h, --help Show this help message and exit. -V, --version Print version information and exit.
but the line still shows:
Press [space] to restart, [e] to edit command line args (currently 'this is my name'), [r] to resume testing, [o] Toggle test output, [:] for the terminal, [h] for more options>
so multiple issues in the above:
quarkus dev whatever i put
the latter part gets passed in as one string ("whatever i put") rather than actual individual arguments. It should be an array of strings ("whatever", "i", "put") rather than one big string.note:
quarkus dev "whatever I put"
should give you one string and not an array of string.the edit command actually seem to do this correct. its just the passing of parameter that is wrong
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: