-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
Using tmux split-window as external terminal in Python causes ModuleNotFoundError for local imports #1368
Comments
Can you show the logs with trace logging enabled? |
Sure, here are the logs @mfussenegger
|
Doesn't reproduce for me with alacritty and based on the logs I also don't see anything fishy going on. I initially thought it might be related to #1318 and #1340 but per log it doesn't send a
Could you run git bisect to find which commit broke it? |
I think I have the same problem. I have set things up with AstroNVim, run Win11, and similar to rpop0, starting the nvim-dap debugger starts and external console. [Addendum: playing around with Linux, I can confirm the comment on the AstroNVim documentation, that the problem is only a Windows problem, and does NOT come up on Linux!) The code
is running fine in the debugger. But as soon as any external library is imported, I get an error. E.g.:
gives me
The same problem occurs if I have any other import, e.g. |
I'll so a bisect this weekend, I've been running the internal console so far |
I was not able to find where I can set the option to an internal console. Could you please give me a hint, where you have done that? (PS: I am using AstroNvim, on Win11). |
Debug adapter definition and debug configuration
Debugpy (1.8.8) installed via Mason
nvim-dap-python configuration:
Debug adapter version
1.8.8
Steps to Reproduce
Expected Result
Everything runs fine
Actual Result
Debugger throws ModuleNotFoundError as soon as it hits local absolute import.
My config is set to open a tmux split and to use that as the console output. I noticed that this is what actually causes the problem of the imports. if I for example remove the
console = "externalTerminal"
line from the nvim-dap-python configuration, the local module gets imported just fine. The same happens if I remove the tmux configuration for the fallback terminal.Should be noted that this has worked in the past.
The text was updated successfully, but these errors were encountered: