Strange Compilation Message

65 views
Skip to first unread message

Onorio Catenacci

unread,
Jun 21, 2016, 9:55:01 AM6/21/16
to elixir-lang-core
Hi all,

Win 10 with Elixir v1.3.0

Sorry I can't make a smaller repro set for you but I hope this is sufficient.  https://github.com/OnorioCatenacci/Riismi

If I comment out line 3 in file.ex i. e. 

#  @processedfile_directory Riismi.processedfile_path

My app compiles pretty much immediately.  However if I leave it enabled, I get this: 

PS C:\Users\ocatenacci\riismi> iex.bat -S mix
Eshell V7.3  (abort with ^G)
Compiling 2 files (.ex)
warning: redefining module Riismi (current version loaded from Elixir.Riismi.beam)
  lib/riismi.ex:1

Compiling lib/file.ex (it's taking more than 10s)
eheap_alloc: Cannot allocate 1219668168 bytes of memory (of type "heap").

The difference is solely whether or not I comment out that line.  I have double checked everything I can think to check but I'm still not finding the problem.  Given the error message it seems as if something is endlessly recursing but since the line right above it ( @file_directory Riismi.datafile_path) is very analogous I can't figure out what may be recursing.  

Any suggestions would be greatly appreciated.  I'm only posting this to core because it almost seems like it might be a bug--although I realize it's more likely something I've done and I've just not spotted yet.

--
Onorio

Onorio Catenacci

unread,
Jun 21, 2016, 10:42:21 AM6/21/16
to elixir-lang-core
By the way, for what it's worth, I saw the same behavior with v1.2.6 (but I did not get the message about it taking longer than 10s to compile).

--
Onorio
Reply all
Reply to author
Forward
0 new messages