Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Notification spam when detecting Python path #318

Open
mpsijm opened this issue Jan 4, 2025 · 1 comment
Open

[bug] Notification spam when detecting Python path #318

mpsijm opened this issue Jan 4, 2025 · 1 comment

Comments

@mpsijm
Copy link

mpsijm commented Jan 4, 2025

Just installed Navigator, love how this plugin turns my NeoVim more into an IDE! ❤️

I ran into some notification spam in Python projects. They appear to come from two sources:

  1. https://github.com/ray-x/navigator.lua/blob/master/lua/navigator/lspclient/python.lua#L20
    This repeated print() happens when opening a Python file in a project that has a virtual environment (i.e. ./.venv/pyvenv.cfg exists). It looks like it prints every file/folder in my working directory, one by one. Every print() call is interleaved with a "Press ENTER or type command to continue" prompt, which is cumbersome when opening the file. To me, this looks like a debugging print that could be hidden behind a debug-flag or removed entirely.
    1. The line before that (https://github.com/ray-x/navigator.lua/blob/master/lua/navigator/lspclient/python.lua#L19) should probably also be hidden behind a debug-logging level.
  2. https://github.com/ray-x/navigator.lua/blob/master/lua/navigator/lspclient/python.lua#L36
    This notification is shown in any Python environment, and I would like to hide this one as well. This one is less of a dealbreaker though, because it's only shown once when opening the project and doesn't prompt me to hit ENTER to continue.

(P.S. I also ran into astral-sh/ruff#12523 (comment) after installing Navigator, but that's probably a problem in Ruff's language server, but perhaps somebody here would know what's going on there 🙂)

@bzhao2718
Copy link

Yeah, I encountered the same issue; I have many hidden files/folders with ".*", and it keeps printing this message Press ENTER or type command to continue.

My current workaround is activating the Python environment first for the project I use nvim with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants