I cannot seems to get deoplete and tern_for_vim to play nice:
When I open a javascript file and start to type deoplete starts giving errors about concatenating a noneType to a list.
[deoplete] Traceback (most recent call last):
[deoplete] Traceback (most recent call last):
[deoplete] Traceback (most recent call last):
[deoplete] File "/home/babbleshack/.local/share/nvim/plugged/deoplete.nvim/rplugin/python3/deoplete/deoplete.py", line 47, in completion_begin
[deoplete] File "/home/babbleshack/.local/share/nvim/plugged/deoplete.nvim/rplugin/python3/deoplete/deoplete.py", line 47, in completion_begin
[deoplete] File "/home/babbleshack/.local/share/nvim/plugged/deoplete.nvim/rplugin/python3/deoplete/deoplete.py", line 47, in completion_begin
[deoplete] self.gather_results(context), context['input'])
[deoplete] self.gather_results(context), context['input'])
[deoplete] self.gather_results(context), context['input'])
[deoplete] File "/home/babbleshack/.local/share/nvim/plugged/deoplete.nvim/rplugin/python3/deoplete/deoplete.py", line 162, in merge_results
[deoplete] File "/home/babbleshack/.local/share/nvim/plugged/deoplete.nvim/rplugin/python3/deoplete/deoplete.py", line 162, in merge_results
[deoplete] File "/home/babbleshack/.local/share/nvim/plugged/deoplete.nvim/rplugin/python3/deoplete/deoplete.py", line 162, in merge_results
[deoplete] source.gather_candidates(result['context']))
[deoplete] source.gather_candidates(result['context']))
[deoplete] source.gather_candidates(result['context']))
[deoplete] TypeError: unsupported operand type(s) for +=: 'NoneType' and 'list'
[deoplete] TypeError: unsupported operand type(s) for +=: 'NoneType' and 'list'
[deoplete] TypeError: unsupported operand type(s) for +=: 'NoneType' and 'list'
[deoplete] Error while gathering completions. Use :messages for error details.
[deoplete] Error while gathering completions. Use :messages for error details.
[deoplete] Error while gathering completions. Use :messages for error details.
[deoplete] Traceback (most recent call last):
[deoplete] File "/home/babbleshack/.local/share/nvim/plugged/deoplete.nvim/rplugin/python3/deoplete/deoplete.py", line 47, in completion_begin
[deoplete] self.gather_results(context), context['input'])
[deoplete] File "/home/babbleshack/.local/share/nvim/plugged/deoplete.nvim/rplugin/python3/deoplete/deoplete.py", line 162, in merge_results
[deoplete] source.gather_candidates(result['context']))
[deoplete] TypeError: unsupported operand type(s) for +=: 'NoneType' and 'list'
[deoplete] Error while gathering completions. Use :messages for error details.
My tern/deoplete config
"######################
""DEOPLETE
"#####################
let g:deoplete#enable_at_startup = 1
let g:deoplete#tag#cache_limit_size = 5000000
"####################
"DEOPLETE TERJS
"####################
let g:deoplete#sources#ternjs#filetypes = [
\ 'jsx',
\ 'javascript.jsx',
\ 'vue',
\ 'javascript'
\ ]
let g:deoplete#sources#ternjs#types = 1
let g:deoplete#sources#ternjs#docs = 1
let g:deoplete#sources#ternjs#tern_bin = '/home/babbleshack/.nvm/versions/node/v6.11.3/bin/tern'
" tern
if exists('g:plugs["tern_for_vim"]')
let g:tern#command = ["tern"]
let g:tern#arguments = ["--persistent"]
let g:deoplete#sources#ternjs#timeout = 3
let g:tern_show_argument_hints = 'on_hold'
let g:tern_show_signature_in_pum = 1
"autocmd FileType javascript setlocal omnifunc=tern#Complete
endif
I have also tried setting my vim python vars
let g:python_host_prog = '/usr/bin/python2'
let g:python3_host_prog = '/usr/bin/python'
I cannot seems to get deoplete and tern_for_vim to play nice: When I open a javascript file and start to type deoplete starts giving errors about concatenating a noneType to a list.
My tern/deoplete config
I have also tried setting my vim python vars