question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CLI Autocomplete duplicates some commands/options

See original GitHub issue

This is a Bug Report

Description

CLI Autocomplete appears to duplicate some entries when hitting <tab><tab>. The autocomplete.json file does not contain these duplicates. I’ve tried both Iterm and Terminal and get the same results. Not sure if the bug is in the CLI, tabtab, or my setup.

screen shot 2017-06-10 at 12 59 09 pm screen shot 2017-06-10 at 12 59 18 pm

Additional Data

  • Serverless Framework Version you’re using: 1.15.2
  • Operating System: macOS 10.12.5
  • iTerm2 Version you’re using: 3.1.beta.4
  • Terminal Version you’re using: 2.7.2 (388.1)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
stephanschubertcommented, Sep 17, 2017

FYI I’ve noticed that running

node ~/.config/yarn/global/node_modules/serverless/scripts/postinstall.js

won’t do/output anything if there are already the mentioned tabtab lines in ~/.zshrc (even if outcommented) — removing them and re-running does work here.

The “duplicates” bug is still there though.

1reaction
ryanmurakamicommented, Jun 12, 2017

@pmuens Awesome! Thanks! Let me know if you need anymore info. I’ll also try it on my work laptop tomorrow and see if it repros there as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Zsh tab completion duplicating command name - Stack Overflow
When you type some text and ask zsh to complete zsh will say terminal to move cursor to specific location and type completed...
Read more >
How to avoid duplicate completion in Bash
I defined the basic completion script. For program d, it can take subcommand exempt, limit, show, and update.
Read more >
Shell Completion — Click Documentation (7.x)
Generally, the shell completion support will complete commands, options, and any option or argument values where the type is click.Choice .
Read more >
Documentation: 15: psql - PostgreSQL
Perform a variable assignment, like the \set meta-command. Note that you must separate name and value, if any, by an equal sign on...
Read more >
Tab completion in zsh makes duplicate characters - Super User
This means some kind of error has been printed, but then the command line got repainted on top of the error, albeit in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found