FunctionalOne

FunctionalOne

A very basic question about IntelliJ with Elixir plug-in

I have IntelliJ IDEA installed on Windows 10, along with the Elixir plug-in. Auto-complete and syntax highlighting are working correctly. I am new to IntelliJ, so I am not clear how to use all the functionality.

If I have an .exs script file, how exactly do I run it within IntelliJ editor? I tried configuring and “IeX” configuration, but don’t know what values to use for “iex arguments” or “Environmental variables”.

I just need a way to write some code within IntelliJ and then have it executed. Any help would be appreciated.

First Post!

NobbZ

NobbZ

I can not say anything about IntelliJ, as I haven’t used it in ages and never liked the elixir plugin in particular.

Anyway, if you want to run a script, you typically use a terminal and run elixir my_script.exs or mix run my_script.exs depending on your context.

For mix run there should be a “runner” option in the plugin. If you were so kind posting a screenshot of the runners options, I might be able to guide you through setting it up.

Anyway, if you need to set up environment variables, you probably know. Though as you don’t, you probably do not need them :D.

Last Post!

FunctionalOne

FunctionalOne

NobbZ: Thank you for your reply.

Based on your answer, at this point, I will just stick with running the script from a terminal. I am using Windows 10 and I am beginning to realize that most of the documentation around IntelliJ/Elixir is geared towards Mac/Linux. I have googled for countless hours how to use IntelliJ on Windows to create Elixir code, but I haven’t found much. (I will try using using WSL2 soon, so being on Windows might stop being an issue.)

I am finding this forum quite useful though.

Where Next?

Popular in Questions Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
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
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
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
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New

Other popular topics Top

electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
New
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
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

We're in Beta

About us Mission Statement