Running console command from plugin and displaying the output

Answered

Hi there,

I'm trying to execute a CURL request from my plugin and display the JSON Response in the console window.

I've already tried this: https://intellij-support.jetbrains.com/hc/en-us/community/posts/360005963820-Running-console-commands-from-intelliJ-plugin?input_string=Running%20console%20command%20from%20plugin%20and%20displaying%20the%20output

But it doesn't work. It just gives me an error: error=2, No such file or directory

The only thing that works is Runtime.getInstance().exec("curl ...");

But this is executes in silence and I am unable to display the response in the console.

I'm just starting with plugin development and any help would be really appreciated!

Thanks in advance :)

Please sign in to leave a comment.