Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.6
-
None
-
Windows 7 (x64) .NET 4.0
Description
GIVEN
1. The following IDL file (Notification.thrift):
namespace my.example
struct Notification {
1: required string id;
2: optional string respondsTo;
3: required string topic;
4: required i64 created;
5: optional string type;
6: optional string body;
}
WHEN
1. thrift -v --gen csharp:log_unexpected,hashcode Notification.thrift
OBSERVED OUTCOME
I see the following in the console:
Scanning <path>/Notification.thrift for includes
Parsing <path>/Notification.thrift for types
Program: <path>/Notification.thrift
Generating "csharp:log_unexpected,hashcode"
a gen-csharp folder is generated, but is completely empty.
EXPECTED OUTCOME
The console should display a message stating that it failed to generate code because of a problem in the IDL.
REMARKS
When I saw my error and changed the semi-colons to commas, everything worked as expected.