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

Support CLion

Open zcourts opened this issue 10 years ago • 5 comments

Would it need more than

    <idea-version since-build="139.1659" until-build="142.9999"/>

In https://github.com/Atsky/haskell-idea-plugin/blob/master/plugin/META-INF/plugin.xml#L8 to enable other JetBrains platforms to install this plugin?

I'm using CLion for C/C++ and it'd be handy to be able to edit the Haskell bits in there as well. P.S. I couldn't get the plugin to build in Intellij 13.1/14.1 ultimate with either JDK 6, 7 or 8, so I couldn't test this myself.

zcourts avatar Jun 21 '15 10:06 zcourts

To make plugin installable on CLion you shoiuld remove line.

<depends>com.intellij.modules.platform</depends>

But I think plugin won't work properly, and will crush. CLion has slighly different API. I support IntelliJ IDEA at first place. Maybe I will add CLion support later.

atsky avatar Jun 23 '15 08:06 atsky

I'll give it a try and see what breaks. What version of the Kotlin plugin is required to build? I have several Kotlin syntax errors at the moment. screen shot 2015-06-24 at 02 44 59

zcourts avatar Jun 24 '15 01:06 zcourts

I use last version of plugin (0.12.200). I think you need last version of IDEA to install last Kotlin version. Also you need JDK 1.6 to compile plugin.

atsky avatar Jun 24 '15 09:06 atsky

Yup that was my bad, created Intellij SDK with 1.8 and then 1.7 twice instead of with 1.6...built and installed. Seems to work so far.

I'll try to fix anything that comes up and report back but spent some time using it in CLion last night and had no issues so far.

zcourts avatar Jun 25 '15 07:06 zcourts

I'm not sure how much active this is but I'll just give a note about the current status with CLion on Windows:

  1. Trying to install ghc-mod from inside CLion eventually runs into failure to automatically configure old-time. Solved by manually running cabal install from the (MSYS2) command line.
  2. SDK is not found, and I don't know a way of specifying its location, since CLion has hardcoded the toolchain for C++, and there's no IDEA "Project SDK" setting. That's pretty much how far I could go.

KitsuneRal avatar Apr 05 '17 13:04 KitsuneRal