[erlang-questions] QLC in stdlib-2.5 broken?

Henrý Þór Baldursson henry@REDACTED
Fri Jul 10 00:19:03 CEST 2015


Fixed it myself. Not sure what the problem was but a refresh of Erlang 18
from erlang solutions did the trick.

- Henry


Henrý Þór Baldursson / Programmer
henry@REDACTED / +354 869-8264 <+3548698264>

CrankWheel
+354 534-5700 <+3545345700>
Ármúli 6, 108 Reykjavík, Iceland
http://crankwheel.com/

On Thu, Jul 9, 2015 at 6:55 PM, Henrý Þór Baldursson <henry@REDACTED>
wrote:

> Hello
>
> I'm trying to use QLC, but even including the header gives me a compiler
> error:
> ➜  ~  cat test.erl
> -module(test).
> -include_lib("stdlib/include/qlc.hrl").
> -export([init/0]).
>
> init() ->
> ok.
> ➜  ~  erlc test.erl
> test.erl: error in parse transform 'qlc': {{case_clause,[{5}]},
>                                  [{qlc_pt,lc_loc,2,
>                                       [{file,"qlc_pt.erl"},{line,341}]},
>                                   {qlc_pt,'-lc_messages/2-lc$^1/1-1-',2,
>                                       [{file,"qlc_pt.erl"},{line,337}]},
>                                   {qlc_pt,'-lc_messages/2-lc$^0/1-0-',2,
>                                       [{file,"qlc_pt.erl"},{line,337}]},
>                                   {qlc_pt,compile_messages,4,
>                                       [{file,"qlc_pt.erl"},{line,305}]},
>                                   {qlc_pt,parse_transform,2,
>                                       [{file,"qlc_pt.erl"},{line,95}]},
>
> {compile,'-foldl_transform/2-anonymous-2-',
>                                       2,
>                                       [{file,"compile.erl"},{line,932}]},
>                                   {compile,foldl_transform,2,
>                                       [{file,"compile.erl"},{line,934}]},
>
> {compile,'-internal_comp/4-anonymous-1-',2,
>                                       [{file,"compile.erl"},{line,295}]}]}
> ➜  ~
>
> I'm using the version erlang.org releases for OS/X:
> [{release,"Erlang/OTP","18","7.0",
>           [{kernel,"4.0","/usr/local/lib/erlang/lib/kernel-4.0"},
>            {stdlib,"2.5","/usr/local/lib/erlang/lib/stdlib-2.5"},
>            {sasl,"2.5","/usr/local/lib/erlang/lib/sasl-2.5"}],
>           permanent}].
>
> Regards,
> Henry.
>
>
> Henrý Þór Baldursson / Programmer
> henry@REDACTED / +354 869-8264 <+3548698264>
>
> CrankWheel
> +354 534-5700 <+3545345700>
> Ármúli 6, 108 Reykjavík, Iceland
> http://crankwheel.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150709/3de6b2c0/attachment.htm>


More information about the erlang-questions mailing list