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.comhttps://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 文件不能import, cannot recognize the proto import

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:

  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 应该都变绿, 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!

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

if the error still consistent, then report issue!

Check version

Check the ApiHug IDE plugin version installed:

Top Menu: ApiHug -> About:

Plugin 0.2+ issue

Please check here

Especially Spring boot upgrade!

Reference

  1. ApiHug101-Bilibili
  2. ApiHug101-Youtube
相关推荐
highreport几秒前
net报表工具对比:HighReport 与 FastReport
java·c#
xiaoqiMikko13 分钟前
七条 advisory 各给了一个修复版,而一次修完的那个数字一条都没写
java·spring boot
vHelios13 分钟前
【电商项目】短信测试遇到的问题与解决方案:InaccessibleObjectException报错、单元测试通过但未接收到验证码
java·微服务
气泡水好喝18 分钟前
Java魔法探秘:从Java代码到CPU指令,一个方法调用的完整生命周期
java
气泡水好喝24 分钟前
读《阿里巴巴Java开发手册》五年,这7条规约救了我太多次
java
凯哥Java25 分钟前
System.setProperty 的正确姿势:Spring Boot 启动类里的“缺省值“魔法
java·spring boot·后端
lhldsg28 分钟前
智慧场馆解决方案小程序系统:从架构设计到落地实践
java·小程序·需求分析
hfywmsj1 小时前
广州餐饮铺位招租的选址架构:流量入口与成本函数分析
java·大数据·jvm·广州餐饮铺位招租
爪哇岛国人1 小时前
原来我一直理解错了:实现接口真的必须实现所有方法吗?
java
万年咸鱼1 小时前
Java BufferedOutputStream 详解:原理、用法与性能优化
java·开发语言·性能优化