Compiling Erlang in Intellij

I am trying to compile / make erl files in Intellij with the Erlang plugin. Everything is fine with compilation, but .beam files are not created in the out / production folder, and when I start the console, I get the message: "error error: undefined. When I use c (" file "). Everything is fine.

Why doesn't Intellij create .beam files?

+5
source share
2 answers

I had the same problem.

The problem is that the very strange erlang plugin does not compile or copy files in the out directory, whereas if you compiled from a terminal or command line (windows), it works fine. This question arose after installing IntelliJ Idea v 15.

What I did to fix the problem:

  • Delete Intellij Idea v 15
  • Go to IntelliJ Idead to version 14.1.4
  • Reinstall Intellij Idea (v. 0.5.11)
  • Configure the SDK for erlang src reference.
  • Create a new test project and run the project again. It should work fine ...

Hope this helps you

+1
source

Try to fix this by going to Preferences โ†’ Build, Execution, Deployment โ†’ Erlang Compiler and check the box โ€œCompile project with rebarโ€. In addition, make sure that the valve is installed and configured in IntelliJ by selecting "Settings" โ†’ "Other settings" โ†’ "External Erlang tools" and indicating the path to installing the valve.

+1
source

Source: https://habr.com/ru/post/1235379/


All Articles