Vim and YouCompleteMe - setting up with JUCE


#1

Hi all

Hoping someone here may be able to help. I'm trying to get YouCompleteMe working with a JUCE project but I get loads of errors that should not appear, and do not appear in XCode. 

I've posted lots of info up on Stack Overflow: http://stackoverflow.com/questions/27219433/youcompleteme-and-c-diagnostics-inappropriate-errors

Any help much appreciated - been getting into Vim at work and want to use it instead of XCode for my C++ development. XVim is not really doing it for me.

Github link: https://github.com/adamski/juce-chapter02-07

Cheers


#2

Hi Adam,

for me YouCompleteMe works great in conjunction with JUCE without the issue you're describing.

I have copied the .ycm_extra_conf.py from my current project to the opensource predecessor for you where YCM also only show's real errors and warnings.

Get it from https://github.com/klangfreund/LUFSMeter . Either YCM works as expected (check your .ycm_extra_conf.py and the folder structure in your project) or it doesn't (Maybe something is broken with your clang).

I'm working on OSX 10.10 with XCode 6.1. Have installed YCM exactly as described in the "Mac OS X super-quick installation" section on https://valloric.github.io/YouCompleteMe/ . Installed CMake with homebrew.

Cheers


#3

Thanks, tried your config, but still have the  same issue, I think my clang is ok though? autocomplete works great, its just the errors that are wrong. 

I have it in the root of my Juce project, standard structure generated by Introjucer.  

Might be something else wrong with my YCM or .vimrc ..


#4

@samuel Thanks for the ycm_extra_conf file, I wasn’t getting the correct completion suggestions and that fixed it.