aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/src/dialyzer_gui.erl
diff options
context:
space:
mode:
authorStavros Aronis <[email protected]>2012-03-01 14:19:59 +0100
committerStavros Aronis <[email protected]>2012-03-01 14:19:59 +0100
commitc6a8074bf0e81a97cdd924943f1ad53ea2a05520 (patch)
treeb4d5d589394b5e6f34249ff6ed185d272791acae /lib/dialyzer/src/dialyzer_gui.erl
parent1f9f1f5f841853310889d3668141b807b744ece2 (diff)
downloadotp-c6a8074bf0e81a97cdd924943f1ad53ea2a05520.tar.gz
otp-c6a8074bf0e81a97cdd924943f1ad53ea2a05520.tar.bz2
otp-c6a8074bf0e81a97cdd924943f1ad53ea2a05520.zip
Unknown types are being reported by dialyzer's GUIs
Diffstat (limited to 'lib/dialyzer/src/dialyzer_gui.erl')
-rw-r--r--lib/dialyzer/src/dialyzer_gui.erl10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/dialyzer/src/dialyzer_gui.erl b/lib/dialyzer/src/dialyzer_gui.erl
index f60194e01f..bac659548f 100644
--- a/lib/dialyzer/src/dialyzer_gui.erl
+++ b/lib/dialyzer/src/dialyzer_gui.erl
@@ -511,6 +511,16 @@ gui_loop(#gui_state{add_all = AddAll, add_file = AddFile, add_rec = AddRec,
[ExtCalls]),
free_editor(State, "Analysis done", Msg),
gui_loop(State);
+ {BackendPid, ext_types, ExtTypes} ->
+ Map = fun({M,F,A}) -> io_lib:format("~p:~p/~p",[M,F,A]) end,
+ ExtTypeString = string:join(lists:map(Map, ExtTypes), "\n"),
+ Msg = io_lib:format("The following remote types are being used "
+ "but information about them is not available.\n"
+ "The analysis might get more precise by including "
+ "the modules containing these types and making sure "
+ "that they are exported:\n~s\n", [ExtTypeString]),
+ free_editor(State, "Analysis done", Msg),
+ gui_loop(State);
{BackendPid, log, LogMsg} ->
update_editor(Log, LogMsg),
gui_loop(State);