If you leave “Working directory” blank, it will default to the Project root, since you say your phoenix project is in a subfolder called “backend”, you probably want to use the ... to select the backend directory
Click OK to apply and close the Run/Debug Configurations dialog
Go to Run > Run… to run the one you defined.
You can also use the Run Configuration select box if you have View > Toolbar checked.
You probably don’t have your SDK setup. Usually, when users don’t have the SDK setup, it’s because they didn’t setup the project.
You should be using import from external model instructions. If you just opened the directory of your project, the information from mix.exs and the SDK won’t be setup.
If you’re not using IntelliJ, but one of the Small IDEs (the language-specific ones like Rubymine, PHPStorm, etc), they don’t have access to the External Model Import system, so opening the directory will work, but you need to manually setup the Elixir SDK
@KronicDeth I hope you don’t mind, if I ask one more question. Do you know about a solution to have a relative path in the working directory field? So I can share this run configuration with everyone who is using the repo?
@openscript the relative pathing will just happen automatically if you click “Share” checkbox next to the “Name:” field in the Run Configuration and then commit the .idea/runConfigurations recursively. Even though the UI shows the absolute path, in the actually XML that persisted to disk, only the relative path is saved.
The serializing code that’s part of IntelliJ automatically substitutes the $PROJECT_DIR$ macro variable even though in the UI I have /Users/luke.imhoff/github/C-S-D/alembic. In your case, you should end up with the value being $PROJECT_DIR$/backend.
This is my first post. This topic is old but I think that is the perfect topic for my question:
How can I do the same but running a docker container? With PyCharm Pro is easy (change interpreter and setup a run configuration) but I don’t know how can I do that with a JetBrains IDE.
I already set Elixir SDK on project and modules settings. Right now I use Intellij Ultimate (2021.3.1 - trial) and PyCharm Pro (2021.3.1 - trial).