erlc (R9C) hangs when last line is missing EOF

Chris Pressey cpressey@REDACTED
Thu Sep 18 04:37:04 CEST 2003


Try this:


-module(blah).
%%% BEGIN blah %%%
-export([foo/0]).
foo() -> bar.
%%% END of blah %%%
                   ^ do not include an EOL here.


# erlc foo.erl
<<indefinate hang>>

This happens for me both on FreeBSD-4.9 PRERELEASE and Windows 98. 
(Also, I can't seem to gracefully kill erlc on Windows 98 when this
happens - Ctrl-C gives me the menu, but the 'a' option doesn't work.)

This only seems to happen when the last line is a comment AND is missing
an EOL.

-Chris



More information about the erlang-questions mailing list