[jira] [Comment Edited] (THRIFT-2063) Go compiler cannot create code for maps with complex/binary keys

2017-07-17 Thread Davin Chia (JIRA)

[ 
https://issues.apache.org/jira/browse/THRIFT-2063?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16087783#comment-16087783
 ] 

Davin Chia edited comment on THRIFT-2063 at 7/17/17 8:57 PM:
-

Bumping this. I know this is an old issue, but I am currently running into this 
problem while introducing go into our code base. I am compiling using thrift 
0.10.0. Is there an update on this? Has there been a consensus to write thrift 
definitions without complex keys to avoid this problem and are there current 
work arounds? Or Is this still an open issue with solutions open to discussion? 
 [~apesternikov] [~jensg] [~traviscline]


was (Author: davinc):
Bumping this. I know this is an old issue, but I am currently running into this 
problem while introducing go into our code base. I am compiling using thrift 
0.10.0. Is there an update on this? Has there been a consensus to write thrift 
definitions without complex keys to avoid this problem and are there current 
work arounds? Or Is this still an open issue with solutions open to discussion? 
 [~apesternikov]

> Go compiler cannot create code for maps with complex/binary keys
> 
>
> Key: THRIFT-2063
> URL: https://issues.apache.org/jira/browse/THRIFT-2063
> Project: Thrift
>  Issue Type: Bug
>  Components: Go - Compiler
>Reporter: Remo Hertig
>
> trying to generate code for ThriftTest leads to:
> {code}
> ../../compiler/cpp/thrift --gen go ../ThriftTest.thrift 
> [WARNING:/tbHD/Home/nairboon/dev/thrift/test/ThriftTest.thrift:41] No 
> generator named 'noexist' could be found!
> [WARNING:/tbHD/Home/nairboon/dev/thrift/test/ThriftTest.thrift:42] cpp 
> generator does not accept 'noexist' as sub-namespace!
> Error: Cannot produce a valid type for a Go map key: map[int32]bool - 
> aborting.{code}
> the affected struct seems to be #3: 
> {code}
> struct CrazyNesting {
>   1: string string_field,
>   2: optional set set_field,
>   3: required list< map> 
> list_field,
>   4: binary binary_field
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Comment Edited] (THRIFT-2063) Go compiler cannot create code for maps with complex/binary keys

2017-07-17 Thread Davin Chia (JIRA)

[ 
https://issues.apache.org/jira/browse/THRIFT-2063?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16087783#comment-16087783
 ] 

Davin Chia edited comment on THRIFT-2063 at 7/17/17 8:00 PM:
-

Bumping this. I know this is an old issue, but I am currently running into this 
problem while introducing go into our code base. I am compiling using thrift 
0.10.0. Is there an update on this? Has there been a consensus to write thrift 
definitions without complex keys to avoid this problem and are there current 
work arounds? Or Is this still an open issue with solutions open to discussion? 
 [~apesternikov]


was (Author: davinc):
Bumping this. I know this is an old issue, but I am currently running into this 
problem while introducing go into our code base. I am compiling using thrift 
0.10.0. Is there an update on this? Has there been a consensus to write thrift 
definitions without complex keys to avoid this problem and are there current 
work arounds? Or Is this still an open issue with solutions open to discussion? 
 

> Go compiler cannot create code for maps with complex/binary keys
> 
>
> Key: THRIFT-2063
> URL: https://issues.apache.org/jira/browse/THRIFT-2063
> Project: Thrift
>  Issue Type: Bug
>  Components: Go - Compiler
>Reporter: Remo Hertig
>
> trying to generate code for ThriftTest leads to:
> {code}
> ../../compiler/cpp/thrift --gen go ../ThriftTest.thrift 
> [WARNING:/tbHD/Home/nairboon/dev/thrift/test/ThriftTest.thrift:41] No 
> generator named 'noexist' could be found!
> [WARNING:/tbHD/Home/nairboon/dev/thrift/test/ThriftTest.thrift:42] cpp 
> generator does not accept 'noexist' as sub-namespace!
> Error: Cannot produce a valid type for a Go map key: map[int32]bool - 
> aborting.{code}
> the affected struct seems to be #3: 
> {code}
> struct CrazyNesting {
>   1: string string_field,
>   2: optional set set_field,
>   3: required list< map> 
> list_field,
>   4: binary binary_field
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)