jnoortheen / xontrib-avox-poetry

auto-activate venv as one cd into a poetry project
MIT License
3 stars 2 forks source link

syntax error #2

Closed hemna closed 3 years ago

hemna commented 3 years ago

Just installed this and fired up xonsh and I get a syntax error

╭─waboring at devstack-sap-train in ~/.dotfiles on master✘✘✘
╰─ ± xonsh
xonsh: For full traceback set: $XONSH_SHOW_TRACEBACK = True
  File "/usr/local/lib/python3.6/dist-packages/xontrib/avox_poetry/venv.py", line 31
    if venv := PROJ_DIR_VENV_MAP.get(path):
             ^
SyntaxError: invalid syntax
Failed to load xontrib avox_poetry.
╭─waboring(xonsh) at devstack-sap-train in ~/.dotfiles master|+2-1…5⚑1
╰─$ xonfig
+------------------+----------------------+
| xonsh            | 0.9.27               |
| Git SHA          | 71fe9014             |
| Commit Date      | Jan 29 08:58:58 2021 |
| Python           | 3.6.9                |
| PLY              | 3.11                 |
| have readline    | True                 |
| prompt toolkit   | 3.0.8                |
| shell type       | prompt_toolkit       |
| pygments         | 2.6.1                |
| 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      |
| on jupyter       | False                |
| jupyter kernel   | None                 |
| xontrib 1        | abbrevs              |
| xontrib 2        | argcomplete          |
| xontrib 3        | autovox              |
| xontrib 4        | autoxsh              |
| xontrib 5        | avox                 |
| xontrib 6        | back2dir             |
| xontrib 7        | cmd_done             |
| xontrib 8        | commands             |
| xontrib 9        | coreutils            |
| xontrib 10       | direnv               |
| xontrib 11       | docker_tabcomplete   |
| xontrib 12       | vox                  |
| xontrib 13       | voxapi               |
+------------------+----------------------+
jnoortheen commented 3 years ago

my bad, it is 3.8+ syntax. I will push an update.

jnoortheen commented 3 years ago

fixed in https://github.com/jnoortheen/xontrib-avox-poetry/commit/70e38ca2984bf40470153f38bcc03454839882dc