You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To illustrate the issue, I will start with a simple directory with two files (test.py and mod.py).
When I open test.py and try to import mod.py, everything works fine (the completion engine detects mod.py just fine)
But now, if I add a new file (newmod.py) to the directory, the completion engine fails to detect the new file.
Until I restart the language server by running :LspRestart, the completion engine will not detect newly added files.
Needless to say, having to run :LspRestart every time I add a new file to my working directory is a tad annoying. I suspect that the issue lies with pyright (because I didn't notice this issue with other language servers such as jdtls; only pyright is affected AFAIK), though I'm not entirely certain.
Description
To illustrate the issue, I will start with a simple directory with two files (
test.py
andmod.py
).When I open
test.py
and try to importmod.py
, everything works fine (the completion engine detectsmod.py
just fine)But now, if I add a new file (
newmod.py
) to the directory, the completion engine fails to detect the new file.Until I restart the language server by running
:LspRestart
, the completion engine will not detect newly added files.Needless to say, having to run
:LspRestart
every time I add a new file to my working directory is a tad annoying. I suspect that the issue lies withpyright
(because I didn't notice this issue with other language servers such as jdtls; only pyright is affected AFAIK), though I'm not entirely certain.There are similar reports made here and here.
Neovim version
NVIM v0.8.3
Build type: Release
LuaJIT 2.1.0-beta3
Nvim-lspconfig version
No response
Operating system and version
EndeavourOS (Linux Kernel 6.1.11-arch1-1)
Affected language servers
pyright
Steps to reproduce
~/code/
cd ~/code
touch test.py mod.py
nvim test.py
mod.py
from insidetest.py
and verify that the completion engine is working.cd
into~/code
again.touch newmod.py
newmod.py
fromtest.py
Actual behavior
Completion engine does not detect newly added files, modules, and directories for Pyright.
Expected behavior
Completion engine detects newly added files and directories.
Minimal config
LSP log
--
The text was updated successfully, but these errors were encountered: