durkiewicz / elm-plugin

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

elm-plugin apparently unusable #81

Closed RobertBrown3 closed 6 years ago

RobertBrown3 commented 6 years ago

I have installed the elm-plugin into IntelliJ 2018. I installed the JAR file that was downloaded from the Elm site.

I see that the plugin is installed and is enabled. There is, however, no Elm- based project, no Elm file creation, and no Elm editor.

Furthermore, there is no documentation on how to use the plugin. There is no apparent way to configure the plugin. Other than the plugin showing installed and enabled, there is no evidence that the plugin is even there!

Under current circumstances, this plugin is unusable.

Please fix this problem. Make some way to use this plugin or provide some documentation for at least getting started with it.

klazuka commented 6 years ago

@RobertBrown3 this plugin is no longer being maintained (as far as I know). You may want to try my rewrite.

Also, you shouldn't have to install a JAR manually. Launch IntelliJ, go to Settings -> Plugins. Then search for "Elm". There will be no results from JetBrains default list, but it will show a "Search in repositories" link. Click that and it will show the full list of available plugins.

RobertBrown3 commented 6 years ago

Thanks for the info. I especially thank you for your prompt response (I don't get that very often! :-( ).

I have just installed your rewrite using the method you suggested.

Unfortunately, I still have the problems I had with the previous plugin. No Elm project. No known way to create Elm files or otherwise engage the plugin. Worse, no documentation on how to use this plugin. Effectively, I still have a plugin that, aside from showing that it is installed and enabled, appears to not do anything.

So how do I engage this plugin? Are you planning to do any documentation on how to engage and use this plugin?

klazuka commented 6 years ago

Are you trying to open an existing Elm project? Or are you doing 'Create New Project' in IntelliJ? If the latter, yes, the plugin does not have a template for starting a new project, which means that you start with an empty IntelliJ project. IntelliJ will show you a confusing screen about a bunch of Java-like things (SDKs and modules and source roots), and it's easy to screw up (also, there appears to be an IntelliJ bug when creating an empty module where the wizard step shows up blank--at least on my computer).

Here's the workaround:

The easiest way to get started is to create a new directory for your project from the terminal. Then create a simple Elm file (like main = text "hello world") and put it in the directory. Now, in IntelliJ, instead of "create new project", choose "open". Select the directory you created. Now you should have your Elm source file shown in the source tree, and everything else should work well.

@d3xter has done some work to make new Elm project creation easier, but we haven't had a chance to merge it in yet. Will do so soon.

RobertBrown3 commented 6 years ago

What is the suffix I should use? .elm does not appear to work...

durkiewicz commented 6 years ago

@RobertBrown3 I'm sorry but I couldn't help you. I've never encountered an issue similar to the one that you describe.