Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syntax error while UpdateRemotePlugin #14

Closed
yuhuihu opened this issue Jul 14, 2018 · 2 comments
Closed

syntax error while UpdateRemotePlugin #14

yuhuihu opened this issue Jul 14, 2018 · 2 comments

Comments

@yuhuihu
Copy link

yuhuihu commented Jul 14, 2018

Encountered SyntaxError loading plugin at /Users/yuhui/.local/share/nvim/plugged/semshi/rplugin/python3/semshi: invalid syntax (handler.py, line 234)

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/neovim/plugin/host.py", line 130, in _load
    module = imp.load_module(name, file, pathname, descr)
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/imp.py", line 245, in load_module
    return load_package(name, filename)
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/imp.py", line 217, in load_package
    return _load(spec)
  File "<frozen importlib._bootstrap>", line 696, in _load
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "/Users/yuhui/.local/share/nvim/plugged/semshi/rplugin/python3/semshi/handler.py", line 234
    (id, line, name, self._buf_num), async=True)
@numirias
Copy link
Owner

Thanks for reporting!

My first guess is that this is due to a backwards-incompatible syntax change in Python 3.7:

async and await are now reserved keywords.

Since the neovim API is using async as parameter name, this violates the 3.7 syntax. I'll let you know when I got that fixed.

@numirias
Copy link
Owner

@yuhuihu Semshi should work fine on 3.7 now. Does this resolve the problem for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants