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

Error caused by 'decode' under python3 #110

Closed
yarray opened this issue Sep 21, 2015 · 0 comments
Closed

Error caused by 'decode' under python3 #110

yarray opened this issue Sep 21, 2015 · 0 comments

Comments

@yarray
Copy link

yarray commented Sep 21, 2015

Environment: vim + python3 support. When opening a js file the plugin reported "'str' object has no attribute 'decode'"

After diagnosing it seems in

tern.py, line 61:

mydir = mydir.decode(vim.eval('&encoding'))

should be guarded as:

if PY2:
    mydir = mydir.decode(vim.eval('&encoding'))
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

1 participant