I try compile erl files in Intellij with Erlang plugin. Everything is good with compilation but in out/production the folder does not create any files .beam
and when I run console I get message:
exception error: undefined function.
When I use c("file").
everything is all right. Why does Intellij not create .beam
files?
Try to fix it by going to Preferences -> Build, Execution, Deployment -> Erlang Compiler and check "Compile project with rebar". Also, verify that rebar is installed and configured in IntelliJ by going to Preferences -> Other Settings -> Erlang External Tools and specifying the path to the rebar installation.
I was having the same issue ..
The problem is very strange erlang plugin doesn't compile and copy the files to out
directories meanwhile if you compiled from terminal or command prompt (windows) it is working fine. this issue arose after installing IntelliJ Idea v 15.
What I have done here to fix the issue:
- Uninstall Intellij Idea v 15
- Downgrade IntelliJ Idead to version 14.1.4
- Install Intellij Idea again (v. 0.5.11)
- Configure SDK to reference src of erlang language.
- Create a new test project and start making the project again .. it should work fine...
Hope this helps you
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With