You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Michael Stockton (JIRA)" <ji...@apache.org> on 2009/04/07 05:03:12 UTC
[jira] Created: (THRIFT-431) capitalize namespace values
capitalize namespace values
---------------------------
Key: THRIFT-431
URL: https://issues.apache.org/jira/browse/THRIFT-431
Project: Thrift
Issue Type: Bug
Components: Compiler (Ruby)
Reporter: Michael Stockton
Assignee: Michael Stockton
Priority: Minor
For example, "namespace rb facebook.fb303" generates lowercase module names that ruby will not load:
module facebook
module fb303
end
end
vs.
module Facebook
module Fb303
end
end
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (THRIFT-431) capitalize namespace values
Posted by "Kevin Clark (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kevin Clark resolved THRIFT-431.
--------------------------------
Resolution: Fixed
Fix Version/s: 0.1
In 763022. Thanks!
> capitalize namespace values
> ---------------------------
>
> Key: THRIFT-431
> URL: https://issues.apache.org/jira/browse/THRIFT-431
> Project: Thrift
> Issue Type: Bug
> Components: Compiler (Ruby)
> Reporter: Michael Stockton
> Assignee: Michael Stockton
> Priority: Minor
> Fix For: 0.1
>
> Attachments: thrift-431-v2.patch, thrift-431.patch
>
>
> For example, "namespace rb facebook.fb303" generates lowercase module names that ruby will not load:
> module facebook
> module fb303
> end
> end
> vs.
> module Facebook
> module Fb303
> end
> end
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (THRIFT-431) capitalize namespace values
Posted by "Kevin Clark (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696712#action_12696712 ]
Kevin Clark commented on THRIFT-431:
------------------------------------
Doh, this breaks the tests in test/rb (which should really be incorporated with the specs, but that's the subject of another ticket). Could you tweak them real quick? Try make check from that dir.
> capitalize namespace values
> ---------------------------
>
> Key: THRIFT-431
> URL: https://issues.apache.org/jira/browse/THRIFT-431
> Project: Thrift
> Issue Type: Bug
> Components: Compiler (Ruby)
> Reporter: Michael Stockton
> Assignee: Michael Stockton
> Priority: Minor
> Attachments: thrift-431-v2.patch, thrift-431.patch
>
>
> For example, "namespace rb facebook.fb303" generates lowercase module names that ruby will not load:
> module facebook
> module fb303
> end
> end
> vs.
> module Facebook
> module Fb303
> end
> end
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (THRIFT-431) capitalize namespace values
Posted by "Michael Stockton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696400#action_12696400 ]
Michael Stockton commented on THRIFT-431:
-----------------------------------------
Yes, this patch affects namespaces declared in external files, too.
> capitalize namespace values
> ---------------------------
>
> Key: THRIFT-431
> URL: https://issues.apache.org/jira/browse/THRIFT-431
> Project: Thrift
> Issue Type: Bug
> Components: Compiler (Ruby)
> Reporter: Michael Stockton
> Assignee: Michael Stockton
> Priority: Minor
> Attachments: thrift-431.patch
>
>
> For example, "namespace rb facebook.fb303" generates lowercase module names that ruby will not load:
> module facebook
> module fb303
> end
> end
> vs.
> module Facebook
> module Fb303
> end
> end
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (THRIFT-431) capitalize namespace values
Posted by "Michael Stockton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Stockton updated THRIFT-431:
------------------------------------
Attachment: thrift-431-v2.patch
> capitalize namespace values
> ---------------------------
>
> Key: THRIFT-431
> URL: https://issues.apache.org/jira/browse/THRIFT-431
> Project: Thrift
> Issue Type: Bug
> Components: Compiler (Ruby)
> Reporter: Michael Stockton
> Assignee: Michael Stockton
> Priority: Minor
> Attachments: thrift-431-v2.patch, thrift-431.patch
>
>
> For example, "namespace rb facebook.fb303" generates lowercase module names that ruby will not load:
> module facebook
> module fb303
> end
> end
> vs.
> module Facebook
> module Fb303
> end
> end
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (THRIFT-431) capitalize namespace values
Posted by "Kevin Clark (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696657#action_12696657 ]
Kevin Clark commented on THRIFT-431:
------------------------------------
+1
> capitalize namespace values
> ---------------------------
>
> Key: THRIFT-431
> URL: https://issues.apache.org/jira/browse/THRIFT-431
> Project: Thrift
> Issue Type: Bug
> Components: Compiler (Ruby)
> Reporter: Michael Stockton
> Assignee: Michael Stockton
> Priority: Minor
> Attachments: thrift-431.patch
>
>
> For example, "namespace rb facebook.fb303" generates lowercase module names that ruby will not load:
> module facebook
> module fb303
> end
> end
> vs.
> module Facebook
> module Fb303
> end
> end
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (THRIFT-431) capitalize namespace values
Posted by "Kevin Clark (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696665#action_12696665 ]
Kevin Clark commented on THRIFT-431:
------------------------------------
Doh, looks like it may not actually handle imported structs properly. I think the modification needs to happen in t_rb_generator::ruby_modules, not in begin_namespace. That way all the namespaces are properly capitalized on access rather than only when we generate the file.
> capitalize namespace values
> ---------------------------
>
> Key: THRIFT-431
> URL: https://issues.apache.org/jira/browse/THRIFT-431
> Project: Thrift
> Issue Type: Bug
> Components: Compiler (Ruby)
> Reporter: Michael Stockton
> Assignee: Michael Stockton
> Priority: Minor
> Attachments: thrift-431.patch
>
>
> For example, "namespace rb facebook.fb303" generates lowercase module names that ruby will not load:
> module facebook
> module fb303
> end
> end
> vs.
> module Facebook
> module Fb303
> end
> end
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (THRIFT-431) capitalize namespace values
Posted by "Michael Stockton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Stockton updated THRIFT-431:
------------------------------------
Attachment: thrift-431.patch
> capitalize namespace values
> ---------------------------
>
> Key: THRIFT-431
> URL: https://issues.apache.org/jira/browse/THRIFT-431
> Project: Thrift
> Issue Type: Bug
> Components: Compiler (Ruby)
> Reporter: Michael Stockton
> Assignee: Michael Stockton
> Priority: Minor
> Attachments: thrift-431.patch
>
>
> For example, "namespace rb facebook.fb303" generates lowercase module names that ruby will not load:
> module facebook
> module fb303
> end
> end
> vs.
> module Facebook
> module Fb303
> end
> end
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (THRIFT-431) capitalize namespace values
Posted by "Michael Stockton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696677#action_12696677 ]
Michael Stockton commented on THRIFT-431:
-----------------------------------------
Ok, I now understand what you guys are getting at. v2 addresses the bug.
> capitalize namespace values
> ---------------------------
>
> Key: THRIFT-431
> URL: https://issues.apache.org/jira/browse/THRIFT-431
> Project: Thrift
> Issue Type: Bug
> Components: Compiler (Ruby)
> Reporter: Michael Stockton
> Assignee: Michael Stockton
> Priority: Minor
> Attachments: thrift-431-v2.patch, thrift-431.patch
>
>
> For example, "namespace rb facebook.fb303" generates lowercase module names that ruby will not load:
> module facebook
> module fb303
> end
> end
> vs.
> module Facebook
> module Fb303
> end
> end
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (THRIFT-431) capitalize namespace values
Posted by "Kevin Clark (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696721#action_12696721 ]
Kevin Clark commented on THRIFT-431:
------------------------------------
Scratch that. Bug in THRIFT-421 which I apparently let slip through. That's fixed, and this looks good.
+1, one more time :)
> capitalize namespace values
> ---------------------------
>
> Key: THRIFT-431
> URL: https://issues.apache.org/jira/browse/THRIFT-431
> Project: Thrift
> Issue Type: Bug
> Components: Compiler (Ruby)
> Reporter: Michael Stockton
> Assignee: Michael Stockton
> Priority: Minor
> Attachments: thrift-431-v2.patch, thrift-431.patch
>
>
> For example, "namespace rb facebook.fb303" generates lowercase module names that ruby will not load:
> module facebook
> module fb303
> end
> end
> vs.
> module Facebook
> module Fb303
> end
> end
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (THRIFT-431) capitalize namespace values
Posted by "Bryan Duxbury (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696395#action_12696395 ]
Bryan Duxbury commented on THRIFT-431:
--------------------------------------
What about structs in external thrift files? Will those get the same treatment? It seems like they should.
> capitalize namespace values
> ---------------------------
>
> Key: THRIFT-431
> URL: https://issues.apache.org/jira/browse/THRIFT-431
> Project: Thrift
> Issue Type: Bug
> Components: Compiler (Ruby)
> Reporter: Michael Stockton
> Assignee: Michael Stockton
> Priority: Minor
> Attachments: thrift-431.patch
>
>
> For example, "namespace rb facebook.fb303" generates lowercase module names that ruby will not load:
> module facebook
> module fb303
> end
> end
> vs.
> module Facebook
> module Fb303
> end
> end
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.