[erlang-questions] Can epp_dodge:parse accept a ram_file?

Leo Liu sdl.web@REDACTED
Tue Feb 11 06:19:29 CET 2014


In

  {ok, IoDevice} = file:open(Text, [ram]),
  epp_dodger:parse(IoDevice, 1, [{no_fail, true}])

where Text is a string, I am always getting:

exception error: no function clause matching 
        io:request({file_descriptor,ram_file,#Port<0.13034>},
                   {get_until,unicode,[],erl_scan,tokens,[1,[]]}) (io.erl, line 553)

Ideas?

Thanks,
Leo

Erlang/OTP 17 [RELEASE CANDIDATE 1] [erts-6.0] [source-0cbf6ec7]




More information about the erlang-questions mailing list