Currently, if protoc is a custom Visual Studio build tool and fails to 
compile a .proto due to a syntax error or whatever, Visual Studio won't 
show its error messages.  This is because of not following Visual Studio's 
formatting of error messages.

Melissa

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.
>From 29f69f959f387527891ced609f6b2b91860caccd Mon Sep 17 00:00:00 2001
From: Myria <myriac...@gmail.com>
Date: Tue, 16 Dec 2014 14:39:41 -0800
Subject: [PATCH] Fixed the format of Microsoft Visual Studio errors so that they don't
 get filtered by Visual Studio's hiding of messages it believes are
 pointless to show.

---
 .../protobuf/compiler/command_line_interface.cc    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/google/protobuf/compiler/command_line_interface.cc b/src/google/protobuf/compiler/command_line_interface.cc
index 1325070..4315087 100644
--- a/src/google/protobuf/compiler/command_line_interface.cc
+++ b/src/google/protobuf/compiler/command_line_interface.cc
@@ -215,7 +215,7 @@ class CommandLineInterface::ErrorPrinter : public MultiFileErrorCollector,
           cerr << ":" << (line + 1) << ":" << (column + 1);
           break;
         case CommandLineInterface::ERROR_FORMAT_MSVS:
-          cerr << "(" << (line + 1) << ") : error in column=" << (column + 1);
+          cerr << "(" << (line + 1) << ") : error : in column=" << (column + 1);
           break;
       }
     }
-- 
1.7.1

Reply via email to