Replies: 1 comment 3 replies
-
So if I'm understanding things correctly, you're trying to to install stuff into the user's environment via If that's correct, then I have (potential) news and a suggestion. First, @karrtikr is working on new terminal integration which should make opening a new, activated terminal work much better. We could potentially expose what environment variables are involved via our API and then you could replicate it if you didn't want to execute some command we provide. But honestly, if you're just running pip to do installation then none of this is necessary. A simpler, less error-prone approach is to get the execution command for the interpreter1 and then use Footnotes
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
First of all thanks for the great extension.
I am one of the authors of Modern Fortran for VS Code. Currently, we have a lot of tooling that gets downloaded through pip (language server, formatters, preprocessors, etc.) and the extension expects it to be reachable in
$PATH
(by default) or via a user-specified path setting.The problem is that we are completely ignoring any virtual environment the user might have setup for their project through
vscode-python
. So the user's expectation for example would be, for our extension to install the language server in theirvenv
, which should make it reachable in$PATH
, and hence they don't have to edit any of the default settings.Do you have/see a way to propagate the Python interpreter and its
env
, set invscode-python
to other extensions?For the installation process we use
vscode.Task
andvscode.ShellExecution
, while for spawning the individual tools we just usespawnSync
, but we would be happy to swap them with whatever works.I think this would be useful for a few other extensions, reStructuredText and CMake Tools come to mind that are struggling with installing and fetching, like us (reStructuredText), or just fetching (CMake tools) binaries installed via virtual environments.
This Discussion is tangentially related but not fully applicable to #18978
Beta Was this translation helpful? Give feedback.
All reactions