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

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

Open
meicale opened this issue Dec 18, 2022 · 1 comment
Open

Comments

@meicale
Copy link

meicale commented Dec 18, 2022

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
Copy link

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

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