You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Bryan Duxbury (JIRA)" <ji...@apache.org> on 2010/08/19 07:46:17 UTC
[jira] Assigned: (THRIFT-57) Generated thrift code relies on gen-rb
being in $:
[ https://issues.apache.org/jira/browse/THRIFT-57?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryan Duxbury reassigned THRIFT-57:
-----------------------------------
Assignee: Kevin Ballard
> Generated thrift code relies on gen-rb being in $:
> --------------------------------------------------
>
> Key: THRIFT-57
> URL: https://issues.apache.org/jira/browse/THRIFT-57
> Project: Thrift
> Issue Type: Bug
> Components: Library (Ruby)
> Reporter: Kevin Ballard
> Assignee: Kevin Ballard
> Priority: Minor
> Attachments: 0001-rb-Use-File.dirname-__FILE__-in-generated-requires.patch
>
>
> The generated thrift code for ruby relies on the gen-rb folder being in $:. The generated service definition and _constants file both have a bare require 'Name_types', which can't find the Name_types.rb file unless it's in $:. The generated code should be using File.dirname(__FILE__) to specify the path as relative to itself.
> The only problem here is any clients of the library which put gen-rb into $: and then require the Name_types file themselves will end up with warnings about redefining the FIELDS constant. This should be treated as a deprecation warning.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.