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 2 of 2 Posts! Switch mode

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.

Nefcairon

Nefcairon

Hi NobbZ,

Tried it again in the console and it didn’t work. Created app again and now it works. My mistake.

Sorry to bother you. Thread can be closed…

bye,
Peter

Where Next?

Trending in Questions Top

jonnycharles
I’m in search of an Elixir library that offers PDF generation capabilities similar to Ruby’s Prawn. While there have been discussions abo...
New
spammy
I’m looking to build a personal workflow to quickly deploy web applications written in elixir/phoenix, for local consumption (ie not on t...
New
silverdr
Using Phoenix.LiveView.TagEngine as an EEx.Engine is deprecated! To compile HEEx, use Phoenix.LiveView.TagEngine.compile/2 instead. Sta...
New
saveman71
Hello ! We want new/edit form pages to POST/PUT to their own URL rather than the resources REST defaults (post /things, put /things/:id)...
New
dli
Before I dive in myself, did anyone successfully sprinkle Hologram into their existing LiveView app? Looking for hints regarding: Addi...
New
bottlenecked
Hi all, I wanted to ask how the community is dealing with post-release steps. Today we have Ecto migrations, which make sure that the db...
New
michallepicki
I am using Oban and occasionally, shortly after a deployment, a handful of jobs can fail because of dependency on other parts of the syst...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
akoutmos
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New

We're in Beta

About us Mission Statement