Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

erldocs crash with spec with <<:32,_:_*8>>. #8

radarek opened this Issue May 16, 2011 · 1 comment


None yet
2 participants

radarek commented May 16, 2011

I have simple test case:


-spec bug() -> <<_:32,_:_*8>>. % this type is returned if we remove it and run typer --show erldocsbug.erl
bug() ->
  Bin = <<"Hello World">>,
  <<(size(Bin)):32, Bin/binary>>.
$ ~/opt/src/erlang/erldocs/erldocs 
Building erldocs
Generating XML - erldocsbug
edoc: error in layout 'docb_edoc_xml_cb': {'EXIT',{function_clause,[{docb_edoc_xml_cb,t_type,[[{xmlElement,binary,[],[],{xmlNamespace,[],[]},[{type,2},{'fun',...},{...}|...],1,[{...}],[],...}]]},{docb_edoc_xml_cb,t_fun,1},{docb_edoc_xml_cb,funcheader,1},{docb_edoc_xml_cb,function,2},{lists,flatmap,2},{docb_edoc_xml_cb,functions,1},{docb_edoc_xml_cb,layout_module,2},{docb_edoc_xml_cb,module,2}]}}.
Error generating XML ("/private/tmp/erlang/erldocs/erldocsbug.erl"): {'EXIT',
Creating index.html ...
Creating erldocs_index.js ...
Woot, finished in 0 Minutes 0 Seconds

daleharvey commented Nov 28, 2011

I just checked and this is still a bug, its not inside erldocs, but I will see if it can be handled anway (or a patch for erlang)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment