KronicDeth / intellij-elixir

Elixir plugin for JetBrain's IntelliJ Platform (including Rubymine)
Other
1.82k stars 153 forks source link

Autocomplete suggestions based on Atom's autocomplete-elixir #153

Open wende opened 9 years ago

wende commented 9 years ago

Hello there! I'm the creator of Atom plugin - autocomplete-elixir. Which proposes smart autocompletions based on module methods and specs.

I'm also a big fan of IntelliJ platform but I lack Java skills to write a plugin myself. I guess You could use a heart of my plugin which is an elixir script to make code completion in Your plugin. Here is the script with it's documentation

Cheers and greets from Alchemists community!

trungpham commented 9 years ago

like

fukaoi commented 9 years ago

Good

revati commented 8 years ago

Are there any updates on this? When could this happen?

KronicDeth commented 8 years ago

It is unlikely that I will use external autocomplete scripts if possible. I prefer to use the JetBrains APIs as they handle the cached indexing automatically. I may use autocomplete-elixir or the alchemist-server (see #189) for completion for compiled .beam files, but for places where I have the original Elixir source, like the project itself or the deps sources, I will endeavor to use the JetBrains API as it will work when there are errors in the code that the GrammarKit recovery handled. My understanding of alchemist-server is it only works if the current file can be compiled since it's asking elixir itself to resolve references in the current file.

As for code completion in general, there is completion for module attributes in https://github.com/KronicDeth/intellij-elixir/commit/84716951a0a63485410f1146a172e97eab2a2a4c (so, on a branch about to be a PR and then released in v2.0.0) and now that I understand how the API works I can start doing the same for modules and functions.

revati commented 8 years ago

Thanks for fast reply. Will wait for 2.0.0 than.