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

Error after update #1627

Closed
ghost opened this issue Jan 6, 2018 · 16 comments · Fixed by ryanoasis/vim-devicons#219
Closed

Error after update #1627

ghost opened this issue Jan 6, 2018 · 16 comments · Fixed by ryanoasis/vim-devicons#219

Comments

@ghost
Copy link

ghost commented Jan 6, 2018

  • vim: 8.0

  • OS: Xubuntu 16.04

  • What is your airline configuration:
    if you are using terminal:

  • terminal: xfce terminal

hi,

my plugin are broken after update.

when i start vim i have this :


Error detected while processing function <SNR>46_airline_refresh[11]..airline#load_theme[16]..airline#update_statusline[18]..<SNR>56_invoke_funcrefs[2]..airline#util#exec_funcrefs[2]..AirlineWebDevIcons:
line    1:
E121: Undefined variable: g:airline_section_x
E116: Invalid arguments for function get(w:, 'airline_section_x', g:airline_section_x)
E15: Invalid expression: get(w:, 'airline_section_x', g:airline_section_x)
line    2:
E121: Undefined variable: w:airline_section_x
Error detected while processing function <SNR>46_airline_refresh[12]..airline#update_statusline[18]..<SNR>56_invoke_funcrefs[2]..airline#util#exec_funcrefs[2]..AirlineWebDevIcons:
line    1:
E121: Undefined variable: g:airline_section_x
E116: Invalid arguments for function get(w:, 'airline_section_x', g:airline_section_x)
E15: Invalid expression: get(w:, 'airline_section_x', g:airline_section_x)
line    2:
E121: Undefined variable: w:airline_section_x

my config :

let g:airline#extensions#tabline#enabled = 1
let g:airline_powerline_fonts = 1
let g:airline_theme='solarized'


@chrisbra
Copy link
Member

chrisbra commented Jan 6, 2018

can you find out, which commit broke it? Please provide a minimal example that breaks it (i see you are using the webdevicons plugin). What is your airline version and vim version?

@chrisbra
Copy link
Member

chrisbra commented Jan 6, 2018

Also I wonder why your g:airline_section_x is not defined. That should always exist

@chrisbra
Copy link
Member

chrisbra commented Jan 6, 2018

The problem comes from the webdevicons plugin, so I just created a patch for that. Anyhow, I still wonder how you managed to unset the g:airline_section_x variable.

@ghost
Copy link
Author

ghost commented Jan 6, 2018

thanks for reactivity,

i don't unset g:airline_section_x variable.
but she's not in my vimrc

@chrisbra
Copy link
Member

chrisbra commented Jan 6, 2018

well, please provide a minimal example that reproduces the issue.

@ghost
Copy link
Author

ghost commented Jan 6, 2018

fixed with this let g:airline_section_x = '' in my vimrc

@chrisbra
Copy link
Member

chrisbra commented Jan 6, 2018

that shouldn't be necessary. It is initialized here
That's why I asked, please provide a minimal example to reproduce your issue

@ghost
Copy link
Author

ghost commented Jan 6, 2018

how i can provide example ?

that's strange, when i start vim without let g:airline_section_x = ''

i have this error message

Error detected while processing function <SNR>46_airline_refresh[11]..airline#load_theme[16]..airline#update_statusline[18]..<SNR>56_invoke_funcrefs[2]..airline#util#exec_funcrefs[2]..AirlineWebDevIcons: line 1: E121: Undefined variable: g:airline_section_x E116: Invalid arguments for function get(w:, 'airline_section_x', g:airline_section_x) E15: Invalid expression: get(w:, 'airline_section_x', g:airline_section_x) line 2: E121: Undefined variable: w:airline_section_x Error detected while processing function <SNR>46_airline_refresh[12]..airline#update_statusline[18]..<SNR>56_invoke_funcrefs[2]..airline#util#exec_funcrefs[2]..AirlineWebDevIcons: line 1: E121: Undefined variable: g:airline_section_x E116: Invalid arguments for function get(w:, 'airline_section_x', g:airline_section_x) E15: Invalid expression: get(w:, 'airline_section_x', g:airline_section_x) line 2: E121: Undefined variable: w:airline_section_x

but everything works properly when i skip this message

screenshot_2018-01-06_13-50-45

screenshot_2018-01-06_13-51-34

@chrisbra
Copy link
Member

chrisbra commented Jan 6, 2018

well, it must depend on your configuration/plugins, etc. So what is the minimal needed configuration to reproduce this problem?

@ghost
Copy link
Author

ghost commented Jan 6, 2018

call plug#begin('~/.vim/plugged')

if has('nvim')
  Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
else
  Plug 'Shougo/deoplete.nvim'
  Plug 'roxma/nvim-yarp'
  Plug 'roxma/vim-hug-neovim-rpc'
endif
" Use deoplete.
let g:deoplete#enable_at_startup = 1

Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'ryanoasis/vim-devicons'

call plug#end()

@chrisbra
Copy link
Member

chrisbra commented Jan 6, 2018

so this only happens with neovim?

@chrisbra
Copy link
Member

chrisbra commented Jan 6, 2018

if I use this config, I get this message:

Messages maintainer: Bram Moolenaar <Bram@vim.org>
[vim-hug-neovim-rpc] failed executing: pythonx import neovim
[vim-hug-neovim-rpc] Vim(pythonx):Traceback (most recent call last):
[deoplete] [vim-hug-neovim-rpc] requires `:pythonx import neovim` command to work
[deoplete] function deoplete#enable[1]..deoplete#initialize[1]..deoplete#init#_initialize[19]..deoplete#init#_channel[10]..yarp#core#notify[1]..yarp#core#wait_channel[5]..yarp#core#jobstart[2]..yarp#pyx#init[13]..yarp#core#serveraddr[1]..neovim_rpc#serveraddr, line 15

and when I try this with neovim I get:

[deoplete] Vim(call):E117: Unknown function: _deoplete_init
[deoplete] function deoplete#enable[1]..deoplete#initialize[1]..deoplete#init#_initialize[19]..deoplete#init#_channel, line 17
[deoplete] deoplete requires Python3 support("+python3").
[deoplete] deoplete failed to load. Try the :UpdateRemotePlugins command and restart Neovim. See also :CheckHealth.

Neither of those is the mentioned airline error :(

@ghost
Copy link
Author

ghost commented Jan 6, 2018

i use vim 8 not neovim

yesterday i have this issue too :

[deoplete] function deoplete#enable[1]..deoplete#initialize[1]..deoplete#init#_initialize[19]..deoplete#init#_channel[10]..yarp#core#notify[1]..yarp#core#wait_channel[5]..yarp#core#jobstart[2]..yarp#pyx#init[13]..yarp#core#serveraddr[1]..neovim_rpc#serveraddr, line 15

when i remove deoplete, dont have error with airline

possible conflict with deoplete ?

@chrisbra
Copy link
Member

chrisbra commented Jan 6, 2018

possible BTW: are you sure, that those two plugins

  Plug 'roxma/nvim-yarp'
  Plug 'roxma/vim-hug-neovim-rpc'

should be loaded in vim?

@ghost
Copy link
Author

ghost commented Jan 6, 2018

i restore old backup and fixed it, i think I did something wrong.

thanks for the time that you granted me.

@chrisbra chrisbra closed this as completed Jan 6, 2018
@ghost
Copy link
Author

ghost commented Jan 6, 2018

im come back after PlugUpdate last update of vim-airlines and vim-airlines theme the same issue.

i think there is a conflict with vim-airline, deoplete and vim-devicons...

in the meantime I place let g:airline_section_x = '' in my vimrc and is ok

slabua added a commit to slabua/vim-devicons that referenced this issue Jan 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant