2

I believe I am experiencing some weirdness in how YouCompleteMe is compiling my files to do its syntax checking. I suspect settings from my .ycm_extra_conf.py are not being applied the way I think they are, or YouCompleteMe is using a compiler I'm not expecting, or something along those lines. If I could just see the command line YouCompleteMe is using when it compiles the file, I think there's a good chance I could diagnose my problem.

Does anyone know how to show the command line YouCompleteMe is using?

  • 1
    ask at YouCompleteMe issue tracker? – Christian Brabandt Oct 15 '16 at 7:55
  • Yes, I may need to do that. I find the StackExchange format much more effective than digging through issue trackers, though, so I thought I'd ask here for the future benefit of anyone else who has the same problem. If nobody here knows, I'll try to find an answer there and report back here. – Josh Oct 17 '16 at 15:04
2

Digging through the ycm-users Google group, I found a post by someone else who was trying to debug their .ycm_extra_conf.py flag settings and was using :YcmDebugInfo to get information about the flags being used by YouCompleteMe to compile their file.

As documented here, :YcmDebugInfo "...will print out various debug information for the current file. Useful to see what compile commands will be used for the file if you're using the semantic completion engine". So... clearly I did not RTFM.

:YcmDebugInfo was enough for me to diagnose my problem and debug some changes I'd made to my .ycm_extra_conf.py.

  • 1
    If anyone else has a better answer -- mine does not actually show the command line YouCompleteMe is using, as I'd originally asked -- I'll happily choose their answer over my own. – Josh Oct 17 '16 at 21:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.