Permalink
Browse files

Add info about compile warnings to build command.

  • Loading branch information...
1 parent c2e63b8 commit 09bafba39cc804bcfcc42d4ae113425465716b48 ilya Sergeev committed with infininight Jan 11, 2013
Showing with 11 additions and 4 deletions.
  1. +11 −4 Commands/Build.tmCommand
View
@@ -41,10 +41,17 @@ list_errors(R, F, [{Line,Mod,E}|Tail]) ->
list_errors(_, _, []) -> ok.
-report_warnings([]) ->
- ok;
-report_warnings(_Warnings) ->
- io:format("<b>Warning:</b><br><br>display of warnings not implemented yet ...").
+report_warnings([]) -> ok;
+report_warnings(Warnings) ->
+ io:format("<br><br><b>Warning:</b><br><br>"),
+ [{FilePath, WarningsList}] = Warnings,
+ list_warnings(FilePath, WarningsList).
+
+
+list_warnings(_, []) -> ok;
+list_warnings(F, [{Line,Mod,E}|Tail]) ->
+ io:format("<a style=\"color:orange\" href=\"txmt://open/?url=file://~s&line=~p\">~s:~p: ~s</a><br>", [F, Line, F, Line, Mod:format_error(E)]),
+ list_warnings(F, Tail).
</string>
<key>input</key>
<string>document</string>

0 comments on commit 09bafba

Please sign in to comment.