Skip to content

Problem with vim's fold mark signs in C++ comments #70

@thefallenidealist

Description

@thefallenidealist

Problems summary

deoplete-clang will report:

Error detected while processing function 38_completion_delayed[4]..38_completion_begin:
line 28:
E475: Invalid argument: Channel doesn't exist

Expected

Normal deoplete-clang suggestion.

Environment Information

  • OS:
    FreeBSD 11.0-RELEASE
  • Neovim version:
    0.1.6 # FreeBSD pkg
    v0.2.0-45-g7666b495
    v0.2.0-149-gaa4ef896 # todays source
  • Clang version:
    3.8.1
    3.7.1

Provide a minimal init.vim with less than 50 lines and not plugin manager (Required!)

call plug#begin('~/.vim/plugged')
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'zchee/deoplete-clang'
call plug#end()

let g:deoplete#enable_at_startup = 1

let g:deoplete#sources#clang#libclang_path = "/usr/local/llvm38/lib/libclang.so"
let g:deoplete#sources#clang#clang_header  = "/usr/local/llvm38/include/clang"

The reproduce ways from neovim starting (Required!)

C++ example which will trigger the error:
http://pastebin.com/NrPE1k7T

  • Open the file
  • Write "str" as argument to "printr" function.
  • Wait a second or two
  • Write "i"

Screen shot (if possible)

Don't work:

Works:

Upload the log file

:messages
Error detected while processing function 38_completion_delayed[4]..38_completion_begin:
line 28:
E475: Invalid argument: Channel doesn't exist
Error detected while processing function 38_completion_delayed[4]..38_completion_begin:
line 28:
E475: Invalid argument: Channel doesn't exist
Error detected while processing function 38_completion_delayed[4]..38_completion_begin:
line 28:
E475: Invalid argument: Channel doesn't exist
Error detected while processing function 38_completion_delayed[4]..38_completion_begin:
line 28:
E475: Invalid argument: Channel doesn't exist
Error detected while processing function 38_completion_delayed[4]..38_completion_begin:
line 28:
E475: Invalid argument: Channel doesn't exist

Possible fix:

I have noticed that problem would not appear if:

  • there is no "// }" "// }}}" at the end of the class definition
  • there is no class declaration
  • "#define printr" is commented out

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions