You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when the name is equal to 'Python Debug Console' (if not, research some other means by which we can identify if it is the 'Python Debug Console'), we do not send the activation commands.
FYI, all other env types are fine because using the python executable directly is equivalent to activating first. Conda doesn't work like that and requires activation.
Also, keep in mind that the key objective of this issue is to resolve the race condition in env activation when we launch the debugger.
communicate to the (old) debug adapter the path to conda
use "conda run" in the (old) debug adapter
With the new DA coming in as an experiment, do we need to consider adding support for conda run for the old debugger. I don't see much value in this.
Basically It's a lot of work, that'll be thrown away.
use "conda run" elsewhere in the extension? (only needed in cases where
Please see the PR mentioned earlier, changes to the factory class works would suffice (i.e. change one place, the factory class)
Activity
[-]Use `conda run ...` to get environment variables[/-][+]Use `conda run ...`[/+]DonJayamanne commentedon Aug 14, 2019
conda run <env name> python <xyz.py>The issue comes from spike #5664
karrtikr commentedon Aug 28, 2019
Prescribed solution
questions:
ericsnowcurrently commentedon Aug 28, 2019
FYI, all other env types are fine because using the python executable directly is equivalent to activating first. Conda doesn't work like that and requires activation.
Also, keep in mind that the key objective of this issue is to resolve the race condition in env activation when we launch the debugger.
DonJayamanne commentedon Aug 29, 2019
Partial PR #6959
DonJayamanne commentedon Aug 29, 2019
With the new DA coming in as an experiment, do we need to consider adding support for conda run for the old debugger. I don't see much value in this.
Basically It's a lot of work, that'll be thrown away.
Please see the PR mentioned earlier, changes to the factory class works would suffice (i.e. change one place, the factory class)
9 remaining items
[-]Use `conda run in the debug adapter`[/-][+]Use `conda run` in the debug adapter[/+][-]Use `conda run` in the debug adapter[/-][+]Spike: Use `conda run` in the debug adapter[/+][-]Spike: Use `conda run` in the debug adapter[/-][+]Use `conda run` in the debug adapter[/+]ericsnowcurrently commentedon Sep 30, 2019
As noted earlier, we are going to leave the old debug adapter alone.