durkiewicz / elm-plugin

Elm language support plugin for IntelliJ IDEA.
MIT License
136 stars 15 forks source link

How to get started? #59

Closed ericbmerritt closed 6 years ago

ericbmerritt commented 7 years ago

Thanks for your efforts. I am normally an emacs user but I have a set of projects that I use intellij for. One of those projects is an elm project so I thought I would try out this plugin. I can't figure out how to get started. There doesn't seem to be any ability to create or import an elm project. I can import an empty project and edit the elm files, but the plugin seems to be confused about finding my elm-package.json and the various dependencies.

So my question is, how do I actually use this plugin? What am I missing?

klazuka commented 7 years ago

@ericbmerritt the plugin does not try to find/read elm-package.json. However, it's important that you have IntelliJ treat the elm-stuff directory (where all your dependencies live) as a Source Set. Do not exclude it.

There's no special process for importing. It should just work (assuming that you take care of elm-stuff as described above).

ericbmerritt commented 7 years ago

So just to be clear.

  1. Set up an empty project
  2. Go into Project Settings and create a module, ensure that the source set includes the 'elm-stuff' directory

Is that it?

klazuka commented 7 years ago

Yes. Although I've never started from an empty project before. I already had an Elm project, and I just opened it using IntelliJ. You shouldn't need to do anything special.

Another thing you might want to check is whether you have 2 Elm IntelliJ plugins installed. There's an older Elm plugin floating around out there for IntelliJ, and the names are very similar. So make sure you don't have that other one installed.

qeepy commented 7 years ago

Created an empty project. Tried to add module, but there is no elm option. Elm is listed as a plugin.. What am I doing wrong?

lambdaofgod commented 7 years ago

Hey guys. I've created this basic how-to . Is it right?

Do you have any other features, like compiling from IDEA?

durkiewicz commented 6 years ago

Thank you in your interest in the plugin. I'm sorry to say that this repository is no longer maintained due to lack of resources. If you need an Elm language support in IntelliJ - please consider using this plugin instead.