Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Ben Jackson
    @puremourning
    scripts/gen_compile_commands.py
    i haven't compiled a linux kernel manually since... erm.... 2003
    Zhu Yi
    @zhu-yi
    I'm looking at this patch too. :) Thanks for your insight, I'll give it a try and feedback the results afterwards.
    Ben Jackson
    @puremourning
    remember to remove the .ycm_extra_conf.py aftrer generating the compile_commands.json (and YcmRestartServer, or restart vim)
    Zhu Yi
    @zhu-yi
    ok, thanks for the heads up. :) Currently I'm struggling of how to download the patch to my Linux PC, since it is not allowed to connect to company's network.
    Ben Jackson
    @puremourning
    is the script not there in your linux kernel scripts directory ?
    Zhu Yi
    @zhu-yi
    Not yet, I'm using an old kernel version (v4.9), so I need to manually apply this patch.
    Ben Jackson
    @puremourning
    can you copy/paste ?
    it's just a python script
    hah nice, the committer is a YCM user!
    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
    <3
    Zhu Yi
    @zhu-yi
    The USB port is disabled too. I'll try hotspot of my phone to download this patch.
    Ben Jackson
    @puremourning
    i know your pain
    Zhu Yi
    @zhu-yi
    Worked like a charm! :)
    Thank you so much for your advice, Ben! And of course, thanks a lot to the author Tom Roeder! :)
    Ben Jackson
    @puremourning
    you're welcome
    Enrico Maria De Angelis
    @Aster89

    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

    oh, wait, i see your point
    Boris Staletic
    @bstaletic
    And looks like Kadir already sent a patch.
    Ben Jackson
    @puremourning
    yeah noice
    Enrico Maria De Angelis
    @Aster89
    @bstaletic , yeah, so I believe the change will be soon-ish available in YCM? Or it's not even up to YCM to update clangd?
    Boris Staletic
    @bstaletic
    We will update clangd when the next stable version comes out.
    Enrico Maria De Angelis
    @Aster89
    Ok, thanks :)
    Ben Jackson
    @puremourning
    meanwhile you can build a custom clangd and use g:ycm_clangd_binary_path
    Enrico Maria De Angelis
    @Aster89
    Oh, not worth it for now, thanks ;) Now that I've discovered that the ugly header is introduced when I tab complete std::size_t, it's much easier to get rid of it
    Ben Jackson
    @puremourning
    or disable headre insertion
    no-1imit
    @no-1imit
    Hi guys, Java completer does not work correctly, it was working a few days ago.
    here is YcmDebugIngo
    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
    what's wrong?
    Ben Jackson
    @puremourning
    ‘Does not work’
    It’s like going to your doctor and saying ‘I’m sick, how to fix me?’
    no-1imit
    @no-1imit
    what should I say? I wrote the YcmDebugInfo, what do you need?
    according to YcmDebugInfo it seems everything is okay but it's not. am I wrong?
    Ben Jackson
    @puremourning
    Tel us what you are doing and what is or isn’t happening
    Doesn’t work means nothing.
    no-1imit
    @no-1imit
    oh got it, sorry you're right, I mean Java autocomplete does not work
    I create a .java file but its intellisense does not work
    Ben Jackson
    @puremourning
    Is the project set up correctly?
    no-1imit
    @no-1imit
    oh my bad, I thought it is like clang completer and works on a single .java file and don't require a project.
    thank you very much.
    Ben Jackson
    @puremourning
    Hmmm. Well jdtls does have something for single files but I’ve never used it.
    no-1imit
    @no-1imit
    thank you
    Brian Orwe
    @Borwe
    I believe jdtls might take time to boot. atleast on my shitty PC it does.
    Boris Staletic
    @bstaletic
    @Borwe JDT's start up time is painfully slow on every PC.
    Johnathan Middleton
    @johnmiddleton12
    Output of :scriptnames
    1: ~/_vimrc
    2: /usr/share/vim/vim82/ftoff.vim
    3: ~/vimfiles/bundle/Vundle.vim/autoload/vundle.vim
    4: ~/vimfiles/bundle/Vundle.vim/autoload/vundle/config.vim
    5: /usr/share/vim/vim82/filetype.vim
    6: /usr/share/vim/vim82/ftplugin.vim
    7: /usr/share/vim/vim82/indent.vim
    8: /usr/share/vim/vim82/defaults.vim
    9: /usr/share/vim/vim82/syntax/syntax.vim
    10: /usr/share/vim/vim82/syntax/synload.vim
    11: /usr/share/vim/vim82/syntax/syncolor.vim
    12: ~/vimfiles/bundle/YouCompleteMe/plugin/youcompleteme.vim
    13: /usr/share/vim/vim82/plugin/getscriptPlugin.vim
    14: /usr/share/vim/vim82/plugin/gzip.vim
    15: /usr/share/vim/vim82/plugin/logiPat.vim
    16: /usr/share/vim/vim82/plugin/manpager.vim
    17: /usr/share/vim/vim82/plugin/matchparen.vim
    18: /usr/share/vim/vim82/plugin/netrwPlugin.vim
    19: /usr/share/vim/vim82/plugin/rrhelper.vim
    20: /usr/share/vim/vim82/plugin/spellfile.vim
    21: /usr/share/vim/vim82/plugin/tarPlugin.vim
    22: /usr/share/vim/vim82/plugin/tohtml.vim
    23: /usr/share/vim/vim82/plugin/vimballPlugin.vim
    24: /usr/share/vim/vim82/plugin/zipPlugin.vim
    25: ~/vimfiles/bundle/YouCompleteMe/autoload/youcompleteme.vim
    ycm has been failing with error YouCompleteMe unavailable: No module named 'ycm'
    Boris Staletic
    @bstaletic

    Number 12 and 25 do match, so...

    Check :YcmToggleLogs and see if you can find the complete stack trace of that error.