ignatov / intellij-erlang

Erlang IDE
https://www.jetbrains.com/help/idea/2018.2/getting-started-with-erlang.html
Other
735 stars 120 forks source link

Error! Failed to eval: -> system_info #1035

Open ZacAzko opened 4 months ago

ZacAzko commented 4 months ago

Hi 😊

I'm on Windows and have a little trouble on PHPStorm hen using Erlang plugin.

It seems (after some research) that the plugin try to retrieve the Erlang version with this command :

erl -noshell -eval 'io:format("~s~n~s",[erlang:system_info(otp_release),erlang:system_info(version)]),erlang:halt().'

BUT, on Windows, it crash... :3

image

To resolve the problem, I check the right syntax on Windows and this solution work fine :

erl -noshell -eval "io:format('~s~n~s',[erlang:system_info(otp_release),erlang:system_info(version)]),erlang:halt()."

Here I've just replaced ' by " ...

Is it possible to fix that in the plugin please ?! 😅

Thanks a lot.