-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix path processing #190
base: master
Are you sure you want to change the base?
Fix path processing #190
Conversation
59d9e9b
to
f43a275
Compare
this behavior is on purpose. Someone may use |
I checked this case:
it works fine. |
Yes, but this example means the Phone/Person tables are anchored to Lua memory and can not collect i.e. the memory leak. and it prevent you hotfix the message (you can not load the same name of message again): print(require "protoc":load([[
message Phone {
optional string name = 1;
optional int64 phonenumber = 2;
}
message Person {
optional string name = 1;
optional int32 age = 2;
optional string address = 3;
repeated Phone contacts = 4;
} ]]))
print(require "protoc":load([[
message Phone {
optional string name = 1;
optional int64 phonenumber = 2;
}
message Person {
optional string name = 1;
optional int32 age = 2;
optional string address = 3;
repeated Phone contacts = 4;
} ]]))
|
Kudos, SonarCloud Quality Gate passed! |
c207ba8
to
9a6050e
Compare
Redundant check of "self" variable breaks search path processing. It create new instance of Parser and discards all paths added with "addpath" method.