Skip to content
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

希望支持import语句 #8

Open
polyrabbit opened this issue Jun 28, 2022 · 3 comments
Open

希望支持import语句 #8

polyrabbit opened this issue Jun 28, 2022 · 3 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@polyrabbit
Copy link

GUI 版本很好用,感谢,希望能够支持import语句,现在import "base.proto";这种语法,会报no such file or directory错。

@crossoverJie crossoverJie added good first issue Good for newcomers help wanted Extra attention is needed labels Jun 28, 2022
@crossoverJie
Copy link
Owner

import "reflect/gen/common.proto";

我测试过了,import 是可以支持的,你这里的路径有写对吗?
image

@polyrabbit
Copy link
Author

我这边的proto文件应该是没问题的,项目上已经用了好几年了。
这会不会跟ptg当前的工作目录有关?import 一个文件,搜寻的路径是怎样的规则?

@hjhsggy
Copy link

hjhsggy commented Jul 10, 2022

我这边的proto文件应该是没问题的,项目上已经用了好几年了。 这会不会跟ptg当前的工作目录有关?import 一个文件,搜寻的路径是怎样的规则?

应该是支持 自定义引入的proto路径, 类似bloomrpc支持定义import包的查找路径
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants