question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

It seems like that ncm2 doesn't have a satisfactory cooperation with autozimu/LanguageClient-neovim for java.

See original GitHub issue

If you’re having trouble with NCM2, Please provide the following information along with your detailed issue description:

OS

arch linux (If you’re using Linux, sharing a reproducible, vimrc minimized docker image, can definitely help solving the issue)

neovim :version output

v0.3.2-1016-gc16529afa

Minimal vimrc for reproducing the issue

Plug 'ncm2/ncm2'
Plug 'roxma/nvim-yarp'

Plug 'ncm2/ncm2-bufword'
Plug 'ncm2/ncm2-tmux'
Plug 'ncm2/ncm2-path'
Plug 'fgrsnau/ncm2-otherbuf',
Plug 'ncm2/ncm2-ultisnips'
inoremap <silent> <expr> <CR> ncm2_ultisnips#expand_or("\<CR>", 'n')

let $NVIM_PYTHON_LOG_FILE="/tmp/nvim_log"
let $NVIM_PYTHON_LOG_LEVEL="DEBUG"
let g:python_host_skip_check=1
let g:python_host_prog = '/usr/bin/python2'
let g:python3_host_skip_check=1
let g:python3_host_prog = '/usr/bin/python3'

let g:ncm2#auto_popup=1
set completeopt=noselect,menuone,noinsert
autocmd InsertEnter * call ncm2#enable_for_buffer()
" au TextChangedI * call ncm2#auto_trigger()


function! Multiple_cursors_before()
    call ncm2#lock('vim-multiple-cursors')
endfunction

function! Multiple_cursors_after()
    call ncm2#unlock('vim-multiple-cursors')
endfunction

Plug 'autozimu/LanguageClient-neovim', {
  \ 'branch': 'next',
  \ 'do': 'bash install.sh',
  \ 'frozen': 1,
  \ }


let g:LanguageClient_serverCommands = {
    \ 'java': ['jdtls'],
    \ }
let g:LanguageClient_autoStart = 1
let g:LanguageClient_loadSettings = 1
set completefunc=LanguageClient#complete
set formatexpr=LanguageClient#textDocument_rangeFormatting_sync()
let g:LanguageClient_completionPreferTextEdit=1
let g:LanguageClient_hasSnippetSupport =0
let g:LanguageClient_diagnosticsEnable=0

neovim :messages output when the error occurs

/home/cogig/.vim/plugged/ncm2-ultisnips/autoload/ncm2_ultisnips.vim|42| ncm2_ultisnips#_do_expand_completed[16]
|| provider#python3#Call[18]
|| Traceback (most recent call last):
||   File "<string>", line 1, in <module>
||   File "/home/cogig/.vim/plugged/ncm2-ultisnips/pythonx/ncm2_lsp_snippet/utils.py", line 10, in apply_additional_text_edits
||     apply_lsp_additional_text_edits(ud, lspitem)
||   File "/home/cogig/.vim/plugged/ncm2-ultisnips/pythonx/ncm2_lsp_snippet/utils.py", line 33, in apply_lsp_additional_text_edits
||     additional_text_edits = resolved.get('additionalTextEdits', None)
|| Error detected while processing function
/home/cogig/.vim/plugged/ncm2-ultisnips/autoload/ncm2_ultisnips.vim|42| ncm2_ultisnips#_do_expand_completed[16]
|| provider#python3#Call[18]
|| AttributeError: 'NoneType' object has no attribute 'get'

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:24 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
pittcatcommented, Dec 29, 2018

@cogig The problem you encountered may look like this according to your description. https://asciinema.org/a/vp3iS0hvgqnplxNSTQHLtRkh4 We may come up against the same problem.But I’m not sure if the bug is belong to ncm2.Because ncm2 works well with pyls and other language servers.

0reactions
pittcatcommented, Jan 2, 2019

@roxma 改天我试试切到snipmate 。感谢回复和对ncm2 的维护😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found