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

error "complete: nosort: invalid option name" after installing bash completion #4326

Closed
1 task
RobertoD91 opened this issue Jun 19, 2022 · 2 comments
Closed
1 task

Comments

@RobertoD91
Copy link

  • PlatformIO Core.
    If you’ve found a bug, please provide an information below.

Configuration

Operating system:
MacOS 12.4

PlatformIO Version (platformio --version):
PlatformIO Core, version 6.0.2

Description of problem

After pio system completion install bash when i open a new terminal i get the error -bash: complete: nosort: invalid option name and autocomplete for pio don't work

Steps to Reproduce

  1. run pio system completion install bash
  2. open a new terminal

Actual Results

$ pio system completion install bash
PlatformIO CLI completion has been installed for BASH shell to /Users/Roberto/.bash_completion 
Please restart a current shell session.

Expected Results

...

Additional info

Bash version: 3.2.57(1)-release

@RobertoD91
Copy link
Author

with bash version 5.1.16(1)-release installed from homebrew it work

@ivankravets
Copy link
Member

Thanks, fixed! Please re-test with pio upgrade --dev.

See https://click.palletsprojects.com/en/8.1.x/shell-completion/#shell-completion

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

No branches or pull requests

2 participants