duckAsteroid / protobuf-dt

Automatically exported from code.google.com/p/protobuf-dt
0 stars 0 forks source link

protobuf-dt can not generate the java class #105

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.proto file "import" can not be generated if the java files.remove "import" 
can generate.
For example:
==========================================
option java_package = "com.ppsea.message.msg";
option java_outer_classname = "ListMsgResponseProto";

import "msg.proto";
message ListMsgResponse {
    optional int32 page = 1;        
    optional int32 total_page = 2;  
    repeated Msg msg = 3;   
    optional string un_read_msg_num = 4;
}
===============================================

2.Path can not be generated in the project properties change, can only modify 
com.google.eclipse.protobuf.Protobuf.prefs file.
3.Proto file format problem, not the desired result.

Thanks!!!

Original issue reported on code.google.com by liuji...@gmail.com on 2 Sep 2011 at 5:58

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
format question
----------------------------------------------------------
option java_package = "com.ppsea.message.msg"; option
java_outer_classname = "ListMsgResponseProto"; import "msg.proto"; message
ListMsgResponse {
    optional int32 page = 1; 
    optional int32 total_page = 2;
    repeated Msg msg = 3; 
    optional string un_read_msg_num = 4; 
}

Original comment by liuji...@gmail.com on 2 Sep 2011 at 6:00

GoogleCodeExporter commented 9 years ago
I'm sorry but I don't understand this bug report. protobuf-dt delegates to 
protoc the generation of Java, C++ or Python code.

Original comment by alr...@google.com on 2 Sep 2011 at 10:51

GoogleCodeExporter commented 9 years ago
不好意思,我无法用英语表达准确的意思,我直接用中文描��
�吧!
我在意思是我在其中的一个proto文件中import另一个proto文件时�
��个文件无法生成java class.
如:
==========================================
option java_package = "com.ppsea.message.msg";
option java_outer_classname = "ListMsgResponseProto";

import "msg.proto";
message ListMsgResponse {
    optional int32 page = 1;        
    optional int32 total_page = 2;  
    repeated Msg msg = 3;   
    optional string un_read_msg_num = 4;
}

这个proto文件“import msg.proto”用插件就无法生成java 
class,直接使用protoc编译器是可以生成的,而且用F3也能找到�
��入的msg.proto文件,或者我去掉import引入msg.proto也可以生成jav
a class,不知道是什么原因?
谢谢!!

Original comment by liuji...@gmail.com on 5 Sep 2011 at 1:38

GoogleCodeExporter commented 9 years ago
I'm sorry, I don't read Chinese. Please attach an Eclipse project where I can 
reproduce the problem.

Original comment by alr...@google.com on 9 Sep 2011 at 5:13

GoogleCodeExporter commented 9 years ago
Closing issue since there are no updates.

Original comment by alr...@google.com on 12 Oct 2011 at 6:06