toraritte / program

1 stars 0 forks source link

Add type specs #8

Open toraritte opened 5 years ago

toraritte commented 5 years ago

Dialyzer complains regarding the escript shebang, so figure out a way to do it. Probably converting to an application (#7) would help because then program would be just a script calling the main app.

$ dialyzer --src program.erl

  Checking whether the PLT /home/toraritte/.dialyzer_plt is up-to-date... yes
  Proceeding with analysis...
dialyzer: Analysis failed with error:
Could not scan the following file(s):
/home/toraritte/Downloads/alert-logic/program.erl:1: syntax error before: '#'
/home/toraritte/Downloads/alert-logic/program.erl:6: no module definition

Last messages in the log cache:
  Reading files and computing callgraph... 
toraritte commented 5 years ago

https://stackoverflow.com/questions/20862186/how-do-i-use-external-libraries-in-an-erlang-escript (especially relevant the link in fenollp's answer, and this applies to "#9 Add tests" as well.)