Missing documentation about the `argcomplete` feature #82

Open
Turbo87 opened this Issue Dec 19, 2013 · 6 comments

Projects

None yet

2 participants

@Turbo87
Contributor
Turbo87 commented Dec 19, 2013

I've stumbled upon the argcomplete support in this project, but I haven't been able to make it work yet. Unfortunately this feature isn't mentioned in the documentation at all which makes it even harder to understand.

@techniq
Collaborator
techniq commented Dec 20, 2013

Agree it really needs documentation. In the meantime, you might see the issue comments where the feature was added. I also had issues initially and documented how I got it working - #55. Pull requests are always welcome btw ;)

@Turbo87
Contributor
Turbo87 commented Dec 20, 2013

I'm not opposed to writing it myself, but first I need to actually make it work ;)

@Turbo87
Contributor
Turbo87 commented Dec 20, 2013

Tried it again, and failed again...

  • I have this at the top of manage.py:
#!/usr/bin/env python
# PYTHON_ARGCOMPLETE_OK
  • manage.py is executable
  • I installed argcomplete in the virtualenv
  • I ran eval "$(register-python-argcomplete manage.py)"
  • I ran activate-global-python-argcomplete --user
  • I sourced /home/turbo/.bash_completion.d/python-argcomplete.sh
  • I added the above to .bashrc
  • echo $BASH_VERSION shows 4.2.37(1)-release
  • I have argcomplete==0.6.5

and I have no idea what I'm missing and why this is so hard to setup...

@techniq
Collaborator
techniq commented Dec 20, 2013

Hmm, I'll be honest, that looks like all the items I had to do as well. I just tested mine (using the manage.py under examples) and it still works (I have an older argcomplete==0.4.0 installed).

Does the contents in ~/.bash_completion.d/python-argcomplete.sh look correct?

@Turbo87
Contributor
Turbo87 commented Dec 20, 2013

depends on how you define "correct". there is some content that might make sense if I knew what it did... I have the feeling this might be more of an issue on the argcomplete side and not related to this project. I am using Ubuntu, so that might make a difference. You used OS X, right?

@techniq
Collaborator
techniq commented Dec 20, 2013

Yes, OSX 10.9.

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