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

source <(mvnd --completion bash) stopped working in 0.9.0 #785

Closed
ppalaga opened this issue Jan 31, 2023 · 1 comment
Closed

source <(mvnd --completion bash) stopped working in 0.9.0 #785

ppalaga opened this issue Jan 31, 2023 · 1 comment

Comments

@ppalaga
Copy link
Contributor

ppalaga commented Jan 31, 2023

When issuing

source <(mvnd --completion bash)

the completion script appears in the console, but the completion is not sourced.

Similarly, when piping the output of --completion bahs to wc the count is zero

mvnd --completion bash | wc
[the whole completion script here]

      0       0       0

Workaround: adding 2>&1 makes it work:

mvnd --completion bash 2>&1 | wc
    358    1259   20910
@gnodet
Copy link
Contributor

gnodet commented Feb 13, 2023

The upgrade to JLine must be the cause. JLine and mvnd now better supports out and err streams.
I think the line

output.accept(Message.log(Completion.getCompletion(completionShell, parameters)));

should be changed to use Message.out(xxx) to force the usage of the output stream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants