vscode-intelephense icon indicating copy to clipboard operation
vscode-intelephense copied to clipboard

intelephense regularly forgets about seemingly random symbols

Open dotdash opened this issue 3 years ago • 0 comments

Describe the bug Regularly, intelephense starts to report a bunch of things as undefined. Global functions like in_array are reported reported as Undefined function 'My\Namespace\in_array', and even prefixing them with a backlash only gets me Undefined function 'in_array'. And various other symbols are seemingly randomly spontaneously forgotten as well, but not all of them, for some, hovering etc. still works just fine.

To Reproduce I don't have any reproducer, it seems to happen at random, often when opening a file, but sometimes also while editing. It might be tied to the code base, which is quite old and has various issues like conflicting class names in the global namespace where code relies on autoloader configuration to pick the right file in the right situation. But I couldn't easily reproduce the problem in a mock project with similar issues.

Expected behavior intelephense doesn't randomly forget about symbols.

Platform and version Linux, intelephense 1.8.2, vim with vim-lsp

dotdash avatar Sep 06 '22 09:09 dotdash