How to make plugin preform different actions based on what IDE it's being run on?

Hello,

 

As the title suggests, I'm wondering what to test in order to tell an action to preform differently?

Also just in case one of you know, how do you access the console text in PyCharm for precessing in the plugin?

0
4 comments

See com.intellij.util.PlatformUtils

1

Hello,

what do you want to change in the plugin's behavior and why? PlatformUtils will work, but it isn't the best solution and may cause problems. For example, if you change the plugin's behavior for PyCharm, it won't work in IntelliJ IDEA with Python plugin installed, and most probably it is not what you want.

0

We don't recommend to use PlatformUtils anymore, see its javadoc for details.

0
Avatar
Permanently deleted user

I'm trying to create a debugging plugin essentially that for Java and Python, finds error lines and creates a search query for stack overflow based on them. However, Python and Java report errors differently. I got Java all set up, but I need to read python errors in the console.

 

I guess I don't need the plugin to know what IDE it's in. It probably just needs to read what's in the Python console and do nothing if there's no output.

 

Do any of you know how to read the current PyCharm console into a string?

0

Please sign in to leave a comment.