vim-syntastic / syntastic

Syntax checking hacks for vim
Do What The F*ck You Want To Public License
11.3k stars 1.14k forks source link

Syntastic installed on server has no gcc checker available #1245

Closed wsfreund closed 9 years ago

wsfreund commented 9 years ago

Hello,

I've installed yesterday syntastic at my computer and it is working successfully. I've uploaded my .vimrc to a server, and installed it with the same approach there, but syntastic does not have any available checkers for C and CPP there, although python and other checkers seem to work. When I do SyntasticInfo on server I get:

Syntastic version: 3.5.0-72
Info for filetype: cpp Mode: active Filetype cpp is active Available checkers: - Currently enabled checkers: -

And when I save a file, it gives me:

syntastic: 510.545502: &shell = '/bin/zsh', &shellcmdflag = '-c', &shellpipe = '2>&1| tee', &shellquote = '', &shellredir = '>%s 2>&1', &shellslash = 0, &shelltemp = 1, &shellxquo te = '', &shellxescape = '' syntastic: 510.545829: UpdateErrors (auto): default checkers syntastic: 510.546285: CacheErrors: default checkers syntastic: 510.547190: g:syntastic_aggregate_errors = 1 syntastic: 510.547451: getcwd() = /afs/someplace syntastic: 510.547939: CacheErrors: Checker cpp/gcc is not available syntastic: 510.548215: CacheErrors: no checkers available for cpp

Any ideas? Do you need more log information? If so, just tell me which commands to run.

Thanks, Werner.

lcd047 commented 9 years ago

Do you have either gcc or clang installed? If you do, do you have either g++ or clang++ in your $PATH?

wsfreund commented 9 years ago

Yes, I have them:

(%:~)- which gcc /usr/bin/gcc

(%:~)- which g++ /usr/bin/g++

lcd047 commented 9 years ago

Ok. Do you have YouCompleteMe or Eclim installed?

Shaofanl commented 9 years ago

I have the same issue. After I turn on the syntatic_debug and open some .cpp file, it shows:

"compress.cpp" 9L, 90C syntastic: 0.038220: g:syntastic_version = '3.5.0-65' syntastic: 0.038435: &shell = '/bin/bash', &shellcmdflag = '-c', &shellpipe = '2>&1| tee', &shellquote = '', &shellredir = '>%s 2>&1', &shellslash = 0 , &shelltemp = 1, &shellxquote = '', &shellxescape = '' syntastic: 0.038664: UpdateErrors (auto): default checkers syntastic: 0.039036: CacheErrors: default checkers syntastic: 0.039725: g:syntastic_aggregate_errors = 0 syntastic: 0.039889: getcwd() = /someplace syntastic: 0.052431: CacheErrors: Invoking checker: cpp/gcc syntastic: 0.059019: SyntasticMake: called with options: {'postprocess': ['filterForeignErrors'], 'errorformat': '%-G%f:%s:,%f:%l:%c: %trror: %m,%f:%l :%c: %tarning: %m,%f:%l:%c: %m,%f:%l: %trror: %m,%f:%l: %tarning: %m,%f:%l: %m', 'makeprg': '''clang++'' -x c++ -fsyntax-only -std=c++11 -I. -I.. -Iin clude -Iincludes -I../include -I../includes -I/usr/include/ compress.cpp'} syntastic: 0.273597: getLocList: checker cpp/gcc returned 0

But when you save the file in vim, it shows:

syntastic: 107.573864: g:syntastic_version = '3.5.0-65' syntastic: 107.574229: &shell = '/bin/bash', &shellcmdflag = '-c', &shellpipe = '2>&1| tee', &shellquote = '', &shellredir = '>%s 2>&1', &shellslash = 0, &shelltemp = 1, &shellxquote = '', &shellxescape = '' syntastic: 107.574647: UpdateErrors (auto): default checkers syntastic: 107.575360: CacheErrors: default checkers syntastic: 107.576736: g:syntastic_aggregate_errors = 0 syntastic: 107.577042: getcwd() = /someplace syntastic: 107.577709: CacheErrors: no checkers available for cpp

lcd047 commented 9 years ago

I have the same issue.

You don't have the same issue (for one, you aren't running on AFS). Please open your own thread, and explain what you did, what did you expect to happen, and what happened instead.

syntastic: 0.039889: getcwd() = /someplace

Also, please don't tamper with the evidence. It's there for a reason.

wsfreund commented 9 years ago

No, I don't have YouCompleteMe, and I am working on a vim74 locally compiled (I don't have admin rights) with the following ./configure commands:

./configure —enable-cscope --with-features=huge --enable-pythoninterp --prefix=$HOME/bin --enable-luainterp

which, after compiled (I had to make some alterations on src/Makefile to make it possible to compile correctly with lua and locally) has the following vim —version:

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 12 2014 21:01:28)
Compiled by someuser@somehost Huge version with GTK2 GUI. Features included (+) or not (-): +arabic +file_in_path +mouse_sgr +tag_binary +autocmd +find_in_path -mouse_sysmouse +tag_old_static +balloon_eval +float +mouse_urxvt -tag_any_white +browse +folding +mouse_xterm -tcl ++builtin_terms -footer +multi_byte +terminfo +byte_offset +fork() +multi_lang +termresponse +cindent +gettext -mzscheme +textobjects +clientserver -hangul_input +netbeans_intg +title +clipboard +iconv +path_extra +toolbar +cmdline_compl +insert_expand -perl +user_commands +cmdline_hist +jumplist +persistent_undo +vertsplit +cmdline_info +keymap +postscript +virtualedit +comments +langmap +printer +visual +conceal +libcall +profile +visualextra +cryptv +linebreak +python +viminfo +cscope +lispindent -python3 +vreplace +cursorbind +listcmds +quickfix +wildignore +cursorshape +localmap +reltime +wildmenu +dialog_con_gui +lua +rightleft +windows +diff +menu -ruby +writebackup +digraphs +mksession +scrollbind +X11 +dnd +modify_fname +signs -xfontset -ebcdic +mouse +smartindent +xim +emacs_tags +mouseshape -sniff +xsmp_interact +eval +mouse_dec +startuptime +xterm_clipboard +ex_extra -mouse_gpm +statusline -xterm_save +extra_search -mouse_jsbterm -sun_workshop +farsi +mouse_netterm +syntax system vimrc file: "$VIM/vimrc" user vimrc file: "$HOME/.vimrc" 2nd user vimrc file: "~/.vim/vimrc" user exrc file: "$HOME/.exrc" system gvimrc file: "$VIM/gvimrc" user gvimrc file: "$HOME/.gvimrc" 2nd user gvimrc file: "~/.vim/gvimrc" system menu file: "$VIMRUNTIME/menu.vim" fall-back for $VIM: "/afs/someplace"

The packages I am using are:

" let Vundle manage Vundle, required Plugin 'gmarik/Vundle.vim'

Plugin 'mbadran/headlights' " Adds menu to vim Plugin 'Shougo/neocomplete.vim' " Adds autocomplete Plugin 'scrooloose/nerdtree' " The NERDTREE! Plugin 'jistr/vim-nerdtree-tabs' " Set nerdtree compatible with tabs Plugin 'altercation/vim-colors-solarized' " Nice color package Plugin 'scrooloose/syntastic' " Really nice pre-compile error check Plugin 'majutsushi/tagbar' " Nice class navigatation Plugin 'gilsondev/searchtasks.vim' " Use to search TODO, FIXME, XXX on project (SearchTasksGrep */.m) Plugin 'mbbill/undotree' " Add visualization and interaction with undotree Plugin 'tpope/vim-fugitive' " Git integration to vim Plugin 'tpope/vim-pathogen' " Although this is not been used, it deserves to stay here. Plugin 'vim-scripts/YankRing.vim' " A really good extra yanking tool.

lcd047 commented 9 years ago

Probably unrelated to your problem, but I'd suggest using a recent Vim snapshot. Plain 7.4 has some serious bugs that have been fixed in the mean time.

Anyway, please post the output of:

:echo executable('g++')
wsfreund commented 9 years ago

It gives 1.

lcd047 commented 9 years ago

Please open a C++ file, run :SyntasticInfo, run :echo &rtp, and post the output.

Edit: Please make the last one: :verbose set rtp.

wsfreund commented 9 years ago

:SyntasticInfo

Syntastic version: 3.5.0-72
Info for filetype: cpp
Mode: active
Filetype cpp is active
Available checkers: -
Currently enabled checkers: -

echo &rtp

/afs/cern.ch/user/w/wsfreund/.vim,/afs/cern.ch/user/w/wsfreund/.vim/bundle/Vundle.vim,/afs/cern.ch/user/w/wsfreund/.vim/bundle/headlights,/afs/cern.ch/user/w/wsfreund/.vim/bundle
/neocomplete.vim,/afs/cern.ch/user/w/wsfreund/.vim/bundle/nerdtree,/afs/cern.ch/user/w/wsfreund/.vim/bundle/vim-nerdtree-tabs,/afs/cern.ch/user/w/wsfreund/.vim/bundle/vim-colors-
solarized,/afs/cern.ch/user/w/wsfreund/.vim/bundle/syntastic,/afs/cern.ch/user/w/wsfreund/.vim/bundle/tagbar,/afs/cern.ch/user/w/wsfreund/.vim/bundle/searchtasks.vim,/afs/cern.ch
/user/w/wsfreund/.vim/bundle/undotree,/afs/cern.ch/user/w/wsfreund/.vim/bundle/vim-fugitive,/afs/cern.ch/user/w/wsfreund/.vim/bundle/vim-pathogen,/afs/cern.ch/user/w/wsfreund/.vi
m/bundle/YankRing.vim,/afs/cern.ch/user/w/wsfreund/vim/share/vim/vimfiles,/afs/cern.ch/user/w/wsfreund/vim/share/vim/vim74,/afs/cern.ch/user/w/wsfreund/vim/share/vim/vimfiles/aft
er,/afs/cern.ch/user/w/wsfreund/.vim/after,/afs/cern.ch/user/w/wsfreund/.vim/bundle/Vundle.vim,/afs/cern.ch/user/w/wsfreund/.vim/bundle/Vundle.vim/after,/afs/cern.ch/user/w/wsfre
und/.vim/bundle/headlights/after,/afs/cern.ch/user/w/wsfreund/.vim/bundle/neocomplete.vim/after,/afs/cern.ch/user/w/wsfreund/.vim/bundle/nerdtree/after,/afs/cern.ch/user/w/wsfreu
nd/.vim/bundle/vim-nerdtree-tabs/after,/afs/cern.ch/user/w/wsfreund/.vim/bundle/vim-colors-solarized/after,/afs/cern.ch/user/w/wsfreund/.vim/bundle/syntastic/after,/afs/cern.ch/u
ser/w/wsfreund/.vim/bundle/tagbar/after,/afs/cern.ch/user/w/wsfreund/.vim/bundle/searchtasks.vim/after,/afs/cern.ch/user/w/wsfreund/.vim/bundle/undotree/after,/afs/cern.ch/user/w
/wsfreund/.vim/bundle/vim-fugitive/after,/afs/cern.ch/user/w/wsfreund/.vim/bundle/vim-pathogen/after,/afs/cern.ch/user/w/wsfreund/.vim/bundle/YankRing.vim/after
lcd047 commented 9 years ago

Please open a C++ file, run :SyntasticInfo, run :verbose set rtp and post the output.

wsfreund commented 9 years ago

Results from :SyntasticInfo

Syntastic version: 3.5.0-72
Info for filetype: cpp
Mode: active
Filetype cpp is active
Available checkers: -
Currently enabled checkers: -

Results from :verbose set rtp

runtimepath=~/.vim,~/.vim/bundle/Vundle.vim,~/.vim/bundle/headlights,~/.vim/bundle/neocomplete.vim,~/.vim/bundle/nerdtree,~/.vim/bundle/vim-nerdtree-tabs,~/.vim/bundle/vim-colors-solarized,~/.vim/bundle/syntastic,~/.vim/bundle/tagbar,~/.vim/bundle/searchtasks.vim,~/.vim/bundle/undotree,~/.vim/bundle/vim-fugitive,~/.vim/bundle/vimpathogen,~/.vim/bundle/YankRing.vim,~/vim/share/vim/vimfiles,~/vim/share/vim/vim74,~/vim/share/vim/vimfiles/after,~/.vim/after,~/.vim/bundle/Vundle.vim,~/.vim/bundle/Vundle.vim/after,~/.vim/bundle/headlights/after,~/.vim/bundle/neocomplete.vim/after,~/.vim/bundle/nerdtree/after,~/.vim/bundle/vim-nerdtree-tabs/after,~/.vim/bundle/vim-colors-solarized/after,~/.vim/bundle/syntastic/after,~/.vim/bundle/tagbar/after,~/.vim/bundle/searchtasks.vim/after,~/.vim/bundle/undotree/after,~/.vim/bundle/vim-fugitive/after,~/.vim/bundle/vim-pathogen/after,~/.vim/bundle/YankRing.vim/after
        Last set from ~/.vim/bundle/Vundle.vim/autoload/vundle/config.vim
wsfreund commented 9 years ago

Adding more information, if I run scriptnames, I get:

  1: ~/.vimrc
  2: ~/vim/share/vim/vim74/ftoff.vim
  3: ~/.vim/bundle/Vundle.vim/autoload/vundle.vim
  4: ~/.vim/bundle/Vundle.vim/autoload/vundle/config.vim
  5: ~/vim/share/vim/vim74/filetype.vim
  6: ~/vim/share/vim/vim74/ftplugin.vim
  7: ~/vim/share/vim/vim74/indent.vim
  8: ~/vim/share/vim/vim74/delmenu.vim
  9: ~/vim/share/vim/vim74/menu.vim
 10: ~/vim/share/vim/vim74/autoload/paste.vim
 11: ~/vim/share/vim/vim74/syntax/syntax.vim
 12: ~/vim/share/vim/vim74/syntax/synload.vim
 13: ~/vim/share/vim/vim74/syntax/syncolor.vim
 14: ~/.vim/bundle/vim-colors-solarized/colors/solarized.vim
 15: ~/.vim/bundle/headlights/plugin/headlights.vim
 16: ~/.vim/bundle/neocomplete.vim/plugin/neocomplete/buffer.vim
 17: ~/.vim/bundle/neocomplete.vim/plugin/neocomplete/dictionary.vim
 18: ~/.vim/bundle/neocomplete.vim/plugin/neocomplete/include.vim
 19: ~/.vim/bundle/neocomplete.vim/plugin/neocomplete/syntax.vim
 20: ~/.vim/bundle/neocomplete.vim/plugin/neocomplete/tag.vim
 21: ~/.vim/bundle/neocomplete.vim/plugin/neocomplete.vim
 22: ~/.vim/bundle/nerdtree/plugin/NERD_tree.vim
 23: ~/.vim/bundle/nerdtree/autoload/nerdtree.vim
 24: ~/.vim/bundle/nerdtree/lib/nerdtree/path.vim
 25: ~/.vim/bundle/nerdtree/lib/nerdtree/menu_controller.vim
 26: ~/.vim/bundle/nerdtree/lib/nerdtree/menu_item.vim
 27: ~/.vim/bundle/nerdtree/lib/nerdtree/key_map.vim
 28: ~/.vim/bundle/nerdtree/lib/nerdtree/bookmark.vim
 29: ~/.vim/bundle/nerdtree/lib/nerdtree/tree_file_node.vim
 30: ~/.vim/bundle/nerdtree/lib/nerdtree/tree_dir_node.vim
 31: ~/.vim/bundle/nerdtree/lib/nerdtree/opener.vim
 32: ~/.vim/bundle/nerdtree/lib/nerdtree/creator.vim
 33: ~/.vim/bundle/nerdtree/lib/nerdtree/flag_set.vim
 34: ~/.vim/bundle/nerdtree/lib/nerdtree/nerdtree.vim
 35: ~/.vim/bundle/nerdtree/lib/nerdtree/ui.vim
 36: ~/.vim/bundle/nerdtree/lib/nerdtree/event.vim
 37: ~/.vim/bundle/nerdtree/lib/nerdtree/notifier.vim
 38: ~/.vim/bundle/nerdtree/autoload/nerdtree/ui_glue.vim
 39: ~/.vim/bundle/nerdtree/nerdtree_plugin/exec_menuitem.vim
 40: ~/.vim/bundle/nerdtree/nerdtree_plugin/fs_menu.vim
 41: ~/.vim/bundle/vim-nerdtree-tabs/nerdtree_plugin/vim-nerdtree-tabs.vim
 42: ~/.vim/bundle/syntastic/plugin/syntastic/autoloclist.vim
 43: ~/.vim/bundle/syntastic/plugin/syntastic/balloons.vim
 44: ~/.vim/bundle/syntastic/plugin/syntastic/checker.vim
 45: ~/.vim/bundle/syntastic/plugin/syntastic/cursor.vim
 46: ~/.vim/bundle/syntastic/plugin/syntastic/highlighting.vim
 47: ~/.vim/bundle/syntastic/plugin/syntastic/loclist.vim
 48: ~/.vim/bundle/syntastic/plugin/syntastic/modemap.vim
 49: ~/.vim/bundle/syntastic/plugin/syntastic/notifiers.vim
 50: ~/.vim/bundle/syntastic/plugin/syntastic/registry.vim
 51: ~/.vim/bundle/syntastic/plugin/syntastic/signs.vim
 52: ~/.vim/bundle/syntastic/plugin/syntastic.vim
 53: ~/.vim/bundle/syntastic/autoload/syntastic/log.vim
 54: ~/.vim/bundle/syntastic/autoload/syntastic/util.vim
 55: ~/.vim/bundle/tagbar/plugin/tagbar.vim
 56: ~/.vim/bundle/searchtasks.vim/plugin/searchtasks.vim
 57: ~/.vim/bundle/undotree/plugin/undotree.vim
 58: ~/.vim/bundle/vim-fugitive/plugin/fugitive.vim
 59: ~/.vim/bundle/YankRing.vim/plugin/yankring.vim
 60: ~/vim/share/vim/vim74/plugin/getscriptPlugin.vim
 61: ~/vim/share/vim/vim74/plugin/gzip.vim
 62: ~/vim/share/vim/vim74/plugin/matchparen.vim
 63: ~/vim/share/vim/vim74/plugin/netrwPlugin.vim
 64: ~/vim/share/vim/vim74/plugin/rrhelper.vim
 65: ~/vim/share/vim/vim74/plugin/spellfile.vim
 66: ~/vim/share/vim/vim74/plugin/tarPlugin.vim
 67: ~/vim/share/vim/vim74/plugin/tohtml.vim
 68: ~/vim/share/vim/vim74/plugin/vimballPlugin.vim
 69: ~/vim/share/vim/vim74/plugin/zipPlugin.vim
 70: ~/vim/share/vim/vim74/ftplugin/cpp.vim
 71: ~/vim/share/vim/vim74/ftplugin/c.vim
 72: ~/vim/share/vim/vim74/indent/cpp.vim
 73: ~/vim/share/vim/vim74/syntax/cpp.vim
 74: ~/vim/share/vim/vim74/syntax/c.vim
 75: ~/.vim/bundle/nerdtree/syntax/nerdtree.vim
 76: ~/vim/share/vim/vim74/ftplugin/qf.vim
 77: ~/vim/share/vim/vim74/syntax/qf.vim
 78: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete/init.vim
 79: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete.vim
 80: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete/util.vim
 81: ~/.vim/bundle/neocomplete.vim/autoload/vital.vim
 82: ~/.vim/bundle/neocomplete.vim/autoload/vital/_neocomplete.vim
 83: ~/.vim/bundle/neocomplete.vim/autoload/vital/_neocomplete/Prelude.vim
 84: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete/commands.vim
 85: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete/mappings.vim
 86: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete/echodoc.vim
 87: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete/context_filetype.vim
 88: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete/variables.vim
 89: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete/sources/buffer.vim
 90: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete/custom.vim
 91: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete/filters/matcher_fuzzy.vim
 92: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete/filters/matcher_length.vim
 93: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete/filters/sorter_rank.vim
 94: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete/filters/converter_remove_last_paren.vim
 95: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete/filters/converter_remove_overlap.vim
 96: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete/filters/converter_delimiter.vim
 97: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete/filters/converter_case.vim
 98: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete/filters/converter_abbr.vim
 99: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete/sources/dictionary.vim
100: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete/sources/file.vim
101: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete/filters/sorter_filename.vim
102: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete/sources/file_include.vim
103: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete/sources/include.vim
104: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete/sources/member.vim
105: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete/sources/omni.vim
106: ~/.vim/bundle/neocomplete.vim/autoload/vital/_neocomplete/Data/List.vim
107: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete/sources/syntax.vim
108: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete/sources/tag.vim
109: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete/sources/vim.vim
110: ~/.vim/bundle/neocomplete.vim/autoload/neocomplete/handler.vim
111: ~/.vim/bundle/syntastic/syntax_checkers/cpp/clang_check.vim
112: ~/.vim/bundle/syntastic/syntax_checkers/c/avrgcc.vim
113: ~/.vim/bundle/syntastic/syntax_checkers/c/checkpatch.vim
114: ~/.vim/bundle/syntastic/syntax_checkers/c/clang_check.vim
115: ~/.vim/bundle/syntastic/syntax_checkers/c/clang_tidy.vim
116: ~/.vim/bundle/syntastic/syntax_checkers/c/cppcheck.vim
117: ~/.vim/bundle/syntastic/syntax_checkers/c/gcc.vim
118: ~/.vim/bundle/syntastic/syntax_checkers/c/make.vim
119: ~/.vim/bundle/syntastic/syntax_checkers/c/oclint.vim
120: ~/.vim/bundle/syntastic/syntax_checkers/c/pc_lint.vim
121: ~/.vim/bundle/syntastic/syntax_checkers/c/sparse.vim
122: ~/.vim/bundle/syntastic/syntax_checkers/c/splint.vim
123: ~/.vim/bundle/syntastic/syntax_checkers/cpp/clang_tidy.vim
124: ~/.vim/bundle/syntastic/syntax_checkers/cpp/cppcheck.vim
125: ~/.vim/bundle/syntastic/syntax_checkers/cpp/cpplint.vim
126: ~/.vim/bundle/syntastic/syntax_checkers/cpp/gcc.vim
127: ~/.vim/bundle/syntastic/syntax_checkers/cpp/oclint.vim
128: ~/.vim/bundle/syntastic/syntax_checkers/cpp/pc_lint.vim
lcd047 commented 9 years ago

I'm afraid this doesn't make any sense. Does the problem persists if you keep syntastic enabled and disable all other plugins?

wsfreund commented 9 years ago

I'm afraid that yes, it continues. I've unset all plugins and it is not able to find any checkers:

SyntasticInfo

Syntastic version: 3.5.0-72
Info for filetype: cpp
Mode: active
Filetype cpp is active
Available checkers: -
Currently enabled checkers: -

echo &rtp

/afs/cern.ch/user/w/wsfreund/.vim,/afs/cern.ch/user/w/wsfreund/.vim/bundle/Vundle.vim,/afs/cern.ch/user/w/wsfreund/.vim/bundle/syntastic,/afs/cern.ch/user/w/wsfreund/vim/share/vi
m/vimfiles,/afs/cern.ch/user/w/wsfreund/vim/share/vim/vim74,/afs/cern.ch/user/w/wsfreund/vim/share/vim/vimfiles/after,/afs/cern.ch/user/w/wsfreund/.vim/after,/afs/cern.ch/user/w/
wsfreund/.vim/bundle/Vundle.vim,/afs/cern.ch/user/w/wsfreund/.vim/bundle/Vundle.vim/after,/afs/cern.ch/user/w/wsfreund/.vim/bundle/syntastic/after

verbose set rtp

        Last set from ~/.vim/bundle/Vundle.vim/autoload/vundle/config.vim

scriptnames

  1: ~/.vimrc
  2: ~/vim/share/vim/vim74/ftoff.vim
  3: ~/.vim/bundle/Vundle.vim/autoload/vundle.vim
  4: ~/.vim/bundle/Vundle.vim/autoload/vundle/config.vim
  5: ~/vim/share/vim/vim74/filetype.vim
  6: ~/vim/share/vim/vim74/ftplugin.vim
  7: ~/vim/share/vim/vim74/indent.vim
  8: ~/vim/share/vim/vim74/delmenu.vim
  9: ~/vim/share/vim/vim74/menu.vim
 10: ~/vim/share/vim/vim74/autoload/paste.vim
 11: ~/vim/share/vim/vim74/syntax/syntax.vim
 12: ~/vim/share/vim/vim74/syntax/synload.vim
 13: ~/vim/share/vim/vim74/syntax/syncolor.vim
 14: ~/.vim/bundle/syntastic/plugin/syntastic/autoloclist.vim
 15: ~/.vim/bundle/syntastic/plugin/syntastic/balloons.vim
 16: ~/.vim/bundle/syntastic/plugin/syntastic/checker.vim
 17: ~/.vim/bundle/syntastic/plugin/syntastic/cursor.vim
 18: ~/.vim/bundle/syntastic/plugin/syntastic/highlighting.vim
 19: ~/.vim/bundle/syntastic/plugin/syntastic/loclist.vim
 20: ~/.vim/bundle/syntastic/plugin/syntastic/modemap.vim
 21: ~/.vim/bundle/syntastic/plugin/syntastic/notifiers.vim
 22: ~/.vim/bundle/syntastic/plugin/syntastic/registry.vim
 23: ~/.vim/bundle/syntastic/plugin/syntastic/signs.vim
 24: ~/.vim/bundle/syntastic/plugin/syntastic.vim
 25: ~/.vim/bundle/syntastic/autoload/syntastic/log.vim
 26: ~/.vim/bundle/syntastic/autoload/syntastic/util.vim
 27: ~/vim/share/vim/vim74/plugin/getscriptPlugin.vim
 28: ~/vim/share/vim/vim74/plugin/gzip.vim
 29: ~/vim/share/vim/vim74/plugin/matchparen.vim
 30: ~/vim/share/vim/vim74/plugin/netrwPlugin.vim
 31: ~/vim/share/vim/vim74/plugin/rrhelper.vim
 32: ~/vim/share/vim/vim74/plugin/spellfile.vim
 33: ~/vim/share/vim/vim74/plugin/tarPlugin.vim
 34: ~/vim/share/vim/vim74/plugin/tohtml.vim
 35: ~/vim/share/vim/vim74/plugin/vimballPlugin.vim
 36: ~/vim/share/vim/vim74/plugin/zipPlugin.vim
 37: ~/vim/share/vim/vim74/ftplugin/cpp.vim
 38: ~/vim/share/vim/vim74/ftplugin/c.vim
 39: ~/vim/share/vim/vim74/indent/cpp.vim
 40: ~/vim/share/vim/vim74/syntax/cpp.vim
 41: ~/vim/share/vim/vim74/syntax/c.vim
 42: ~/.vim/bundle/syntastic/syntax_checkers/cpp/clang_check.vim
 43: ~/.vim/bundle/syntastic/syntax_checkers/c/avrgcc.vim
 44: ~/.vim/bundle/syntastic/syntax_checkers/c/checkpatch.vim
 45: ~/.vim/bundle/syntastic/syntax_checkers/c/clang_check.vim
 46: ~/.vim/bundle/syntastic/syntax_checkers/c/clang_tidy.vim
 47: ~/.vim/bundle/syntastic/syntax_checkers/c/cppcheck.vim
 48: ~/.vim/bundle/syntastic/syntax_checkers/c/gcc.vim
 49: ~/.vim/bundle/syntastic/syntax_checkers/c/make.vim
 50: ~/.vim/bundle/syntastic/syntax_checkers/c/oclint.vim
 51: ~/.vim/bundle/syntastic/syntax_checkers/c/pc_lint.vim
 52: ~/.vim/bundle/syntastic/syntax_checkers/c/sparse.vim
 53: ~/.vim/bundle/syntastic/syntax_checkers/c/splint.vim
 54: ~/.vim/bundle/syntastic/syntax_checkers/cpp/clang_tidy.vim
 55: ~/.vim/bundle/syntastic/syntax_checkers/cpp/cppcheck.vim
 56: ~/.vim/bundle/syntastic/syntax_checkers/cpp/cpplint.vim
 57: ~/.vim/bundle/syntastic/syntax_checkers/cpp/gcc.vim 
 58: ~/.vim/bundle/syntastic/syntax_checkers/cpp/oclint.vi m
 59: ~/.vim/bundle/syntastic/syntax_checkers/cpp/pc_lint.vim

I use the configuration with all bundles at my laptop, and it works perfectly. I don't understand why syntastic cannot get the hook to gcc if it is at path x( while on the server. And this issue is only for C CPP file types.

lcd047 commented 9 years ago

Please disable all other plugins, open a C++ file, and run this:

:set verbosefile=syntastic.log
:set verbose=15
:SyntasticInfo
:quit

The result will be a relatively large file syntastic.log. Please upload this file somewhere, and post the link.

wsfreund commented 9 years ago

I found it…. wehh. I had those lines on my .vimrc:

let g:syntastic_c_compiler_options = '-gnu99 -I/Users/wsfreund/root/include/'
let g:syntastic_cpp_compiler_options = '-c++11 -I/Users/wsfreund/root/include/'

And this path /Users/wsfreund/ is exclusive to my laptop. When I updated it to

if !empty($ROOTSYS)
  let g:syntastic_c_compiler_options = "-std=gnu99 -I$ROOTSYS/include/"
endif

if !empty($ROOTSYS)
  let g:syntastic_cpp_compiler_options = "-std=c++11 -I$ROOTSYS/include/"
endif

When I updated it, everything started working. But it is quite strange that setting wrong the compiler options would break the checkers just because of this… Thank you for your help!

lcd047 commented 9 years ago

I'm glad you get it working, but sadly the above doesn't explain anything, since compiler flags are not used when detecting the checker. We can only hope it keeps working.

wsfreund commented 9 years ago

I had other lines which may have caused the issue. Unfortunately I haven't them all cataloged anymore.