Patch the Python command line (debugger / runner) without using an internal api

Answered

Hello, 

I'm trying to extend the runner / debugger from Pycharm. Most of the IDEs from the Jetbrains suite have extension points like RunConfigurationExtension for IDEA, or Goland. One particular thing I want to do is inject environment variables.

Although, when it comes to Pycharm,  reimplementing the patchCommandLine method has no effect. It doesn't seem to be called at all, even if I see it in plugins like the aws-tool-kit.

I noticed that most plugins implementing it also implement PythonCommandLineTargetEnvironmentProvider, here the aws-tool-kit plugin.

And it works using it. There is only one problem : This API is Internal, and It makes the submission of my plugin unlikely. 

What is the right way to do that without using internal APIs ? If that's the only solution, is there a chance my plugin will be approved using it ?

Thank you !

1
1 comment

Hi,

There is no other way to do it now, and using internal API is not allowed.

Please create an issue to un-internalize the API on YouTrack: https://youtrack.jetbrains.com/issues/PY

0

Please sign in to leave a comment.