IDE Plugin FAQ-ApiHug - API design Copilot

  🤗 ApiHug × {Postman|Swagger|Api...} = 快↑ 准√ 省↓

  1. GitHub - apihug/apihug.com: All abou the Apihug   
  2. apihug.com: 有爱,有温度,有质量,有信任
  3. ApiHug - API design Copilot - IntelliJ IDEs Plugin | Marketplace

docs/IDE/999_FAQ.md · dearxuecom/apihug.com - Gitee.comicon-default.png?t=N7T8https://gitee.com/dearxuecom/apihug.com/blob/master/docs/IDE/999_FAQ.md

ProtoBuf

Proto 文件不能识别, can not recognize proto file

目前IDE 支持的 Proto buffer 插件最流行有两个:

  1. IDE 自带的, 供应商是 JetBrains s.r.o. ✅✅✅
  2. 三方 HIGAN ❌❌❌

目前这两个插件是冲突的,只能支持之一。⚠️

ApiHug Plugin 依赖 IDE 自带的 Proto Editor 插件,进行AST 语法树的解析,所以必须激活 JetBrains s.r.o. ✅ Proto插件:

proto plugin

Proto 文件不能import, cannot recognize the proto import

ApiHug SDK proto 导入 import "swagger/annotations.proto"; 报错:

ApiHug SDK proto import import "swagger/annotations.proto"; fail:

SDK import error

01: 编译项目, compile the project (markdown or gradle task)

2 ways build project

02: 编译完成后, 查看proto 项目的 build缓存, after compile success, check the project proto build cache:

{PROJECT}/{PROTO-MODULE}/build/extracted-include-protos:

success build

03: 如果还是没有引入, 手动配置 proto import; if still not import then please add path manually:

  1. open Settings panel
  2. find Protocol Buffers
  3. un-check Configure Automatically
  4. add the {PROJECT}/{PROTO-MODULE}/build/extracted-include-protos to the Import Paths:

import finally

最终所有 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

Gradle

不能识别Gradle, can not recognize as gradle project

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!

Load gradle project

Gradle 编译报错, gradle compile failure

  1. report issue
  2. Homepage find QR code to join out chat group.

API Design tree not present/refresh

  1. refresh the tree
  2. rebuild the tree(heavy), recompile and then refresh

Rebuild

if the error still consistent, then report issue!

Check version

Check the ApiHug IDE plugin version installed:

Top Menu: ApiHug -> About:

version check

Plugin 0.2+ issue

Please check here

Especially Spring boot upgrade!

Reference

  1. ApiHug101-Bilibili
  2. ApiHug101-Youtube
  • 28
    点赞
  • 24
    收藏
    觉得还不错? 一键收藏
  • 5
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值