deoplete-plugins / deoplete-go

Asynchronous Go completion for Neovim. deoplete source for Go.
MIT License
424 stars 28 forks source link

Macos neovim : flag provided but not defined: -source #153

Closed peterwillcn closed 5 years ago

peterwillcn commented 5 years ago
[deoplete] Traceback (most recent call last):
  File "/Users/xx/.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/xx/.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/xx/.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
flag provided but not defined: -source
Usage: /use/source/go/gopath/bin/gocode [-s] [-f=<format>] [-in=<path>] [-sock=<type>] [-addr=<addr>]
       <command> [<args>]
Flags:
  -addr string
    ^Iaddress for tcp socket (default "127.0.0.1:37373")
  -debug
    ^Ienable server-side debug mode
  -f string
    ^Ioutput format (vim | emacs | nice | csv | csv-with-package | json) (default "nice")
  -in string
    ^Iuse this file instead of stdin input
  -profile int
    ^Iport on which to expose profiling information for pprof; 0 to disable profiling
  -s^Irun a server instead of a client
  -sock string
    ^Isocket type (unix | tcp) (default "unix")
Commands:
  autocomplete [<path>] <offset>     main autocompletion command
  close                              close the gocode daemon
  drop-cache                         drop gocode daemon's cache
  options                            list config options (extended)
  set [<name> [<value>]]             list or set config options
  status                             gocode daemon status report
.  Use :messages / see above for error details.
[deoplete] Traceback (most recent call last):
  File "/Users/xx/.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/xx/.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/xx/.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
flag provided but not defined: -source
Usage: /use/source/go/gopath/bin/gocode [-s] [-f=<format>] [-in=<path>] [-sock=<type>] [-addr=<addr>]
       <command> [<args>]
Flags:
  -addr string
    ^Iaddress for tcp socket (default "127.0.0.1:37373")
  -debug
    ^Ienable server-side debug mode
Shougo commented 5 years ago

Please read this. https://github.com/deoplete-plugins/deoplete-go#gdeopletesourcesgosource_importer