jeremyjh / dialyxir

Mix tasks to simplify use of Dialyzer in Elixir projects.
Apache License 2.0
1.69k stars 141 forks source link

Failed to parse warning #424

Open jpdionne opened 3 years ago

jpdionne commented 3 years ago

Environment

Current behavior

Failed to parse warning: [{:"(", 1}, {:atom_part, 1, 'A'}, {:atom_part, 1, 'c'}, {:atom_part, 1, 'c'}, {:"::", 1}, {:atom_part, 1, 'a'}, {:atom_part, 1, 'n'}, {:atom_part, 1, 'y'}, {:"(", 1}, {:")", 1}, {:",", 1}, {:"#", 1}, {:"{", 1}, {:atom_full, 1, '\'jid\''}, {:":=", 1}, {:"#", 1}, {:atom_part, 1, 'j'}, {:atom_part, 1, 'i'}, {:atom_part, 1, 'd'}, {:"{", 1}, {:atom_part, 1, 'u'}, {:atom_part, 1, 's'}, {:atom_part, 1, 'e'}, {:atom_part, 1, 'r'}, {:"::", 1}, {:atom_part, 1, 'b'}, {:atom_part, 1, 'i'}, {:atom_part, 1, 'n'}, {:atom_part, 1, 'a'}, {:atom_part, 1, 'r'}, {:atom_part, 1, 'y'}, {:"(", 1}, {:")", 1}, {:",", 1}, {:atom_part, 1, 's'}, {:atom_part, 1, 'e'}, {:atom_part, 1, 'r'}, {:atom_part, 1, 'v'}, {:atom_part, 1, 'e'}, {:atom_part, 1, 'r'}, {:"::", 1}, {:atom_part, 1, 'b'}, {:atom_part, 1, 'i'}, {:atom_part, 1, 'n'}, {:atom_part, 1, 'a'}, {:atom_part, 1, 'r'}, {:atom_part, 1, 'y'}, {:"(", 1}, {:")", ...}, {...}, ...]


Please file a bug in https://github.com/jeremyjh/dialyxir/issues with this message.

Failed to parse warning: [{:"(", 1}, {:atom_part, 1, 'b'}, {:atom_part, 1, 'i'}, {:atom_part, 1, 'n'}, {:atom_part, 1, 'a'}, {:atom_part, 1, 'r'}, {:atom_part, 1, 'y'}, {:"(", 1}, {:")", 1}, {:|, 1}, {:"{", 1}, {:atom_part, 1, 'b'}, {:atom_part, 1, 'i'}, {:atom_part, 1, 'n'}, {:atom_part, 1, 'a'}, {:atom_part, 1, 'r'}, {:atom_part, 1, 'y'}, {:"(", 1}, {:")", 1}, {:|, 1}, {:"[", 1}, {:atom_part, 1, 'b'}, {:atom_part, 1, 'y'}, {:atom_part, 1, 't'}, {:atom_part, 1, 'e'}, {:"(", 1}, {:")", 1}, {:"]", 1}, {:",", 1}, {:"[", 1}, {:atom_part, 1, 'a'}, {:atom_part, 1, 'n'}, {:atom_part, 1, 'y'}, {:"(", 1}, {:")", 1}, {:"]", 1}, {:"}", 1}, {:",", 1}, {:atom_part, 1, 'b'}, {:atom_part, 1, 'i'}, {:atom_part, 1, 'n'}, {:atom_part, 1, 'a'}, {:atom_part, 1, 'r'}, {:atom_part, 1, 'y'}, {:"(", 1}, {:")", 1}, {:")", 1}, {:->, 1}, {:"#", ...}, {...}, ...]

davydog187 commented 3 years ago

I was snagged by this as well

Failed to parse warning:
[{:"(", 1}, {:atom_part, 1, 'o'}, {:atom_part, 1, 'p'}, {:atom_part, 1, 'e'}, {:atom_part, 1, 'n'}, {:atom_part, 1, 't'}, {:atom_part, 1, 'e'}, {:atom_part, 1, 'l'}, {:atom_part, 1, 'e'}, {:atom_part, 1, 'm'}, {:atom_part, 1, 'e'}, {:atom_part, 1, 't'}, {:atom_part, 1, 'r'}, {:atom_part, 1, 'y'}, {:":", 1}, {:atom_part, 1, 't'}, {:atom_part, 1, 'r'}, {:atom_part, 1, 'a'}, {:atom_part, 1, 'c'}, {:atom_part, 1, 'e'}, {:atom_part, 1, 'r'}, {:"(", 1}, {:")", 1}, {:",", 1}, {:atom_part, 1, 'o'}, {:atom_part, 1, 'p'}, {:atom_part, 1, 'e'}, {:atom_part, 1, 'n'}, {:atom_part, 1, 't'}, {:atom_part, 1, 'e'}, {:atom_part, 1, 'l'}, {:atom_part, 1, 'e'}, {:atom_part, 1, 'm'}, {:atom_part, 1, 'e'}, {:atom_part, 1, 't'}, {:atom_part, 1, 'r'}, {:atom_part, 1, 'y'}, {:":", 1}, {:atom_part, 1, 's'}, {:atom_part, 1, 'p'}, {:atom_part, 1, 'a'}, {:atom_part, 1, 'n'}, {:_, 1}, {:atom_part, 1, 'n'}, {:atom_part, 1, 'a'}, {:atom_part, 1, 'm'}, {:atom_part, 1, 'e'}, {:"(", 1}, {:")", ...}, {...}, ...]
Legacy warning:
redacted:519: The call ot_tracer:with_span({atom(),_},'redacted',#{'attributes':=#{'incoming_id':=_, 'outgoing_id':=_}},fun((_) -> #{'__struct__':='Elixir.Commanded.Aggregate.Multi', 'aggregate':=#{'__struct__':=atom(), atom()=>_}, 'executions':=[fun(),...]})) breaks the contract (opentelemetry:tracer(),opentelemetry:span_name(),ot_span:start_opts(),traced_fun(T)) -> T
jeremyjh commented 3 years ago

Any chance you have a code sample you can share that reproduces the problem?

davydog187 commented 3 years ago

I can try to produce one. At the moment I dont have one thats shareable