Simple commands (such as autocompletion and --version) take a relatively long time
See original GitHub issueEvaluating 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
- Linux (Ubuntu 17.04)
- Python version: Python 3.5.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:
- Created 6 years ago
- Reactions:3
- Comments:26 (14 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tedmiston https://github.com/gtalarico/pipenv-pipes/
@tedmiston that’s one 10-20 repos necessary for
pipenv
to supposedly do its thing.