-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Stop using "exec()" in the extension. #7697
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
Comments
@ericsnowcurrently what is the motivation for this work item? This is what i am seeing so far: #8230
|
Agreed with karthik, except with interpreter version. Don't update, comments in PR. |
What do you mean by "what is the motivation"? If you mean "why does this issue exist?", I created it to track what files were running Python using exec (or a proxy for it) directly, rather than through the PythonExecutionService. Those places would not be able to take advantage of specializations in PythonExecutionService, including our use of "conda run". |
Yep, I missed that.
Shouldn't PythonExecutionService support sudo then? Otherwise we have to duplicate here the specializations we make there, including "conda run" support. Also, our use of sudo should be extrenely limited and possibly removed if possible.
Using the poetry path setting is potentially problematic, since it would not necessarily have effect on the currently selected interpreter environment. Also, I expect it does not cooperate well with Anaconda. So this needs more understanding.
The main goal is to use PythonExecutionService, one way or the other. :)
I think you're right. These are interpreter locators. So they should run indepedently of the currently selected interpreter. That said, there may be more to it than that.
Yeah, I'm pretty sure this is locator code too.
Yeah, I think you're right. |
✅ Validated using 2019.11.47235-dev:
|
Switch to using
PythonExecutionFactory
(instead ofexec()
) in the following places:src/client/testing/common/services/discovery.ts
src/client/testing/navigation/symbolProvider.ts
src/client/common/installer/moduleInstaller.ts
src/client/common/installer/poetryInstaller.ts
[ ] old debug adaptersrc/client/interpreter/display/shebangCodeLensProvider.ts
src/client/interpreter/interpreterVersion.ts
src/client/interpreter/locators/services/condaService.ts
src/client/interpreter/locators/services/currentPathService.ts
src/client/interpreter/locators/services/pipEnvService.ts
src/client/interpreter/virtualEnvs/index.ts
src/client/providers/importSortProvider.ts
src/client/terminals/codeExecution/helper.ts
The text was updated successfully, but these errors were encountered: