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
相关推荐
Zephyrtoria25 分钟前
区间合并:区间合并问题
java·开发语言·数据结构·算法
yuren_xia5 小时前
RabbitMQ 知识详解(Java版)
java·rabbitmq·java-rabbitmq
kfyty7256 小时前
轻量级 ioc 框架 loveqq,支持接口上传 jar 格式的 starter 启动器并支持热加载其中的 bean
java·jvm·ioc·jar·热加载
早起鸟儿6 小时前
docker-Dockerfile 配置
java·linux·运维·docker
云边小网安6 小时前
java集合篇(六) ---- ListIterator 接口
java·开发语言·青少年编程·java集合
都叫我大帅哥6 小时前
Spring WebFlux:响应式编程的“未来战士”还是“花架子”?
java·spring·flux
都叫我大帅哥6 小时前
Reactor 深度解析:响应式编程的「核反应堆」是如何工作的?
java·spring
不太厉害的程序员6 小时前
NC65配置xml找不到Bean
xml·java·后端·eclipse
chanalbert7 小时前
数据库连接池深度研究分析报告
数据库·spring
我在北国不背锅7 小时前
基于Java开发的浏览器自动化Playwright-MCP服务器
java·playwright·mcp