You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Yunchi Luo (JIRA)" <ji...@apache.org> on 2016/01/13 06:10:39 UTC
[jira] [Created] (THRIFT-3547) NodeJS generated require() paths
should mirror include paths
Yunchi Luo created THRIFT-3547:
----------------------------------
Summary: NodeJS generated require() paths should mirror include paths
Key: THRIFT-3547
URL: https://issues.apache.org/jira/browse/THRIFT-3547
Project: Thrift
Issue Type: Bug
Components: Node.js - Compiler
Affects Versions: 0.9.3
Reporter: Yunchi Luo
NodeJS uses file paths rather than namespaces to manage modules. However, the Thrift compiler ignores file paths.
I.e. if we have
foo.thrift:
include "../../shared.thrift";
It will turn into
foo_types.js:
var shared_types = require("./shared.thrift");
This forces us to put all generated node code in the same directory. It's problematic since if we happen to have
a/foo.thrift
b/foo.thrift
One file will have to overwrite the other...
I'm happy to make a patch for this, but unclear to me how much of a breaking change this would be for people, if it is at all.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)