[erlang-questions] dialyzer error: apply_op_not_a_variable

Kostis Sagonas kostis@REDACTED
Wed Oct 12 22:44:02 CEST 2011

On 10/12/11 22:33, Joel Reymont wrote:
> How do I troubleshoot this?

First you try to dialyze smaller portions of your code base at a time 
and locate the module where dialyzer crashes.  Alternatively, you make a 
lucky guess which module it is.

> dialyzer: Analysis failed with error: {{apply_op_not_a_variable,tuple},
>   [{dialyzer_dep,traverse,4},  ...

Judging from the error, I am guessing that you most probably have some 
"old-style fun" application in your code.  Something of the form:


Change this to M:F(Arg1,...,ArgN) instead which is more kosher, or to a 
fun, which is more... fun :)


More information about the erlang-questions mailing list