deoplete-plugins/deoplete-go

macos neovim fish Iterm2: deoplete_go.py", line 250, in get_complete_result result = loads(stdout_data.decode()) ValueError: Expected object or value

peterwillcn opened this issue · 6 comments

[deoplete] Traceback (most recent call last):
  File "/Users/macos/.vim/plugged/deoplete-go/rplugin/python3/deoplete/sources/deoplete_go.py", line 250, in get_complete_result
    result = loads(stdout_data.decode())
ValueError: Expected object or value
gocode decode error.  Use :messages / see above for error details.
[deoplete] Traceback (most recent call last):
  File "/Users/macos/.vim/plugged/deoplete-go/rplugin/python3/deoplete/sources/deoplete_go.py", line 250, in get_complete_result
    result = loads(stdout_data.decode())
ValueError: Expected object or value
.  Use :messages / see above for error details.
[deoplete] Traceback (most recent call last):
  File "/Users/macos/.vim/plugged/deoplete-go/rplugin/python3/deoplete/sources/deoplete_go.py", line 250, in get_complete_result
    result = loads(stdout_data.decode())
ValueError: Expected object or value
2019/05/29 00:24:22 rpc: can't find service Server.AutoComplete
.  Use :messages / see above for error details.
[deoplete] Traceback (most recent call last):
  File "/Users/macos/.vim/plugged/deoplete-go/rplugin/python3/deoplete/sources/deoplete_go.py", line 250, in get_complete_result
    result = loads(stdout_data.decode())
ValueError: Expected object or value
gocode decode error.  Use :messages / see above for error details.
[deoplete] Traceback (most recent call last):
  File "/Users/macos/.vim/plugged/deoplete-go/rplugin/python3/deoplete/sources/deoplete_go.py", line 250, in get_complete_result
    result = loads(stdout_data.decode())
ValueError: Expected object or value
.  Use :messages / see above for error details.
[deoplete] Traceback (most recent call last):
  File "/Users/macos/.vim/plugged/deoplete-go/rplugin/python3/deoplete/sources/deoplete_go.py", line 250, in get_complete_result
    result = loads(stdout_data.decode())
ValueError: Expected object or value
2019/05/29 00:24:25 rpc: can't find service Server.AutoComplete
.  Use :messages / see above for error details.
[deoplete] Traceback (most recent call last):
  File "/Users/macos/.vim/plugged/deoplete-go/rplugin/python3/deoplete/sources/deoplete_go.py", line 250, in get_complete_result
    result = loads(stdout_data.decode())
ValueError: Expected object or value
gocode decode error.  Use :messages / see above for error details.
[deoplete] Traceback (most recent call last):
  File "/Users/macos/.vim/plugged/deoplete-go/rplugin/python3/deoplete/sources/deoplete_go.py", line 250, in get_complete_result
    result = loads(stdout_data.decode())
ValueError: Expected object or value
.  Use :messages / see above for error details.
[deoplete] Traceback (most recent call last):
  File "/Users/macos/.vim/plugged/deoplete-go/rplugin/python3/deoplete/sources/deoplete_go.py", line 250, in get_complete_result
    result = loads(stdout_data.decode())
ValueError: Expected object or value
2019/05/29 00:24:43 rpc: can't find service Server.AutoComplete
.  Use :messages / see above for error details.

I have tested https://github.com/stamblerre/gocode with go 1.12.5 and deoplete-go works.
I think you have used not supported gocode.

What gocode do you use?

Upgrade gocode fixed! Thank you @Shougo

OK.

I'm having this issue with spacevim. !!! the solutions above don't seem to cut it.

Please read the issue's comment.