-
-
Notifications
You must be signed in to change notification settings - Fork 49
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 quit unexpectedly when terminating DAP UI #151
Comments
If I use the python from homebrew, I get the same message in the same condition. If I use the python from anaconda, it will not show the message. My system is macOS 14.5(M1). I use a plugin called venv-selector to change environment. |
@BLACKSWORD0 can you tell me more about your conda setup?
|
{
"linux-cultist/venv-selector.nvim",
dependencies = {
"nvim-telescope/telescope.nvim",
"mfussenegger/nvim-dap-python",
"nvim-lua/plenary.nvim",
},
opts = {
anaconda_base_path = "/opt/homebrew/anaconda3",
anaconda_envs_path = "/opt/homebrew/anaconda3/envs",
stay_on_this_version = true,
dap_enabled = true,
settings = {
options = {
notify_user_on_venv_activation = true,
},
},
},
cmd = { "VenvSelect" },
},
{
"mfussenegger/nvim-dap-python",
dependencies = "mfussenegger/nvim-dap",
ft = "python",
config = function(_, opts)
require("dap-python").setup("python", opts)
end,
},
But I don't use debugpy in mason, I just install debugpy in ~/.virtualenvs. "venv-selector" will find it automatically. If you want, you can change the config of "venv-selector" to find debugpy in mason. test.mp4 |
@BLACKSWORD0 Thanks will look into this and give you an update. |
I have the exact same issue, i use python 3.12.4. This is my setup for nvim dap.
|
A temporary solution would be to run this in the terminal:
To enable it again:
You must restart for the changes to take effect. |
I have an issue where macOS gives this error message "Python quit unexpectedly" on every time when I try to terminate, exit or reach the end of the program that I'm debugging. Apart from that the debugger works as expected.
OS - macOS Monterey 12.7.5 (intel macbook)
Package manager - homebrew (python also installed with brew)
neovim version - v0.10.0 (installed with brew)
Plugin manager - lazy.nvim
**Debugpy installed with mason tho. (actually I don't how it works. I just copy pasted some codes.)
below is my lua code related to debugging plugins located inside
parent folder > lua > plugins
p.s. - I'm a total beginner to neovim and lua and I might have made a lot of mistakes. I hope someone would help me out to correct my code.
The text was updated successfully, but these errors were encountered: