title: Erlang Crash Dump is being written to: erl_crash.dump...done
body: <p>So I just started learning some basic Erlang. I am working on IntelliJ Idea. I wrote a basic function to add two numbers: </p>
  
  <pre><code>-module(easy).
  -author("var").
  
  %% API
  -export([add/2]).
  
  add(X, Y) -&gt;
    X + Y.
  </code></pre>
  
  <p>However when I run it I am getting the following error: </p>
  
  <pre><code>{"init terminating in do_boot",{{badmatch,{error,{1,erl_parse,["syntax error before: ","','"]}}},[{init,start_it,1,[]},{init,start_em,1,[]}]}}
  
  Crash dump is being written to: erl_crash.dump...done
  init terminating in do_boot ()
  </code></pre>
  
  <p>I can't seem to figure out exactly why this happening. Is it to do with the Run config for Idea?</p>