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.

Simple commands (such as autocompletion and --version) take a relatively long time

See original GitHub issue

Evaluating the autocomplete takes a very long time (closer to a second). eval "$(env _PIPENV_COMPLETE=source-bash pipenv)"

Autocompletions also take closer to a second, as does running pretty much any command (no matter how simple).

I had to disable the autocompletion as it adds too much time to my terminals startup (actually I just took the output of the command to my .bashrc for now).

Describe you environment
  1. Linux (Ubuntu 17.04)
  2. Python version: Python 3.5.3
  3. Pipenv version: pipenv, version 8.2.7
Expected result

These simple commands shouldn’t take more than a few milliseconds.

Steps to replicate
$ time env _PIPENV_COMPLETE=source-bash pipenv --verbose

_pipenv_completion() {
    local IFS=$'\t'
    COMPREPLY=( $( env COMP_WORDS="${COMP_WORDS[*]}" \
                   COMP_CWORD=$COMP_CWORD \
                   _PIPENV_COMPLETE=complete-bash $1 ) )
    return 0
}

complete -F _pipenv_completion -o default pipenv

real    0m0,763s
user    0m0,708s
sys     0m0,056s
$ time pipenv --version
pipenv, version 8.2.7

real    0m0,646s
user    0m0,600s
sys     0m0,040s

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:26 (14 by maintainers)

github_iconTop GitHub Comments

0reactions
ktavabicommented, Jun 16, 2022

What is pipes?

@tedmiston that’s one 10-20 repos necessary for pipenv to supposedly do its thing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Autocomplete - Wikipedia
Autocomplete, or word completion, is a feature in which an application predicts the rest of a word a user is typing. In Android...
Read more >
CS472/CM472/CS672 - Computing
It was selected for the course because it is relatively simple, and is frequently ... Some resources to get you started with the...
Read more >
Develop code in Databricks notebooks - Azure - Microsoft Learn
Learn how to edit code in Databricks notebooks. Learn about code autocomplete and automatic code formatting. Learn about notebook version ...
Read more >
IntelliSense in Visual Studio Code
VS Code IntelliSense offers different types of completions, including language server suggestions, snippets, and simple word based textual completions. Icon ...
Read more >
git auto-complete for *branches* at the command line?
If you are willing to switch to a different shell, the fish shell has this feature built in. It also has some other...
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