Xonsh: DeprecationWarning for xonsh completers

Created on 1 Nov 2018  路  5Comments  路  Source: xonsh/xonsh


xonfig


+------------------+----------------------+
| xonsh | 0.8.2 |
| Git SHA | 78b13924 |
| Commit Date | Oct 29 14:16:50 2018 |
| Python | 3.6.5 |
| PLY | 3.9 |
| have readline | True |
| prompt toolkit | 1.0.15 |
| shell type | prompt_toolkit1 |
| pygments | 2.2.0 |
| on posix | True |
| on linux | True |
| distro | Ubuntu |
| on darwin | False |
| on windows | False |
| on cygwin | False |
| on msys2 | False |
| is superuser | False |
| default encoding | utf-8 |
| xonsh encoding | utf-8 |
| encoding errors | surrogateescape |
+------------------+----------------------+

Expected Behavior


No warning should be shown.

Current Behavior



The following message is shown when you start a xonsh shell:
/usr/local/lib/python3.6/dist-packages/xonsh/built_ins.py:1467: DeprecationWarning: __xonsh_completers__ has been deprecated, please use __xonsh__.completers instead. DeprecationWarning, /usr/local/lib/python3.6/dist-packages/xonsh/built_ins.py:1467: DeprecationWarning: __xonsh_completers__ has been deprecated, please use __xonsh__.completers instead. DeprecationWarning,

Steps to Reproduce


Just start a xonsh shell.

Most helpful comment

All 5 comments

Hey @sergiopr89 -- thanks for reporting! I can't reproduce this on my machine -- are you using any xontribs?

Wow, headshot!
Yes, the problem is with the apt_tabcomplete and docker_tabcomplete, one warning for each xontrib, that's why the error is shown twice. Try this:
xontrib load apt_tabcomplete docker_tabcomplete
I have both in the HOME .xonshrc file.
I've executed "sudo pip3 install --upgrade xonsh-apt-tabcomplete xonsh-docker-tabcomplete" but looks like they're already updated.

I'm closing the issue, those xontribs are from 3rd party.

Awesome! Thanks for taking the lead on that @sergiopr89 !

Was this page helpful?
0 / 5 - 0 ratings