0

I tried YCM(you complete me) several days, it works pretty good under a normal C/C++ development environment. After I tried it with Linux source tree, however, many features are paralyzed including GoToDeclaration and autocomplete.

How can I set up a kernel development environment with YCM?

Douglas Su
  • 3,214
  • 7
  • 29
  • 58
  • Kernel is pretty big project. Regular approaches may not work well here. I tried OmniCompletion (the part of vim) and it also hangs the system when trying to autocomplete something. The only thing works well for me here is `cscope` (with `cscope_maps.vim` plugin). Also Eclipse works pretty well, if you are into GUI stuff. But I actually haven't heard of someone successfully using autocompletion for kernel development. – Sam Protsenko Nov 10 '15 at 16:18
  • @SamProtsenko Well, It seems that a lot of kernel hackers prefer emacs. – Douglas Su Nov 10 '15 at 16:21
  • Emacs? Not vim? Are you sure? :) I'm not implying anything, just haven't seen one yet. And what do they use to navigate code and for autocompletion? – Sam Protsenko Nov 10 '15 at 16:27
  • @SamProtsenko, I just guessing... due to that I googled a lot and found nothing about how to set up vim for kernel development... – Douglas Su Nov 10 '15 at 16:53
  • Whoa whoa whoa! It's a lot on this topic out there, really. A vast majority of kernel developers using vim, as per my observations. I can provide some information as an answer, if you are interested exactly in Vim configuration for kernel development. – Sam Protsenko Nov 10 '15 at 17:09
  • Please forgive my ignorance. If you have any experience about it, Please show me some information.. :) – Douglas Su Nov 11 '15 at 03:21
  • Have you tried running ctags with the `-n` argument? That should decrease the size of the tags file and the time it takes to process it. – Vitor Nov 11 '15 at 08:53
  • @DouglasSu Please create another question, like "vim configuration for Linux kernel development", as it would be inappropriate to put this sort of information as answer to this question – Sam Protsenko Nov 11 '15 at 22:02
  • @SamProtsenko http://stackoverflow.com/questions/33676829/vim-configuration-for-linux-kernel-development, Thx. :) – Douglas Su Nov 12 '15 at 16:47

0 Answers0