[
https://issues.apache.org/jira/browse/THRIFT-3547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16493572#comment-16493572
]
Brian Forbis commented on THRIFT-3547:
--------------------------------------
Is there any update on this? It seems that namespaces are completely
unimplemented in Javascript as far as I can tell.
> 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
> Priority: Major
>
> NodeJS uses file paths rather than namespaces to manage modules. However, the
> Thrift generated code 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
(v7.6.3#76005)