Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deoplete produces TypeError after recent update #1397

Closed
jgonsior opened this issue Feb 11, 2018 · 10 comments
Closed

Deoplete produces TypeError after recent update #1397

jgonsior opened this issue Feb 11, 2018 · 10 comments
Milestone

Comments

@jgonsior
Copy link

jgonsior commented Feb 11, 2018

When I type a charachter deoplete immidiately produces the following error:

[deoplete] Traceback (most recent call last):                                                             
[deoplete]   File "/home/monkey/.cache/vimfiles/repos/github.com/Shougo/deoplete.nvim/rplugin/python3/deop
lete/deoplete.py", line 65, in completion_begin                                                           
[deoplete]     is_async, position, candidates = self.merge_results(context)                               
[deoplete]   File "/home/monkey/.cache/vimfiles/repos/github.com/Shougo/deoplete.nvim/rplugin/python3/deop
lete/deoplete.py", line 112, in merge_results                                                             
[deoplete]     result = parent.merge_results(context)                                                     
[deoplete]   File "/home/monkey/.cache/vimfiles/repos/github.com/Shougo/deoplete.nvim/rplugin/python3/deop
lete/parent.py", line 55, in merge_results                                                                
[deoplete]     get = self._get(queue_id)                                                                  
[deoplete]   File "/home/monkey/.cache/vimfiles/repos/github.com/Shougo/deoplete.nvim/rplugin/python3/deop
lete/parent.py", line 106, in _get                                                                        
[deoplete]     return [x for x in self._proc.communicate(0.02)                                            
[deoplete]   File "/home/monkey/.cache/vimfiles/repos/github.com/Shougo/deoplete.nvim/rplugin/python3/deop
lete/parent.py", line 107, in <listcomp>                                                                  
[deoplete]     if x['queue_id'] == queue_id]                                                              
[deoplete] TypeError: 'int' object is not subscriptable                                                   
[deoplete] Error while gathering completions.  Use :messages for error details.  

Environment Information

  • OS: Arch Linux
  • neovim version: 0.2.2

The reproduce ways from Vim starting (Required!)

The error still exists when removing my custom config file, so it's definitely ot a problem of that.

Output of the ':SPDebugInfo!'

:SPDebugInfo ### SpaceVim Options :

g:spacevim_smartcloseignoreft = ['help', 'tagbar', 'vimfiler', 'SpaceVimRunner', 'SpaceVimREPL', 'SpaceVimQuickFix', 'HelpDescribe', 'VebuggerShell', 'VebuggerTerminal']                                            
g:spacevim_default_indent = 2                                                                                                                                                                                        
g:spacevim_custom_plugins = []                                                                                                                                                                                       
g:spacevim_buffer_index_type = 1                                                                                                                                                                                     
g:spacevim_gitcommit_pr_icon = ''                                                                                                                                                                                   
g:spacevim_error_symbol = ''                                                                                                                                                                                        
g:spacevim_enable_key_frequency = 0                                                                                                                                                                                  
g:spacevim_max_column = 120                                                                                                                                                                                          
g:spacevim_enable_insert_leader = 1                                                                                                                                                                                  
g:spacevim_vim_help_language = 'en'                                                                                                                                                                                  
g:spacevim_plugin_groups_exclude = []                                                                                                                                                                                
g:spacevim_leader_guide_max_size = 0                                                                                                                                                                                 
g:spacevim_dein_installed = 1                                                                                                                                                                                        
g:spacevim_enable_neomake = 1                                                                                                                                                                                        
g:spacevim_relativenumber = 1                                                                                                                                                                                        
g:spacevim_warning_symbol = ''                                                                                                                                                                                      
g:spacevim_realtime_leader_guide = 1                                                                                                                                                                                 
g:spacevim_github_username = ''                                                                                                                                                                                      
g:spacevim_denite_leader = 'F'                                                                                                                                                                                       
g:spacevim_enable_cursorline = 1                                                                                                                                                                                     
g:spacevim_leader_guide_vertical = 0                                                                                                                                                                                 
g:spacevim_statusline_left_sections = ['winnr', 'filename', 'major mode', 'syntax checking', 'minor mode lighters', 'version control info', 'hunks']                                                                 
g:spacevim_enable_os_fileformat_icon = 1                                                                                                                                                                             
g:spacevim_leader_guide_position = 'botright'                                                                                                                                                                        
g:spacevim_version = '0.7.0-dev'                                                                                                                                                                                     
g:spacevim_force_global_config = 0                                                                                                                                                                                   
g:spacevim_enable_javacomplete2_py = 0                                                                                                                                                                               
g:spacevim_colorscheme = 'gruvbox'                                                                                                                                                                                   
g:spacevim_leader_guide_submode_mappings = {'<C-C>': 'win_close'}                                                                                                                                                    
g:spacevim_hiddenfileinfo = 1                                                                                                                                                                                        
g:spacevim_statusline_inactive_separator = 'arrow'                                                                                                                                                                   
g:spacevim_plugin_manager = 'dein'                                                                                                                                                                                   
g:spacevim_vim_plug_installed = 0                                                                                                                                                                                    
g:spacevim_windows_smartclose = 'q'                                                                                                                                                                                  
g:spacevim_windows_leader = 's'                                                                                                                                                                                      
g:spacevim_wildignore = '*/tmp/*,*.so,*.swp,*.zip,*.class,tags,*.jpg,*.ttf,*.TTF,*.png,*/target/*,.git,.svn,.hg,.DS_Store,*.svg'                                                                                     
g:spacevim_use_colorscheme = 1                                                                                                                                                                                       
g:spacevim_leader_guide_sort_horizontal = 0                                                                                                                                                                          
g:spacevim_enable_debug = 1                                                                                                                                                                                          
g:spacevim_enable_vimfiler_gitstatus = 0                                                                                                                                                                             
g:spacevim_autocomplete_method = 'deoplete'                                                                                                                                                                          
g:spacevim_plugin_manager_max_processes = 8                                                                                                                                                                          
g:spacevim_statusline_unicode_symbols = 1                                                                                                                                                                            
g:spacevim_enable_ycm = 0                                                                                                                                                                                            
g:spacevim_filetype_icons = {}                                                                                                                                                                                       
g:spacevim_leader_guide_run_map_on_popup = 1                                                                                                                                                                         
g:spacevim_neobundle_installed = 0                                                                                                                                                                                   
g:spacevim_leader_guide_flatten = 1                                                                                                                                                                                  
g:spacevim_sidebar_width = 30                                                                                                                                                                                        
g:spacevim_enable_googlesuggest = 0                                                                                                                                                                                  
g:spacevim_leader_guide_default_group_name = ''                                                                                                                                                                      
g:spacevim_terminal_cursor_shape = 2                                                                                                                                                                                 
g:spacevim_snippet_engine = 'neosnippet'                                                                                                                                                                             
g:spacevim_src_root = 'E:\sources\'                                                                                                                                                                                  
g:spacevim_enable_powerline_fonts = 1                                                                                                                                                                                
g:spacevim_enable_language_specific_leader = 1                                                                                                                                                                       
g:spacevim_simple_mode = 0                                                                                                                                                                                           
g:spacevim_enable_guicolors = 1   
                g:spacevim_enable_cursorcolumn = 0                              
g:spacevim_colorscheme_bg = 'dark'                                                                                                                                                                                   
g:spacevim_enable_vimfiler_welcome = 1                                                                                                                                                                               
g:spacevim_enable_vimfiler_filetypeicon = 0                                                                                                                                                                          
g:spacevim_statusline_right_sections = ['fileformat', 'cursorpos', 'percentage']                                                                                                                                     
g:spacevim_project_rooter_automatically = 1                                                                                                                                                                          
g:spacevim_guifont = ''                                                                                                                                                                                              
g:spacevim_language = ''                                                                                                                                                                                             
g:spacevim_plugin_bundle_dir = '/home/monkey/.cache/vimfiles/'                                                                                                                                                       
g:spacevim_project_rooter_patterns = ['.git/', '_darcs/', '.hg/', '.bzr/', '.svn/', '.clang']                                                                                                                        
g:spacevim_checkinstall = 1                                                                                                                                                                                          
g:spacevim_plugin_name = 'gruvbox'                                                                                                                                                                                   
g:spacevim_lint_on_the_fly = 0                                                                                                                                                                                       
g:spacevim_debug_level = 1                                                                                                                                                                                           
g:spacevim_filemanager = 'vimfiler'                                                                                                                                                                                  
g:spacevim_enable_statusline_display_mode = 0                                                                                                                                                                        
g:spacevim_enable_tabline_filetype_icon = 1                                                                                                                                                                          
g:spacevim_colorscheme_default = 'desert'                                                                                                                                                                            
g:spacevim_statusline_separator = 'arrow'                                                                                                                                                                            
g:spacevim_hosts_url = 'https://raw.githubusercontent.com/racaljk/hosts/master/hosts'                                                                                                                                
g:spacevim_enable_ale = 0                                                                                                                                                                                            
g:spacevim_search_tools = ['rg', 'ag', 'pt', 'ack', 'grep']                                                                                                                                                          
g:spacevim_custom_color_palette = []                                                                                                                                                                                 
g:spacevim_gitcommit_issue_icon = ''                                                                                                                                                                                
g:spacevim_auto_disable_touchpad = 1                                                                                                                                                                                 
g:spacevim_lint_on_save = 1                                                                                                                                                                                          
g:spacevim_keep_server_alive = 1                                                                                                                                                                                     
g:spacevim_unite_leader = 'f'                                                                                                                                                                                        
g:spacevim_disabled_plugins = []                                                                                                                                                                                     
g:spacevim_info_symbol = ''                                                                                                                                                                                         
g:spacevim_plugin_groups = ['web', 'lang', 'edit', 'ui', 'tools', 'checkers', 'format', 'chat', 'git', 'VersionControl', 'javascript', 'ruby', 'python', 'scala', 'lang#go', 'lang#markdown', 'scm', 'editing', 'inde
nts', 'navigation', 'misc', 'core', 'core#banner', 'core#statusline', 'core#tabline', 'default', 'unite', 'github', 'denite', 'ctrlp', 'autocomplete', 'nvim', 'linux', 'incsearch', 'lang#c', 'lang#elixir', 'lang#h
askell', 'lang#java', 'lang#javascript', 'lang#lua', 'lang#perl', 'lang#php', 'lang#python', 'lang#rust', 'lang#swig', 'lang#tmux', 'lang#vim', 'lang#xml', 'shell', 'tools#screensaver', 'colorscheme']             
g:spacevim_smartcloseignorewin = ['__Tagbar__', 'vimfiler:default']                                                                                                                                                  
g:spacevim_altmoveignoreft = ['Tagbar', 'vimfiler']                                                                                                                                                                  
g:spacevim_leader_guide_hspace = 5                                                                                                                                                                                   
g:spacevim_windows_index_type = 0                                                                                                                                                                                    
g:spacevim_enable_neocomplcache = 0                                                                                                                                                                                  

SpaceVim Health checking :

SpaceVim clipboard support check report:
Checking +clipboard:
SUCCEED!
SpaceVim environment check report:
Current progpath: nvim(/usr/bin/nvim)
version: 800
OS: Linux
[shell, shellcmdflag, shellslash]: ['/bin/zsh', '-c', 0]
SpaceVim lua support check report:
Checking +lua:
Failed : Known issue, neovim do not support lua now.
SpaceVim python support check report:
Checking +python3:
SUCCEED!
Checking +python:
SUCCEED!

SpaceVim runtime log :

[ SpaceVim ] : logger file  does not exists, only log for current process will be shown!                                                                                         
@wsdjeg
Copy link
Member

wsdjeg commented Feb 11, 2018

@jgonsior which version of spacevim do you use? do you have a try with SpaceVim latest version?

@jgonsior
Copy link
Author

My ~/.SpaceVim/ folder is updated to this commit: b8739be

@Shougo
Copy link

Shougo commented Feb 11, 2018

Please see the issue.

Shougo/deoplete.nvim#602 (comment)
Shougo/deoplete.nvim#602 (comment)

I think deoplete sources contain print().
I think the latest deoplete fixes the problem though.
Please check your deoplete version.

@jgonsior
Copy link
Author

My deoplete plugin is at the latest commit. too

@Shougo
Copy link

Shougo commented Feb 11, 2018

Hm. Please test deoplete without SpaceVim.
I think SpaceVim installed deoplete sources has the problem.

@jgonsior
Copy link
Author

Ok, I'm sure now the problem lies in Deoplete and not in SpaceVim, it even happens when I'm using Deoplete without SpaceVim. I went back one commit at a time to find out which one is producing the error, and the last stable on is this, the one breaking it therefore this one.

@jgonsior
Copy link
Author

Should I create an issue in Deoplete for the issue instead of here now?

@Shougo
Copy link

Shougo commented Feb 11, 2018

Really? I cannot reproduce the problem in my environment.
It is easy to revert the commit.
But I need to know the error reason.

@Shougo
Copy link

Shougo commented Feb 11, 2018

Please update deoplete to the latest version.

@jgonsior
Copy link
Author

Yay, thank you so much, it's working now!

@wsdjeg wsdjeg added this to the v0.7.0 milestone Mar 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants