Editor
Frequently asked question of the ApiHug Api Design copilot
目前IDE 支持的 Proto buffer
插件最流行有两个:
JetBrains s.r.o.
✅✅✅HIGAN
❌❌❌目前这两个插件是冲突的,只能支持之一。⚠️
ApiHug Plugin 依赖 IDE 自带的 Proto Editor 插件,进行AST 语法树的解析,所以必须激活 JetBrains s.r.o.
✅ Proto插件:
ApiHug SDK proto 导入 import "swagger/annotations.proto";
报错:
ApiHug SDK proto import import "swagger/annotations.proto";
fail:
01: 编译项目, compile the project (markdown or gradle task)
02: 编译完成后, 查看proto 项目的 build缓存, after compile success, check the project proto build cache:
{PROJECT}/{PROTO-MODULE}/build/extracted-include-protos
:
03: 如果还是没有引入, 手动配置 proto import; if still not import then please add path manually:
Settings
panelProtocol Buffers
Configure Automatically
{PROJECT}/{PROTO-MODULE}/build/extracted-include-protos
to the Import Paths
:最终所有 import
应该都变绿, Eventually all the import
should turn green!
⚠️ sometime the official proto editor may crash, please pay attention to the crash notification!
if even restart IDEA this broken still consistent, please report to us: report issue
IDE 应该弹出 Load Gradle Project, 如果通知被被关闭, 打开 Notification 手动触发。
IDE should pop up a notification: Load Gradle Project, if notification pop up was forbidden, then please open the Notification panel to load it manually!
if the error still consistent, then report issue!
Check the ApiHug IDE plugin version installed:
Top Menu: ApiHug
-> About
:
Milestone 20240222 Especially Spring boot upgrade!