Skip to content

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

Open
@meicale

Description

@meicale

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions