Nefcairon

Nefcairon

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

Showing Posts 1 to 2

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 OP

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

— All posts loaded —

Where Next? Top

Trending in Questions Top

RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
ryanwinchester
apply_graft/2 doesn’t rewrite an add_many sub-workflow’s deps on an add step. Grafted jobs cancel with “upstream job was deleted” Version...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
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
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
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

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews