From sdl.web@REDACTED Fri Jul 8 17:26:00 2016 From: sdl.web@REDACTED (Leo Liu) Date: Fri, 08 Jul 2016 23:26:00 +0800 Subject: [erlang-bugs] erl_eval:expr/5 oddity Message-ID: Assume X is {'if',1, [{clause,1,[], [[{op,1,'=:=',{var,1,'Filters'},{nil,1}}]], [{atom,1,true}]}, {clause,1,[],[[{atom,1,true}]],[{atom,1,false}]}]} which is the abstract format for if Filters =:= [] -> true; true -> false end. 1> erl_eval:expr(X, [], none, none, none). => false 2) erl_eval:expr(X, []) => ** exception error: {unbound_var,'Filters'} bug? Leo From sdl.web@REDACTED Sun Jul 10 12:40:31 2016 From: sdl.web@REDACTED (Leo Liu) Date: Sun, 10 Jul 2016 18:40:31 +0800 Subject: [erlang-bugs] erl_eval:expr/5 oddity References: Message-ID: Reported as https://bugs.erlang.org/browse/ERL-189 From rvirding@REDACTED Mon Jul 11 03:17:50 2016 From: rvirding@REDACTED (Robert Virding) Date: Mon, 11 Jul 2016 03:17:50 +0200 Subject: [erlang-bugs] erl_eval:expr/5 oddity In-Reply-To: References: Message-ID: It is a bit strange as a lint test on the expression is only done for erl_eval:expr/2 and it is this which catches the error. Robert On 10 July 2016 at 12:40, Leo Liu wrote: > Reported as https://bugs.erlang.org/browse/ERL-189 > > _______________________________________________ > erlang-bugs mailing list > erlang-bugs@REDACTED > http://erlang.org/mailman/listinfo/erlang-bugs > -------------- next part -------------- An HTML attachment was scrubbed... URL: From essen@REDACTED Thu Jul 14 15:14:30 2016 From: essen@REDACTED (=?UTF-8?Q?Lo=c3=afc_Hoguin?=) Date: Thu, 14 Jul 2016 15:14:30 +0200 Subject: [erlang-bugs] Problem with -pa and code:priv_dir Message-ID: <8cc0d17e-40c0-d0c8-23ca-daae3a75ac82@ninenines.eu> Hello, I can't seem to be able to log in with Github to bugs.erlang.org, I get this: OpenID Failed Github returned 'redirect_uri_mismatch, The redirect_uri MUST match the registered callback URL for this application., https://developer.github.com/v3/oauth/#redirect-uri-mismatch, 05ff145b-bfa8-4152-88a0-b4cce9de3d48' which suggests an invalid configuration, please check if Client ID and Client Secret match with those offered by Github. So I am posting this issue here instead: I run into an issue when using -pa and code:priv_dir/1 with Erlang 19.0. An example is worth a thousand words: $ erl -pa ./test_c_src_nif/ebin Erlang/OTP 19 [erts-8.0] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false] Eshell V8.0 (abort with ^G) 1> code:priv_dir(test_c_src_nif). "./test_c_src_nif/priv" $ erl -pa test_c_src_nif/ebin Erlang/OTP 19 [erts-8.0] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false] Eshell V8.0 (abort with ^G) 1> code:priv_dir(test_c_src_nif). "test_c_src_nif/ebin/priv" Considering -pa takes paths I'd expect them to be resolved the same with or without the dot segment. Cheers, -- Lo?c Hoguin http://ninenines.eu Author of The Erlanger Playbook, A book about software development using Erlang From bjorn-egil.xb.dahlberg@REDACTED Thu Jul 14 15:50:11 2016 From: bjorn-egil.xb.dahlberg@REDACTED (=?UTF-8?Q?Bj=c3=b6rn-Egil_Dahlberg_XB?=) Date: Thu, 14 Jul 2016 15:50:11 +0200 Subject: [erlang-bugs] Problem with -pa and code:priv_dir In-Reply-To: <8cc0d17e-40c0-d0c8-23ca-daae3a75ac82@ninenines.eu> References: <8cc0d17e-40c0-d0c8-23ca-daae3a75ac82@ninenines.eu> Message-ID: <57879893.2040603@ericsson.com> On 2016-07-14 15:14, Lo?c Hoguin wrote: > Hello, > > I can't seem to be able to log in with Github to bugs.erlang.org, I > get this: > > OpenID Failed > Github returned 'redirect_uri_mismatch, The redirect_uri MUST match > the registered callback URL for this application., > https://developer.github.com/v3/oauth/#redirect-uri-mismatch, > 05ff145b-bfa8-4152-88a0-b4cce9de3d48' which suggests an invalid > configuration, please check if Client ID and Client Secret match with > those offered by Github. This issue should be fixed now.