jarmo

jarmo

Writing Elixir/Phoenix while using IntelliJ IDEA

I’ve used Phoenix for multiple projects until now and they all are deployed to production and used by real users. At home I really like to use Vim, but at my workplace I’m using IntelliJ products. One of the main reasons why I can’t sell Elixir/Phoenix to my co-workers is that IntelliJ products do not seem to work well with Elixir. IntelliJ IDEA is almost nothing more than a glorified syntax highlighter. There exists (as far as I know) one not-too-actively maintained Elixir plugin for IDEA and that’s it. I’ve not seen debugger working even once and if there is one comma missing somewhere then IDEA code formatting breaks in a big fire.

Has anyone better experience while working with Elixir using IntelliJ products or is that a normal situation for this ecosystem and there’s no hope of pitching Elixir/Phoenix ever to my co-workers as long as they’re avid IntelliJ products users? Of course I would like to use debugger too occasionally, but since Elixir is quite an easy language in my opinion then there’s not that much of a need for it personally.

Any suggestions for working with Elixir using IntelliJ products is more than welcome of course.

Most Liked

D4no0

D4no0

It seems you got something wrong, take a look at: GitHub - KronicDeth/intellij-elixir: Elixir plugin for JetBrain's IntelliJ Platform (including Rubymine) · GitHub. This plugin is way before elixir-ls was a thing and it has amazing support, and a better set of features compared to all other plugins on the market.

I was using it back in the day, however as you said, once you learn how elixir works, you don’t need these tools that much anymore.

Last Post!

D4no0

D4no0

You can contact the author, I’ve had similar problems in the past and most of them are related to the fact that plugin still doesn’t have support for newest versions of elixir/erlang, I mean even people not using IDEs experience a lot of issues these days, as there is a lot of work on internals.

As for the debugger, it is inherently not the best idea to use it, the last time I was using it with phoenix, it would trigger timeouts when debugging, most probably because the debugger doesn’t pause the VM like the classical ones. I would just point your colleagues to REPL driven development, and they will forget about debugger in a week, as it is not that useful in elixir.

Where Next?

Popular in Discussions Top

New
AstonJ
Please see the new poll here: Which code editor or IDE do you use? (Poll) (2022 Edition) It’s been a while since we first asked this, I...
208 31771 143
New
rms.mrcs
A couple of days ago I was discussing with a friend about different approaches to write microservices. He said that if he was going to w...
New
boundedvariable
I am going through the kafka architecture. All the features what the kafka is providing are already in Erlang. I would like hear your opi...
New
PragTob
Hello everyone, I know we had quite some threads (read through lots of them) about background job processing but it remains a hotly deba...
New
RudManusachi
What configs will make sense to put to runtime.exs? – A bit of how I configure apps: I have generic configs in config/config.exs, dev...
New
pillaiindu
I want to convert a Phoenix LiveView CRUD website to a CRUD mobile app. What do you think is the easiest way to do so?
New

Other popular topics Top

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
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 44778 311
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New

We're in Beta

About us Mission Statement