Erlang/OTP Forums

Author Message

<  Erlang bugs mailing list  ~  erlc (R9C) hangs when last line is missing EOF

cpressey at catseye.mine.
Posted: Thu Sep 18, 2003 2:35 am Reply with quote
Guest
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


Post generated using Mail2Forum (http://m2f.sourceforge.net)
erlang at manderp.freeser
Posted: Thu Sep 18, 2003 5:48 am Reply with quote
Guest
I've seen this on SuSE 8.2 linux too. There's an easy work-around (-:

Pete.

Chris Pressey wrote:
> 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
>
>




Post generated using Mail2Forum (http://m2f.sourceforge.net)

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum