I keep getting this stacktrace every time i try to complete ( add an app.get or something the likes of that ) a file with this code javascript ( nodejs ) :
I've pointed that this code is what causes the error, putting the code into a separate file and trying to complete something, and I'm able to reproduce the error.
Using Arch Linux
gVim console Output:
Error detected while processing function youcompleteme#Complete..<SNR>31_CompletionsForQuery:
line 1:
Traceback (most recent call last):
Press ENTER or type command to continue
Error detected while processing function youcompleteme#Complete..<SNR>31_CompletionsForQuery:
line 1:
File "<string>", line 1, in <module>
Press ENTER or type command to continue
Error detected while processing function youcompleteme#Complete..<SNR>31_CompletionsForQuery:
line 1:
File "<string>", line 3, in GetCompletions
Press ENTER or type command to continue
Error detected while processing function youcompleteme#Complete..<SNR>31_CompletionsForQuery:
line 1:
File "/home/akai/.vim/bundle/YouCompleteMe/autoload/../python/ycm/client/omni_completion_request.py", line 31, in Start
Press ENTER or type command to continue
Error detected while processing function youcompleteme#Complete..<SNR>31_CompletionsForQuery:
line 1:
self._results = self._omni_completer.ComputeCandidates( self.request_data )
Press ENTER or type command to continue
Error detected while processing function youcompleteme#Complete..<SNR>31_CompletionsForQuery:
line 1:
File "/home/akai/.vim/bundle/YouCompleteMe/autoload/../python/ycm/completers/all/omni_completer.py", line 69, in ComputeCandidates
Press ENTER or type command to continue
Error detected while processing function youcompleteme#Complete..<SNR>31_CompletionsForQuery:
line 1:
request_data )
Press ENTER or type command to continue
Error detected while processing function youcompleteme#Complete..<SNR>31_CompletionsForQuery:
line 1:
File "/home/akai/.vim/bundle/YouCompleteMe/autoload/../python/ycm/completers/completer.py", line 173, in ComputeCandidates
Press ENTER or type command to continue
Error detected while processing function youcompleteme#Complete..<SNR>31_CompletionsForQuery:
line 1:
request_data[ 'query' ] )
Press ENTER or type command to continue
Error detected while processing function youcompleteme#Complete..<SNR>31_CompletionsForQuery:
line 1:
File "/home/akai/.vim/bundle/YouCompleteMe/autoload/../python/ycm/completers/completer.py", line 228, in FilterAndSortCandidates
Press ENTER or type command to continue
Error detected while processing function youcompleteme#Complete..<SNR>31_CompletionsForQuery:
line 1:
ToUtf8IfNeeded( query ) )
Press ENTER or type command to continue
Error detected while processing function youcompleteme#Complete..<SNR>31_CompletionsForQuery:
line 1:
TypeError: string indices must be integers, not str
" ~/.vimrc
" Alexandre Ferrando
" See: http://vimdoc.sourceforge.net/htmldoc/options.html for details
" Use Vim settings, rather than Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
""Vundle
Bundle 'gmarik/vundle'
Bundle 'tpope/vim-fugitive'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'Valloric/YouCompleteMe'
nnoremap <F5> :YcmForceCompileAndDiagnostics<CR>
let g:ycm_global_ycm_extra_conf = '/home/akai/.vim/bundle/YouCompleteMe/cpp/ycm/.ycm_extra_conf.py'
map <F7> mzgg=G`z<CR>
set scrolloff=10
set cmdheight=2
set foldmethod=indent
:nnoremap <Leader>zz :let &scrolloff=999-&scrolloff<CR>
cnoreabbrev <expr> W ((getcmdtype() is# ':' && getcmdline() is# 'W')?('w'):('W'))
let g:ycm_server_use_vim_stdout = 1
let g:ycm_server_log_level = 'debug'
set nocompatible
set whichwrap=b,s,<,>,[,]
set guiheadroom=0
"colors
colorscheme vividchalk
set guiheadroom=0
set backupdir=~/.vim/backup,/tmp
set nobackup
set nowritebackup
set noswapfile
set tabstop=4 " Number of spaces that a <Tab> in the file counts for.
set shiftwidth=4 " Number of spaces to use for each step of (auto)indent.
set expandtab " Use the appropriate number of spaces to insert a <Tab>.
" Spaces are used in indents with the '>' and '<' commands
" and when 'autoindent' is on. To insert a real tab when
" 'expandtab' is on, use CTRL-V <Tab>.
set smarttab " When on, a <Tab> in front of a line inserts blanks
" according to 'shiftwidth'. 'tabstop' is used in other
" places. A <BS> will delete a 'shiftwidth' worth of space
" at the start of the line.
set showcmd " Show (partial) command in status line.
set formatoptions=c,q,r,t " This is a sequence of letters which describes how
" automatic formatting is to be done.
"
" letter meaning when present in 'formatoptions'
" ------ ---------------------------------------
" c Auto-wrap comments using textwidth, inserting
" the current comment leader automatically.
" q Allow formatting of comments with "gq".
" r Automatically insert the current comment leader
" after hitting <Enter> in Insert mode.
" t Auto-wrap text using textwidth (does not apply
" to comments)
set number " Show line numbers.
set showmatch " When a bracket is inserted, briefly jump to the matching
" one. The jump is only done if the match can be seen on the
" screen. The time to show the match can be set with
" 'matchtime'.
" Make backspace behave in a sane manner.
set backspace=indent,eol,start
set ignorecase " Ignore case in search patterns.
set smartcase " Override the 'ignorecase' option if the search pattern
" contains upper case characters.
set autoindent " Copy indent from current line when starting a new line
" (typing <CR> in Insert mode or when using the "o" or "O"
" command).
set ruler
set background=dark
set mouse=a
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
endif
" Enable file type detection and do language-dependent indenting.
filetype plugin indent on
"Spell
set nospell
" C/C++ stuff
autocmd FileType c,cpp,cc,h,hpp set omnifunc=ccomplete#Complete
" " PKGBUILD stuff
autocmd FileType PKGBUILD set expandtab shiftwidth=2 softtabstop=4
"
" " sh stuff
autocmd FileType sh set expandtab shiftwidth=2 softtabstop=4
" Switch syntax highlighting on
syntax on
I keep getting this stacktrace every time i try to complete ( add an app.get or something the likes of that ) a file with this code javascript ( nodejs ) :
I've pointed that this code is what causes the error, putting the code into a separate file and trying to complete something, and I'm able to reproduce the error.
Using Arch Linux
gVim console Output:
might be important, my vimrc: