Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Ludovic Chabant
    @ludovicchabant
    ah thanks
    mmh I forgot I had syntastic running on this machine, I'm gonna try again without it
    Ludovic Chabant
    @ludovicchabant
    huh, I repro'ed some case where I could only type one character every couple seconds, but the top method at the bottom is still only taking 0.21 seconds
    (it's <SNR>109_OnTextChangedInsertMode() though so that seems at least correct)
    Boris Staletic
    @bstaletic

    https://github.com/ycm-core/YouCompleteMe/blob/master/autoload/youcompleteme.vim#L711-L745

    That thing is triggering the generic completer. But without the whole profile I can't say more.

    Boris Staletic
    @bstaletic
    @ludovicchabant Can you post the whole profile?
    Boris Staletic
    @bstaletic
    Hm... I can't see anything obviously wrong. Try setting b:ycm_largefile and see if that works around the issue.
    SinaiHao
    @roachsinai
    @bstaletic Yeah, I forgot it. Thanks a lot!
    isgy
    @isgy
    hi, I'm getting strange errors when I open c or c++ files, I opened an issue at ycm-core/YouCompleteMe#3507
    Boris Staletic
    @bstaletic
    Hi. What's in your .ycm_extra_conf.py?
    isgy
    @isgy
    it's the example from https://github.com/ycm-core/ycmd/blob/master/.ycm_extra_conf.py and I'm using it as a global config
    Boris Staletic
    @bstaletic

    That thing is using Settings(**kwargs): https://github.com/ycm-core/ycmd/blob/master/.ycm_extra_conf.py#L140

    You seem to have an older YCM that only supports the deprecated FlagsForFile(filename, **kwargs).

    isgy
    @isgy
    I did git pull on the repo and it's already up to date
    Boris Staletic
    @bstaletic
    Did you update the submodules?
    isgy
    @isgy
    erm
    Boris Staletic
    @bstaletic
    git submodule update --init --recursive
    The ycmd submodule is responsible for handling extra conf files.
    isgy
    @isgy
    oh that worked, thanks :)
    Boris Staletic
    @bstaletic
    You're welcome. Like I said, the error you get when you find yourself in that state is really not obvious.
    desu
    @Desultory_gitlab
    Hi, I'm trying to disable the ycm error checking and it doesn't seem to be working
    I added "let g:ycm_show_diagnostics_ui = 0" to my vimrc but it isn't disabled
    Boris Staletic
    @bstaletic
    Sounds like some other plugin is doing diagnostics instead of YCM.
    desu
    @Desultory_gitlab
    it's incredibly annoying because I am constantly getting errors as I am typing - before I have completed the line
    it seems to be ycm...
    because I just installed it and now this is happening
    Boris Staletic
    @bstaletic

    it's incredibly annoying because I am constantly getting errors as I am typing - before I have completed the line

    That's not how YCM handles diagnostics. Try disabling all other plugins and see what happens.

    desu
    @Desultory_gitlab
    the only plugins I have installed are lightline, nerdtree, syntastic, vim-multuple-cursors, vim-repeat, vim-surround and ycm
    and syntastic checks for errors when the file is written
    Boris Staletic
    @bstaletic
    What's in your :YcmDebugInfo?
    desu
    @Desultory_gitlab
    Printing YouCompleteMe debug information... -- Client logfile: /tmp/ycm_o80nto04.log -- Server Python interpreter: /usr/bin/python3 -- Server Python version: 3.7.3 -- Server has Clang support compiled in: True -- Clang version: clang version 8.0.0 (tags/RELEASE_800/final) -- No extra configuration file found -- Java completer debug information: -- jdt.ls Java Language Server running -- jdt.ls Java Language Server process ID: 11696 -- jdt.ls Java Language Server executable: /home/desu/.vim/bundle/youcompleteme/third_party/ycmd/third_party/eclipse.jdt.ls/target/repository/plugins/org.eclipse.equinox.launcher_1.5.400.v20190515-0925.jar -- jdt.ls Java Language Server logfiles: -- /tmp/jdt.ls_stderr_5qr00e50.log -- /home/desu/.vim/bundle/youcompleteme/third_party/ycmd/third_party/eclipse.jdt.ls/workspace/temp/tmpa8ai7fr1/.metadata/.log -- jdt.ls Java Language Server Startup Status: Ready -- jdt.ls Java Language Server Java Path: /usr/bin/java -- jdt.ls Java Language Server Launcher Config.: /home/desu/.vim/bundle/youcompleteme/third_party/ycmd/third_party/eclipse.jdt.ls/workspace/config_linux -- jdt.ls Java Language Server Workspace Path: /home/desu/.vim/bundle/youcompleteme/third_party/ycmd/third_party/eclipse.jdt.ls/workspace/temp/tmpa8ai7fr1 -- jdt.ls Java Language Server Extension Path: ['/home/desu/.vim/bundle/youcompleteme/third_party/ycmd/third_party/eclipse.jdt.ls/extensions'] -- jdt.ls Java Language Server Server State: Initialized -- jdt.ls Java Language Server Project Directory: /home/desu/java -- jdt.ls Java Language Server Settings: { -- "bundles": [] -- } -- Server running at: http://127.0.0.1:26693 -- Server process ID: 11654 -- Server logfiles: -- /tmp/ycmd_26693_stdout_yghw6qpq.log -- /tmp/ycmd_26693_stderr_rreykd8l.log
    image.png
    Boris Staletic
    @bstaletic
    Try to apply this patch:
    diff --git a/autoload/youcompleteme.vim b/autoload/youcompleteme.vim
    index a768a396..ab184db5 100644
    --- a/autoload/youcompleteme.vim
    +++ b/autoload/youcompleteme.vim
    @@ -546,7 +546,9 @@ function! s:OnFileTypeSet()
    
       call s:SetUpCompleteopt()
       call s:SetCompleteFunc()
    -  call s:StartMessagePoll()
    +  if g:ycm_show_diagnostics_ui
    +    call s:StartMessagePoll()
    +  endif
    
       exec s:python_command "ycm_state.OnBufferVisit()"
       call s:OnFileReadyToParse( 1 )
    desu
    @Desultory_gitlab
    how do I apply that?
    Boris Staletic
    @bstaletic
    patch -Np1 < patch_file from YCM directory.
    desu
    @Desultory_gitlab
    still seems to be doing that
    I get the feeling this might be an issue with java in particular
    Boris Staletic
    @bstaletic
    It's an issue with how LSP servers deliver diagnostics. It's not on requeset, but when they see fit.
    Try with this patch:
    diff --git a/autoload/youcompleteme.vim b/autoload/youcompleteme.vim
    index b6facd11..19747457 100644
    --- a/autoload/youcompleteme.vim
    +++ b/autoload/youcompleteme.vim
    @@ -593,7 +593,9 @@ function! s:OnFileTypeSet()
    
       call s:SetUpCompleteopt()
       call s:SetCompleteFunc()
    -  call s:StartMessagePoll()
    +  if g:ycm_show_diagnostics_ui
    +    call s:StartMessagePoll()
    +  endif
    
       exec s:python_command "ycm_state.OnBufferVisit()"
       call s:OnFileReadyToParse( 1 )
    @@ -607,7 +609,9 @@ function! s:OnBufferEnter()
    
       call s:SetUpCompleteopt()
       call s:SetCompleteFunc()
    -  call s:StartMessagePoll()
    +  if g:ycm_show_diagnostics_ui
    +    call s:StartMessagePoll()
    +  endif
    
       exec s:python_command "ycm_state.OnBufferVisit()"
       " Last parse may be outdated because of changes from other buffers. Force a
    desu
    @Desultory_gitlab
    still seems to be doing it
    Boris Staletic
    @bstaletic
    Did you restart vim?
    desu
    @Desultory_gitlab
    oh
    yeah it is working now
    thank you
    Ben Jackson
    @puremourning
    @bstaletic do we have a bug here with async diagnostics being shown in the UI even when disabled ?
    Boris Staletic
    @bstaletic
    Yes, we do.
    Ben Jackson
    @puremourning
    :(
    Boris Staletic
    @bstaletic
    I have a better patch, but I have no idea how to write a good test for it.