bear
but that probably won't work anymore
For an example of the utility of this script: after running
gen_compile_commands.json on the latest kernel version, I was able to
use Vim + the YouCompleteMe pluging + clangd to automatically jump to
definitions and declarations. Obviously, cscope and ctags provide some
Sometimes, after some hour of coding, in which I've certainly mashed TAB, I find out some file containing
#include <bits/stdc++.h>
, which means that some TAB-completion triggered that. Since I discover this after a long time coding, typically when qualifying the change, I don't know which completion trigger that. Any idea which could it be? Plus, shouldn't that header be avoided, in general?
I've created this: https://github.com/clangd/clangd/issues/666#event-4251697760
Printing YouCompleteMe debug information...
-- Resolve completions: Up front
-- Client logfile: /tmp/ycm_er2lazyi.log
-- Server Python interpreter: /usr/bin/python3
-- Server Python version: 3.7.3
-- Server has Clang support compiled in: False
-- Clang version: None
-- No extra configuration file found
-- Java completer debug information:
-- jdt.ls running
-- jdt.ls process ID: 16414
-- jdt.ls executable: ['/usr/bin/java', '-Dfile.encoding=UTF-8', '-Declipse.application=org.eclipse.jdt.ls.core.id1', '-Dosgi.bundles.defaultSta
rtLevel=4', '-Declipse.product=org.eclipse.jdt.ls.core.product', '-Dlog.level=ALL', '-jar', '/home/Alex/.vim/bundle/YouCompleteMe/third_party/ycmd/
third_party/eclipse.jdt.ls/target/repository/plugins/org.eclipse.equinox.launcher_1.5.800.v20200727-1323.jar', '-configuration', '/home/Alex/.vim/b
undle/YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls/workspace/config_linux', '-data', '/home/Alex/.vim/bundle/YouCompleteMe/third_party
/ycmd/third_party/eclipse.jdt.ls/workspace/temp/tmps5ez_g_y']
-- jdt.ls logfiles:
-- /tmp/jdt_ls_stderrqx6tmddx.log
-- /home/Alex/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls/workspace/temp/tmps5ez_g_y/.metadata/.log
-- jdt.ls Server State: Initialized
-- jdt.ls Project Directory: /home/Alex/Programs/Java
-- jdt.ls Settings: {
-- "bundles": []
-- }
-- jdt.ls Startup Status: Ready
-- jdt.ls Java Path: /usr/bin/java
-- jdt.ls Launcher Config.: /home/Alex/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls/workspace/config_linux
-- jdt.ls Workspace Path: /home/Alex/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls/workspace/temp/tmps5ez_g_y
-- jdt.ls Extension Path: ['/home/Alex/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/eclipse.jdt.ls/extensions']
-- Server running at: http://127.0.0.1:56087
-- Server process ID: 16372
-- Server logfiles:
-- /tmp/ycmd_56087_stdout_o6amm0wo.log
-- /tmp/ycmd_56087_stderr_v172dg77.log