You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Kapil Joshi (JIRA)" <ji...@apache.org> on 2016/01/07 08:18:40 UTC

[jira] [Commented] (THRIFT-3314) Dots in file names of includes causes dots in javascript variable names

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

Kapil Joshi commented on THRIFT-3314:
-------------------------------------

[~jensg] 
Can you please have a look at the patch?

> Dots in file names of includes causes dots in javascript variable names
> -----------------------------------------------------------------------
>
>                 Key: THRIFT-3314
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3314
>             Project: Thrift
>          Issue Type: Bug
>          Components: JavaScript - Compiler
>            Reporter: Matt Fysh
>         Attachments: thrift-3314-feature.patch
>
>
> Hi there,
> {code:title=a.thrift}
> include "b.c.thrift"
> {code}
> {code:title=b.c.thrift}
> # nada
> {code}
> {{$ thrift -r --gen js:node a.thrift}}
> {code:title=gen-nodejs/a_types}
> //
> // Autogenerated by Thrift Compiler (0.9.2)
> //
> // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
> //
> var thrift = require('thrift');
> var Thrift = thrift.Thrift;
> var Q = thrift.Q;
> var b.c_ttypes = require('./b.c_types')
> var ttypes = module.exports = {};
> {code}
> One variable in the auto-generated thrift output contains a dot, which is not valid JavaScript and will not compile.
> Cheers,



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)