Open wende opened 9 years ago
like
Good
Are there any updates on this? When could this happen?
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.
Thanks for fast reply. Will wait for 2.0.0 than.
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!