color_coded icon indicating copy to clipboard operation
color_coded copied to clipboard

Vim crashes while it tries to beep in terminal!

Open spamwax opened this issue 9 years ago • 11 comments

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.

spamwax avatar Jul 01 '15 10:07 spamwax

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=

jeaye avatar Jul 01 '15 14:07 jeaye

No, it didn't crash!!

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

spamwax avatar Jul 01 '15 15:07 spamwax

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 avatar Jul 02 '15 00:07 jeaye

@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!)

jeaye avatar Sep 23 '15 05:09 jeaye

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'

spamwax avatar Sep 23 '15 19:09 spamwax

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 avatar Oct 18 '15 14:10 jeaye

@spamwax Any update?

jeaye avatar Oct 20 '15 01:10 jeaye

After updating, I recompiled the plugin but it still crashes

spamwax avatar Oct 20 '15 03:10 spamwax

@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 avatar Nov 16 '15 03:11 jeaye

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

jeaye avatar Nov 16 '15 03:11 jeaye

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...

dragonxlwang avatar Mar 19 '16 11:03 dragonxlwang