[erlang-patches] Optionally display full path in Dialyzer warnings

Niclas Axelsson burbas@REDACTED
Fri Jan 21 13:34:08 CET 2011


On 01/20/2011 07:50 PM, Kostis Sagonas wrote:
> long ago, Magnus Henoch wrote:
>> Currently, Dialyzer warning messages only contain the base name of the
>> file, e.g.:
>>
>> mysql_conn.erl:648: The created fun has no local return
>>
>> However, when running Dialyzer on a deep directory tree it is
>> sometimes useful to have the full paths in the warning output.  In
>> particular, when viewing the output in Emacs, hitting RET on an entry
>> to jump to the error will often yield a prompt for which directory the
>> file is in; with full paths we would avoid that prompt.
>>
>> This change adds a --fullpath option to Dialyzer, which makes the
>> warning messages contain the full path of the corresponding file.
>>
>> git fetch git://github.com/legoscia/otp.git dialyzer_full_path_option
>>
>
> Thanks for this addition!
>
> Prompted by the folks at OTP, I took a look at your patch and revised 
> it slightly in the manner described in the commit message.
>
> The --fullpath option to dialyzer can now be included in OTP.
> The patch can be fetched by:
>
>   git fetch git://github.com/kostis/otp.git dialyzer-fullpath
>
> Kostis

Thanks Kostis and Magnus,

I will replace Magnus branch with the new one that Kostis wrote.

Regards,
Niclas Axelsson, Erlang/OTP


More information about the erlang-patches mailing list