clag

clag

Has anyone had problems with the elixir plugin for intellij IDEA?

Hello everyone, personally I’m a big fan of jetbrains products and your IDE, when I saw the elixir plugin (although it’s not official obviously) caused me great excitement since it has all the features I could wish for.

However…and after configuring both erlang and elixir sdk, it seems that autocomplete only works with the projects I create from scratch inside intellij…if I try to import an existing project, with a mix file, following the instructions that appear in the readme of the plugin, I simply don’t have any autocomplete or jump to source code or any other cool functionality.

Has anyone had this problem and solved it?

thank you very much to everybody

Most Liked

drl123

drl123

I use it with RubyMine and it works very well for me. I get autocomplete, jump to definition, debugger, test runner, etc.

Not sure which JetBrains IDE in particular you are using, but the single language (‘small’) IDE’s don’t have a global SDK setting like IntelliJ itself does, but once set for a project, it should remember it. You just have to remember to do it when you open an existing directory as a ‘new project’ in the IDE the first time or you’ll get a message that the Elixir Facet SDK is not defined.

Depending upon the OS and how you installed Elixir/Erlang, you may just not be pointed at the correct directory. Open the options under Elixir in the Languages & Frameworks under settings and make sure that both the Elixir and Erlang directories are pointed at legit locations for your installations. I have had situations where setting it from the top level didn’t set both correctly underneath so I always set both underneath by expanding the setting menu. I’m on OSX and have used it with both HomeBrew, and now ASDF installations of Elixir and Erlang with no problems.

If you still have problems, open an issue on GitHub or message @KronicDeth. He’s usually quite responsive and helpful.

EDIT - so I just tried it with a NEW project and you are correct that you can’t get the SDK to set for some reason. My older projects work fine. I see a few others posting the same…I just haven’t created one from scratch yet. Hopefully, he’ll have an update out soon.

EDIT #2 - OK for RM I have a work around that may be similar to what you’re doing. It seems there is a bug in the latest JetBrains IDE where it won’t let you set the main Ruby SDK if you open an existing directory as a project. In the small IDE’s the primary language SDK has to be set in order to set the Elixir SDK. Since RM is not setting the Ruby SDK, the plugin cannot set the Elixir one as an addon module. What worked for me was to create an empty Ruby project and specify a Ruby SDK. This creates literally an empty directory…then do mix new with that same directory name and let it write into that directory. The Ruby version sticks, allowing setting of the Elixir one. I think this is more a JetBrains issue than an issue with the Elixir plugin.

NobbZ

NobbZ

Can you perhaps put a bit more effort into describing the problems you encounter?

Perhaps even link to corresponding issues/blogpost/whatever?

I totally understand the mainintainer, when he is not able to reproduce issues, then its hard to fix them.

drl123

drl123

I had some issues a few months back with it not finding the Elixir installations and syntax highlighting in eex templates, etc. I’m running macOS Mojave and RubyMine, but using the Elixir Plugin. What worked for me was removing the IDE entirely (including the hidden directories on OSX in ~/Library/Application Support), then doing a clean install with the latest IDE from JetBrains and then adding the plugin back in. Since then, it’s been working well. Very snappy once the IDE has booted up. There must have been some issue with the newer versions of the IDE copying settings forward from the previous version…something was getting messed up. The clean install did the trick!

FYI - I’m on v10.6.0 of the plugin installed in v2019.1.2 of RubyMine, and macOS Mojave v10.14.5.

As @Nobbz mentioned, we could probably help you more if you provided some more details about your install, OS and exactly what sorts of problems you are having.

Where Next?

Popular in Questions Top

gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
Exadra37
Sometimes I want to check if the input into a function is not a blank string. My first approach: defmodule Example do def do_stuff(s...
New
hpopp
To simplify some tasks at work, I wrote and published this package yesterday. It’s a simple macro that enables Access behaviour on struct...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New

Other popular topics Top

yurko
Here are few pieces of (common) Linux knowledge that we use for reasonably small one server apps. We use Ubuntu but this should work for ...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
quazar
How to set Jason to encode all fields in ecto schema, I don’t care about security and implementing only is taking long list of attributes...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
polypush135
As many of you may have realized by now (sorry for all the posts here) I’ve been working on a db problem where I’m trying to aggregate a ...
New
vac
Hi, I'm quite new in Elixir and I'm trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and ...
New
chensan
I have a User schema with a :from_id field set to type :string: defmodule TweetBot.Repo.Migrations.CreateUsers do use Ecto.Migration ...
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
beno
I will often find my self writing things similar to: case some_value do nil -> something() "" -> something() _ -> someth...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New

We're in Beta

About us Mission Statement