Tag mason

1 bookmark has this tag.

2024-02-20

7112.

toot by https://gts.cupcakerob.nl/@rob

gts.cupcakerob.nl/@rob/statuses/01HQ44GMQ4QTAV8EVDSGJHFDXZ

TIL: if I want to debug [#python](https://gts.cupcakerob.nl/tags/python) :python: in [#neovim](https://gts.cupcakerob.nl/tags/neovim) :nvim:
your imported packages need to be in the same python env that debugpy is.

Now in [#LazyVim](https://gts.cupcakerob.nl/tags/lazyvim) , [#mason](https://gts.cupcakerob.nl/tags/mason) installs debugpy in it's own venv and the debug adapter can't find the other packages

so: install debugpy in your venv and run

:lua require('dap-python').setup('./venv/bin/python')

or use vscode/pycharm or something if you have a life ;-)