-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Environment gets activated after debugger starts (hence debugging with conda envs fail) #5559
Comments
Can you please be more clear here. I am not sure I understand the issue here.
|
|
Please fill the issue template and provide the requested information. The issue is not clear. |
No, thanks. |
Closing this as sufficient clarification info was not provided. |
This comment was marked as abuse.
This comment was marked as abuse.
I understand the issue, however i need more info to reproduce this, as I have asked for before.
|
[...] represents code that was removed. |
I understand that. What I am asking is what is the code that was removed? (Leave out personal credentials if you have to) |
This code was removed because there is no issue with the code. The issue is >D:/Anaconda3/Scripts/activate
>conda activate base Is executed AFTER execution of the code. |
The reason I was asking this is because AFAICS there are cases where it should not matter if it's activated after or not. For eg. this was terminal in my case, Notice this, What i wanted to understand was the reason that it mattered in your case (so I can reproduce & confirm it). Regardless, I understand the core issue here. |
To replicate use any library that loads DLL for example graphviz, pytorch, tensorflow. |
In my example it was matplotlib. |
@crackcomm |
Updated Solution - Use |
@DonJayamanne Can you clarify your proposed solution of |
@bryceschober this isn't a change to the launch configuration. Instead of running user code using |
I seem to have this problem too. I don't understand what is meant by "Instead of running user code using we'll be using conda run python .". Is this a fix I can apply myself now? If so, how do I do it please? |
@DonJayamanne You mean this |
That is the plan. |
Closing in favour of #10626 |
Environment data
Issue
Use Debug Python: Current File...
Terminal stays open so I can click again the play icon and it works because
conda activate base
activated Python environment just AFTER the debugger FAILED to start.Thank you.
The text was updated successfully, but these errors were encountered: