Skip to content
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

Fix path completion not working with directory names #1863

Merged
merged 3 commits into from
Oct 31, 2022

Conversation

NewbieOrange
Copy link
Contributor

Fixes #1644

@NewbieOrange NewbieOrange force-pushed the bugfix/complete_dir branch 2 times, most recently from 4da5623 to 3ff446c Compare October 27, 2022 13:50
@NewbieOrange NewbieOrange changed the title Fix path completion not working with directory names [WIP] Fix path completion not working with directory names Oct 27, 2022
@NewbieOrange NewbieOrange changed the title [WIP] Fix path completion not working with directory names Fix path completion not working with directory names Oct 27, 2022
@NewbieOrange NewbieOrange marked this pull request as draft October 27, 2022 16:02
@NewbieOrange NewbieOrange marked this pull request as ready for review October 30, 2022 04:36
@remkop remkop added this to the 4.7 milestone Oct 30, 2022
Copy link
Owner

@remkop remkop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for taking care of this!
I fixed an unrelated broken test, but now I see a number of failing tests for AutoComplete:

picocli.AutoCompleteHyphenatedCommandTest > testCompletionScript FAILED
    org.junit.ComparisonFailure at AutoCompleteHyphenatedCommandTest.java:28

picocli.AutoCompleteTest > testBashify FAILED
    org.junit.ComparisonFailure at AutoCompleteTest.java:1270

picocli.AutoCompleteTest > nestedSubcommands FAILED
    org.junit.ComparisonFailure at AutoCompleteTest.java:192

picocli.AutoCompleteTest > basic FAILED
    org.junit.ComparisonFailure at AutoCompleteTest.java:97

picocli.AutoCompleteTest > testBashifyWithExtras FAILED
    org.junit.ComparisonFailure at AutoCompleteTest.java:12[82](https://github.com/remkop/picocli/actions/runs/3355881768/jobs/5560665264#step:8:83)

picocli.AutoCompleteTest > helpCommand FAILED
    org.junit.ComparisonFailure at AutoCompleteTest.java:208
stty: /dev/tty: No such device or address

2319 tests completed, 6 failed, 27 skipped

Can you take a look?

Copy link
Owner

@remkop remkop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NewbieOrange Thank you for making the tests pass!

@remkop remkop merged commit 6d9cabb into remkop:main Oct 31, 2022
@remkop
Copy link
Owner

remkop commented Oct 31, 2022

Merged!
Thank you @NewbieOrange for the PR, and thank you @philgdn for checking!

@remkop remkop added type: bug 🐛 theme: auto-completion An issue or change related to auto-completion theme: codegen An issue or change related to the picocli-codegen module labels Oct 31, 2022
@remkop
Copy link
Owner

remkop commented Oct 31, 2022

@NewbieOrange question for you: does this PR also solve the problem mentioned in #1759 (spaces in completion candidates)?
Or does that still need more work?

@NewbieOrange
Copy link
Contributor Author

@NewbieOrange question for you: does this PR also solve the problem mentioned in #1759 (spaces in completion candidates)?
Or does that still need more work?

No it doesnt. Similar changes (like #1759, but it might need some changes) need to be implemented for that situation to work.

@NewbieOrange NewbieOrange deleted the bugfix/complete_dir branch December 22, 2022 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme: auto-completion An issue or change related to auto-completion theme: codegen An issue or change related to the picocli-codegen module type: bug 🐛
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Picocli 4.6.3 : autocompletion of directory names not working anymore
2 participants