apocolipse/Thrift-Swift

Invalid redeclaration of 'description' / tag 1.0.7

Opened this issue · 2 comments

Hello!
Faced with issue (tag 1.0.7): Invalid redeclaration of 'description'
appears in all classes where description property exists

Up to tag 1.0.6 there was no issue.

My struct in .thrift file:

struct TCountryInfo {
	1: ID id,
	2: string title,
	3: string subtitle,
	4: string description,
	5: string image,
	6: ID countryId,
	7: Attributes attributes
}

Thrift generated code for this struct:
class-property

class-extension

Hello,

Have you tried using the debug_descriptions flag for the swift generator? This will conform to CustomDebugStringConvertible instead, which adds the debugDescription var in the extension.

thrift --gen swift:async_clients,debug_descriptions my_interface.thrift

@wyland I am using latest tag. Generating code with parameter debug_descriptions causes error:
debugdescription

Can be easily fixed manually but seems code generator works incorrect with debug_descriptions parameter.