Quantcast

Problem with -pa and code:priv_dir

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Problem with -pa and code:priv_dir

Loïc Hoguin-3
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
_______________________________________________
erlang-bugs mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-bugs
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem with -pa and code:priv_dir

Björn-Egil Dahlberg XB
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.

_______________________________________________
erlang-bugs mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-bugs
Loading...