jeaye / color_coded

A vim plugin for libclang-based highlighting of C, C++, ObjC
MIT License
870 stars 53 forks source link

Vim crashes while it tries to beep in terminal! #61

Open spamwax opened 9 years ago

spamwax commented 9 years ago

Running latest version of MacVim and color_coded. Coloring works for most part, but when vim tries to send a 'beep' signal to terminal it crashes.

This is what OSX reports: Report for vim

For example this happens when I am at the end of a file and keep pressing j!

Here are output of vim --version and list of libraries both vim and color_coded are linked against: diag info

I can reproduce this by disabling all other plugins except for color_coded and NeoBundle.

jeaye commented 9 years ago

If you disable the 'beep,' do you still get the crash (not a solution, just debugging)?

Try:

" No visual bell
set noerrorbells
set visualbell t_vb=
au GuiEnter * set visualbell t_vb=
spamwax commented 9 years ago

No, it didn't crash!!

I should have mentioned that the crash only happened when run in the terminal (not the MacVim gui)

jeaye commented 9 years ago

Thanks for letting me know. At least we have a very clear idea when the issue happens; I'll look into what can be done.

jeaye commented 9 years ago

@spamwax Which terminal are you using? I've not been able to reproduce this using iTerm2.

If you're using iTerm2, please let me know the version (and make sure you're up to date!)

spamwax commented 9 years ago

The crash still happens for me. I am using nightly builds of iTerm2: Build 2.9.20150921-nightly Vim's version:

-> % /usr/local/bin/vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Sep 12 2015 14:31:05)
MacOS X (unix) version
Included patches: 1-865

And this is list of my installed bundles:

" ===================================================================
NeoBundle 'Shougo/vimproc.vim', {
            \ 'build' : {
            \     'windows' : 'tools\\update-dll-mingw',
            \     'cygwin' : 'make -f make_cygwin.mak',
            \     'mac' : 'make -f make_mac.mak',
            \     'linux' : 'make',
            \     'unix' : 'gmake',
            \    },
            \ }
NeoBundleLazy 'jeaye/color_coded', {
      \ 'build': {
      \   'unix': 'cmake . && make && make install',
      \ },
      \ 'autoload' : { 'filetypes' : ['c', 'cpp', 'objc', 'objcpp'] },
      \ 'build_commands' : ['cmake', 'make']
  \}
" ===================================================================
" Priority #1 Plugins
" ===================================================================
NeoBundle 'jmcantrell/vim-virtualenv'
NeoBundle 'Lokaltog/vim-easymotion'
NeoBundle 'bling/vim-airline'
NeoBundle 'tpope/vim-commentary.git'
NeoBundle 'airblade/vim-rooter'
" ===================================================================
" Priority #2 Plugins
" ===================================================================
NeoBundle 'Shougo/unite.vim'
NeoBundle 'Shougo/unite-outline'
NeoBundle 'Shougo/neomru.vim'
" ===================================================================
" Priority #3 Plugins
" ===================================================================
NeoBundle 'Valloric/YouCompleteMe'
NeoBundle 'airblade/vim-gitgutter'
NeoBundle 'rizzatti/dash.vim'
bNeoBundle 'tpope/vim-unimpaired'
" ===================================================================
" Priority #4 Plugins
" ===================================================================
NeoBundle 'editorconfig/editorconfig-vim'
NeoBundle 'morhetz/gruvbox'
NeoBundle 'SirVer/ultisnips'
NeoBundle 'honza/vim-snippets'
" ===================================================================
" Priority #5 Plugins
" ===================================================================
NeoBundle 'scrooloose/nerdtree'
NeoBundle 'sjl/gundo.vim'
NeoBundle 'hdima/python-syntax'
NeoBundle 'vitalk/vim-simple-todo'
NeoBundle 'ton/vim-bufsurf'
jeaye commented 9 years ago

I've pushed up a number of changes which improve color_coded's stability. Have a look, when you can, and let me know if this is still an issue for you.

jeaye commented 9 years ago

@spamwax Any update?

spamwax commented 9 years ago

After updating, I recompiled the plugin but it still crashes

jeaye commented 8 years ago

@spamwax Is the config you posted above your full config? Would you mind trying to minimize your config to the smallest size possible which still reproduces the issue? I'd love to be able to reproduce this so we can get it fixed.

jeaye commented 8 years ago

Also, @spamwax, will you please update your MacVim fully? I believe the latest should be, on OS X, 7.4.909.

$ brew update ; brew upgrade --all
dragonxlwang commented 8 years ago

hi @jeaye , seems this problem still persists in the latest brew macvim + iterm + color_coded.

It doesn't happen in gui mac vim but only in iterm2 where visual bell is enabled...