Commit 9fc2797
authored
fix: use run.executable instead of activatedRun.executable for interpreter identification (#949)
getInterpreterDetails, getSettingsPythonPath, and getExecutableCommand need
the actual Python binary path, not the activated run command. Using
activatedRun.executable breaks when environment managers set it to a wrapper
command (e.g. pixi run ... python).
This unblocks managers like conda and pixi from using wrapper commands in activatedRun without
breaking the debugger, while remaining backwards-compatible since the two
values are currently identical for all existing managers.1 parent 6d06928 commit 9fc2797
2 files changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
259 | | - | |
260 | | - | |
| 258 | + | |
261 | 259 | | |
262 | 260 | | |
263 | 261 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| |||
0 commit comments