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

qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
nobody
How to bind a phoenix app to a specific ip address? could not find anything about that, nowhere, unfortunately, but for me this is quite...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
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

Other popular topics Top

malloryerik
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode. The solution seems to be, in a hyphena...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
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
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 53690 245
New
hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
klo
Got a question about when to concat vs. prepending items to list then reversing to achieve appending. So i know lists boil down to [1 | ...
New

We're in Beta

About us Mission Statement