LunarVim / starter.lvim

🚀 A great starting point for your LunarVim journey!
327 stars 63 forks source link

[python-ide] debug and test python using conda env automatically. #57

Open meicale opened 1 year ago

meicale commented 1 year ago

Using conda, I install all the requirements in one conda env and I can use this env to run python related job such as lint and format. But I can not run the debugger and I get an error like this: #################################################################################### Error executing vim.schedule lua callback: ...are/lunarvim/site/pack/packer/start/nvim-dap/lua/dap.lua:380: ...rvim/site/pack/packer/start/nvim-dap/lua/dap/session.lua:1151: Error running ~/.local/share/nvim/mason/packages/debugpy/venv/bin/python: ENOENT: no such file or directory stack traceback: [C]: in function 'trigger_run' ...are/lunarvim/site/pack/packer/start/nvim-dap/lua/dap.lua:380: in function 'run' ...are/lunarvim/site/pack/packer/start/nvim-dap/lua/dap.lua:319: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
#################################################################################### I just want to know how to make the dap find and use my python in this conda env automatically. At this moment, I have to modify the dap-python mamully.

Naadiyaar commented 1 year ago

There's a chance that you're missing python debugger, please check if debugpy is installed via Mason