shared PyCharm remote interpreter (Docker) configuration

We have a shared config that works well enough:

It seems to depend on a specific remote interpreter configuration that isn't portable with the shared Run/Debug configuration.

Is there any way to make the interpreter configuration convenient to separate out as well (for source control)?

 

Thanks,

 

Rob.

2

Hi Rob,

Interpreter configuration is project-specific and cannot be exported to other projects, if that is what you're trying to do (shared run configurations will use the project's default interpreter). Please feel free to submit a feature request about it to our issue tracker using the link https://youtrack.jetbrains.com/issues/PY and let us know if you need any help.

If you're trying to do something different, please provide more details.

0
Avatar
Permanently deleted user

Put simply, we'd like to have the interpreter configuration in a file that can be checked in separately from any project configuration that is specific to a particular user or machine.

We would like to enable opening a shared project directly from the locally cloned files in PyCharm and have the interpreter settings work the same way on every workstation.

0
Hi Rob, We don't support natively sharing of the interpreter settings, as this is usually system specific. But you can try the following method: PyCharm's settings directory contains the following file: `\config\options\jdk.table.xml` This file contains the interpreter settings, and you can share it between installations. But please keep in mind that, as I've mentioned earlier, this file contains some system specific settings and is not guaranteed to work. At the very least, the location path of the interpreters should be the same between machines, otherwise it will be marked as invalid when you load PyCharm.
0

this is usually system specific

I reckon the opposite is true in today's world of Dockerized environments. In any case, there are already many other types of shareable configs—e.g. Run/Debug Configurations—that depend directly on specific Project Interpreter settings, in which case one would expect the latter to be shareable as well.

I remember when almost nothing was shareable in the IDE. Shareable configs have been such a boon to productivity since those former uhh dark days. :p It sure would be great if the few holdouts like this one, the Project Interpreter, could be brought up to date with the rest of the product.

0

This is related to PY-24060 Problem sharing project.iml from .idea directory. The proposed workaround in the linked comment is to instruct your developers to make sure they name their interpreter to the same predetermined name. 😬

1

请先登录再写评论。