phpactor / language-server

Generic Language Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Index files in looping

afranioce opened this issue · comments

I use coc.nvim on index showing a message "Indexed n/n", when it completes 100% it ends up indexing again and returns to 1%.

NeoVim

NVIM v0.4.3
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -O2 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/build/neovim/src/build/config -I/build/neovim/src/neovim-0.4.3/src -I/usr/include -I/build/neovim/src/build/src/nvim/auto -I/build/neovim/src/build/include
Compiled by builduser

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info

Project
image

coc-settings.json
image

The only way I can imagine that happening is if Phpactor crashed at 100%.

Things you can do

  • Enable logging in .phpactor.json|yaml and see if there is an error
  • Check :CocCommand workspace.showOutput [1]
  • Try the latest develop version of Phpactor

[1] You might need to set this in :CocConfig

        "phpactor": {
            "trace.server": "verbose"
        },

Alternatively you can also run (in your project root):

$ phpactor index:build --reset

To build the index - this might show the error more clearly (if there is one)