haskell-idea-plugin icon indicating copy to clipboard operation
haskell-idea-plugin copied to clipboard

REPL in webstorm

Open alexeygolev opened this issue 9 years ago • 9 comments

Possibly my bad, but I can't seem to start REPL. Gives me "Error:Invalid SDK Home path set. Please set your SDK path correctly." However everything is seem to be set correctly. Unless I don't understand what SDK is. Webstorm 10.0.4, MacOs X 10.10.2

alexeygolev avatar Jul 20 '15 19:07 alexeygolev

This is a problem with plugin. I primarily support the Intellij Idea, and some features not so good tested in other products.

atsky avatar Jul 22 '15 12:07 atsky

Ok, thank you

alexeygolev avatar Jul 22 '15 22:07 alexeygolev

I'm new to haskell, and I received the same error. Here are the steps I took to fix it:

Make sure you have created a haskell project. First Steps File -> Project Structure Under Platform Settings, click on SDKs tab Click the green "plus" sign to add an SDK. Select GHC from the drop down choices. Navigate to the proper directory. For me, it was C:\Program Files\Haskell Platform\8.0.1 Click OK

Second Steps File -> Project Structure Under Project Settings, click on Project tab In the Project SDK dropdown, select the SDK you just created in "First Steps" above. Click OK or Apply

That should fix your problem. haskell_intellij_sdk_1

haskell_intellij_sdk_2

perrytew avatar Aug 30 '16 02:08 perrytew

perrytew, this is a solution for the Intellij IDEA (thanks for them), but not for WebStorm. I have set cabal, (ghc-mod, ghc-modi) but when I try to start Haskell REPL, got the same problem with the invalid SDK path.

koalixCZ avatar Sep 06 '16 19:09 koalixCZ

I have WebStorm as well. I'll have a look.

perrytew avatar Sep 06 '16 19:09 perrytew

I don't think this plugin, in its current form, will work with WebStorm. WebStorm has no ability to handle SDKs. The external libraries for WebStorm are javascript only.

perrytew avatar Sep 07 '16 00:09 perrytew

Thank you for your help. I will try Idea. I'm starting with a Haskell and looking for some editor/IDE.

koalixCZ avatar Sep 07 '16 04:09 koalixCZ

The Intellij community edition is free, and should provide the exact same experience as the enterprise edition with respect to Haskell.

perrytew avatar Sep 07 '16 04:09 perrytew

So JetBrains should filter out or mark plugins that are not supported in Webstorm for a better customer experience. I could swear it worked a few years ago. Wasted an hour+

greg-murray-volusion avatar Apr 04 '17 00:04 greg-murray-volusion