Nefcairon

Nefcairon

Intellij: Cannot run phoenix app

Hello,

I’m trying to set up IntelliJ to work with the Phoenix framework. Finally I managed that IntelliJ can build my module (simply “hello”) and run “mix deps.get”, but I cannot get it to “run” the server. I know I could type “mix phx.server” in the console, but I would prefer being able to run via IntelliJ (maybe to use debug later).

This are my settings:

i installed Elixir via chocolatey in Windows 10.

This is the error message:

"C:\Program Files\erl8.1\bin\erl.exe" -pa C:/ProgramData/chocolatey/lib/elixir/lib/eex/ebin -pa C:/ProgramData/chocolatey/lib/elixir/lib/elixir/ebin -pa C:/ProgramData/chocolatey/lib/elixir/lib/ex_unit/ebin -pa C:/ProgramData/chocolatey/lib/elixir/lib/iex/ebin -pa C:/ProgramData/chocolatey/lib/elixir/lib/logger/ebin -pa C:/ProgramData/chocolatey/lib/elixir/lib/mix/ebin -pa "C:/Program Files/erl8.1/lib/asn1-4.0.4/ebin" -pa "C:/Program Files/erl8.1/lib/common_test-1.12.3/ebin" -pa "C:/Program Files/erl8.1/lib/compiler-7.0.2/ebin" -pa "C:/Program Files/erl8.1/lib/cosEvent-2.2.1/ebin" -pa "C:/Program Files/erl8.1/lib/cosEventDomain-1.2.1/ebin" -pa "C:/Program Files/erl8.1/lib/cosFileTransfer-1.2.1/ebin" -pa "C:/Program Files/erl8.1/lib/cosNotification-1.2.2/ebin" -pa "C:/Program Files/erl8.1/lib/cosProperty-1.2.1/ebin" -pa "C:/Program Files/erl8.1/lib/cosTime-1.2.2/ebin" -pa "C:/Program Files/erl8.1/lib/cosTransactions-1.3.2/ebin" -pa "C:/Program Files/erl8.1/lib/crypto-3.7.1/ebin" -pa "C:/Program Files/erl8.1/lib/debugger-4.2.1/ebin" -pa "C:/Program Files/erl8.1/lib/dialyzer-3.0.2/ebin" -pa "C:/Program Files/erl8.1/lib/edoc-0.8/ebin" -pa "C:/Program Files/erl8.1/lib/eldap-1.2.2/ebin" -pa "C:/Program Files/erl8.1/lib/erl_docgen-0.6/ebin" -pa "C:/Program Files/erl8.1/lib/erl_interface-3.9.1/ebin" -pa "C:/Program Files/erl8.1/lib/erts-8.1/ebin" -pa "C:/Program Files/erl8.1/lib/et-1.6/ebin" -pa "C:/Program Files/erl8.1/lib/eunit-2.3.1/ebin" -pa "C:/Program Files/erl8.1/lib/gs-1.6.2/ebin" -pa "C:/Program Files/erl8.1/lib/hipe-3.15.2/ebin" -pa "C:/Program Files/erl8.1/lib/ic-4.4.2/ebin" -pa "C:/Program Files/erl8.1/lib/inets-6.3.3/ebin" -pa "C:/Program Files/erl8.1/lib/jinterface-1.7.1/ebin" -pa "C:/Program Files/erl8.1/lib/kernel-5.1/ebin" -pa "C:/Program Files/erl8.1/lib/megaco-3.18.1/ebin" -pa "C:/Program Files/erl8.1/lib/mnesia-4.14.1/ebin" -pa "C:/Program Files/erl8.1/lib/observer-2.2.2/ebin" -pa "C:/Program Files/erl8.1/lib/odbc-2.11.3/ebin" -pa "C:/Program Files/erl8.1/lib/orber-3.8.2/ebin" -pa "C:/Program Files/erl8.1/lib/os_mon-2.4.1/ebin" -pa "C:/Program Files/erl8.1/lib/otp_mibs-1.1.1/ebin" -pa "C:/Program Files/erl8.1/lib/parsetools-2.1.3/ebin" -pa "C:/Program Files/erl8.1/lib/percept-0.9/ebin" -pa "C:/Program Files/erl8.1/lib/public_key-1.2/ebin" -pa "C:/Program Files/erl8.1/lib/reltool-0.7.2/ebin" -pa "C:/Program Files/erl8.1/lib/runtime_tools-1.10.1/ebin" -pa "C:/Program Files/erl8.1/lib/sasl-3.0.1/ebin" -pa "C:/Program Files/erl8.1/lib/snmp-5.2.4/ebin" -pa "C:/Program Files/erl8.1/lib/ssh-4.3.2/ebin" -pa "C:/Program Files/erl8.1/lib/ssl-8.0.2/ebin" -pa "C:/Program Files/erl8.1/lib/stdlib-3.1/ebin" -pa "C:/Program Files/erl8.1/lib/syntax_tools-2.1/ebin" -pa "C:/Program Files/erl8.1/lib/tools-2.8.6/ebin" -pa "C:/Program Files/erl8.1/lib/typer-0.9.11/ebin" -pa "C:/Program Files/erl8.1/lib/wx-1.7.1/ebin" -pa "C:/Program Files/erl8.1/lib/xmerl-1.3.12/ebin" -noshell -s elixir start_cli -extra C:\ProgramData\chocolatey\lib\elixir\bin\mix phx.server
 [info] Application hello exited: exited in: Hello.Application.start(:normal, [])
** (EXIT) an exception was raised:
  ** (UndefinedFunctionError) function Hello.Application.start/2 is undefined (module Hello.Application is not available)
            Hello.Application.start(:normal, [])             
(kernel) application_master.erl:273: :application_master.start_it_old/4
** (Mix) Could not start application hello: exited in: Hello.Application.start(:normal, [])
     ** (EXIT) an exception was raised:
         ** (UndefinedFunctionError) function Hello.Application.start/2 is undefined (module Hello.Application is not available)
             Hello.Application.start(:normal, [])
             (kernel) application_master.erl:273: :application_master.start_it_old/4

Can anyone help?

bye,
Peter

First Post!

NobbZ

NobbZ

Have you tried to run it from the terminal? It looks as if you are using a clouddrive, and I’ve read about a lot of trouble about using those on windows for programming related work, as the filesystem wrapper is to slow for the compiler or other weird stuff.

If though it works on the terminal but not from the IDE, I can’t help you any further, as I try to not use windows or big IDEs.

Where Next?

Popular in Questions Top

mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
LegitStack
I’m trying to make a websocket server in Phoenix or raw Elixir. I heard about gun, I think I could use cowboy, but since I’m not that sma...
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
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
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
nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
komlanvi
Hi everyone, I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
New

Other popular topics Top

sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
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
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
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
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
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
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

We're in Beta

About us Mission Statement