Closed nyngwang closed 1 year ago
The error is pretty clear:
Error running /Users/ningwang/.local/share/nvim/mason/packages/debugpy/venv/bin/python: ENOENT: no such file or directory
Hi, sorry for not being clear about the situation. The following message is optional, I just want to say that I'm responsible for all issues I created here.
When I encountered this bug, I did read the error message and checked that indicated path, i.e. ~/.local/share/nvim/mason/packages/debugpy/venv/bin/python
. The file exists. The dashboard of mason.nvim did show that I have debugpy
installed. I also tried to cd into the folder to see what's going on. Finally, I resolved this hours ago by reinstalling everything inside the folder ~/.local
, renaming some files I require(...)
in my config, and restarting Neovim many times. It seems that it was "renaming some files I require(...)
" that solves this problem, and I believe this could be related to the caching mechanism of lazy.nvim, not sure.
I planned to close this issue with not just the solution but also the insight to help any future user who will probably also run into this situation(since both plugins: lazy & mason are the most popular solutions recently). Anyway, hope you didn't get annoyed by this issue. I just want to let you know I'm responsible for it. If I can find the reason that caused this problem, I will add comments here for reference.
Hi there, i'm currently facing this issue, can you go into more detail on how to solve it? I have checked to see if i spelt everything correctly and have restarted neovim multiple times but i still get the error message.
so am i
@owod24 @mairs8 Try avoid using the ~
shorthand(I'm still not sure). This is what I currently have in my dotfiles:
dappy.setup(vim.fn.stdpath('data') .. '/mason/packages/debugpy/venv/bin/python')
I got this error:
This is my setup:
I installed
debugpy
with mason.nvim.