Bunch of error messages
flamendless opened this issue ยท 6 comments
Hey, ive installed vaxe
using Vundle
.
Opening a .hx
file shows this error on vim startup
Error detected while processing /home/brbl/.vim/bundle/vaxe/ftplugin/haxe.vim:
line 35:
E121: Undefined variable: g:airline_statusline_funcrefs
E116: Invalid arguments for function add
E121: Undefined variable: g:airline_statusline_funcrefs
E116: Invalid arguments for function add
Note, i am using airline. Ive tried adding let g:vaxe_enable_airline = 0
in my .vimrc
, does not do anything
Could you find a solution?
@schmidh nope. This plugin isnt maintained I suppose
Sent from my HUAWEI GR5 2017 using FastHub
Only when you try to open a haxe file from the command line this error happens. From within vim everything works fine. Problem is that airline has not been loaded when the code in haxe.vim runs. One could check to see if the global variable g:airline_statusline_funcrefs exists and if not, then don't call the add function. Then you wouldn't have status line information as the code for airline will be called afterwards. Seems like a catch 22. At least one would not get an error message.
I tried also with VAM and added a addon-info.json file as it has some sort of dependency management built in. But didn't help either.
Thanks for the detail there. Sounds like a bug with airline?
I see a problem with the readme, can you try this?
let g:vaxe_enable_airline_defaults = 0
Hi Justin,
sorry for the long delay.
It works! Thanks a lot.