[erlang-bugs] Problem with -pa and code:priv_dir
Loïc Hoguin
essen@REDACTED
Thu Jul 14 15:14:30 CEST 2016
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
More information about the erlang-bugs
mailing list