diff options
author | Stavros Aronis <[email protected]> | 2012-03-01 14:19:59 +0100 |
---|---|---|
committer | Stavros Aronis <[email protected]> | 2012-03-01 14:19:59 +0100 |
commit | c6a8074bf0e81a97cdd924943f1ad53ea2a05520 (patch) | |
tree | b4d5d589394b5e6f34249ff6ed185d272791acae /lib | |
parent | 1f9f1f5f841853310889d3668141b807b744ece2 (diff) | |
download | otp-c6a8074bf0e81a97cdd924943f1ad53ea2a05520.tar.gz otp-c6a8074bf0e81a97cdd924943f1ad53ea2a05520.tar.bz2 otp-c6a8074bf0e81a97cdd924943f1ad53ea2a05520.zip |
Unknown types are being reported by dialyzer's GUIs
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dialyzer/src/dialyzer_gui.erl | 10 | ||||
-rw-r--r-- | lib/dialyzer/src/dialyzer_gui_wx.erl | 10 |
2 files changed, 20 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); diff --git a/lib/dialyzer/src/dialyzer_gui_wx.erl b/lib/dialyzer/src/dialyzer_gui_wx.erl index e711c15ea7..9ff32bd8b1 100644 --- a/lib/dialyzer/src/dialyzer_gui_wx.erl +++ b/lib/dialyzer/src/dialyzer_gui_wx.erl @@ -503,6 +503,16 @@ gui_loop(#gui_state{backend_pid = BackendPid, doc_plt = DocPlt, [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); |