-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run gradient on ExDoc #78
Comments
Same with Phoenix.
|
I'm not sure what's wrong yet, but we certainly should not crash. Thanks for the report! |
@erszcz I can see this TODO in the Gradualizer code, so maybe this is a problem? pp_intersection_type([], _) ->
"";
%% TODO: pp_type seems to have problems printing bounded types.
pp_intersection_type([{type, _, bounded_fun, [Ty, []]} | Tys], Opts) ->
pp_type(Ty, Opts) ++ ["\n" || Tys /= []] ++ pp_intersection_type(Tys, Opts);
pp_intersection_type([Ty|Tys], Opts) ->
pp_type(Ty, Opts) ++ ["\n" || Tys /= []] ++ pp_intersection_type(Tys, Opts). |
@Premwoik Good catch, seems like the reason 👍 |
Returning an improper list, as IO.ANSI.format() does, leads to gradualizer_fmt crashing on the ++ operator. See #78 for the original report.
Well, it turns out the TODO in Gradualizer is a false lead. The problem is that |
Returning an improper list, as IO.ANSI.format() does, leads to gradualizer_fmt crashing on the ++ operator. See #78 for the original report.
I think this one can be closed |
@eksperimental Indeed, closing now as #79 is in 👍 Thanks again! |
This is my branch based on ExDoc main, which only adds Gradient as a dependency:
https://github.com/eksperimental/ex_doc/tree/gradient
after
mix do clean + deps.get
I run
mix gradient
and I get.It looks like a Gradualizer issue, still reporting it here so you guys can elevate it accordingly if it is necessary.
The text was updated successfully, but these errors were encountered: