当前位置:网站首页>idea 插件开发一些异常处理
idea 插件开发一些异常处理
2022-06-27 01:21:00 【顾人间讥诘】
0.新建插件工程
官方推荐使用gradle方式创建

选择InteliJ Platform Plugin
1.ideaIC下载不成功
开发idea插件时依赖idea community版本,即ideaIC作为library。相当于你开发springboot程序需要各种spring的依赖一样。由于idea插件开发官方推荐gradle方式创建项目,但gradle拉去ideaIC依赖时常常拉取不成功,因此需要手动下载ideaIC依赖并添加到本地。
这个地址即表明ideaIC-2021.2.1版本依赖,根据你开发插件所依赖ideaIC版本不同这里的数字要变更。并且要和你的biuld.gradle中的版本相匹配
intellij {
version = '2021.2.1'
plugins = ['com.intellij.java']
updateSinceUntilBuild = false
sameSinceUntilBuild = false
}下载好zip包,放到本地gradle仓库,如果没有修改过通常在%USER%/.gradle/caches/modules-2/files-2.1
例如ideaIC的路径就是com/jetbrains/intellij/idea/ideaIC/2021.2.1。
将下载下来的zip包计算hash,用gitbash工具sha1sum.exe ideaIC-2021.2.1.zip计算出hash值,并创建以这个hash值命名的文件夹,然后gradle reload就不会再去下载而是直接用本地缓存。
2.gradle build失败
No value has been specified for property 'compilerClassPathFromMaven' in task ':instrumentCode'
这个错误是由于idea插件gradle-intellij-plugin版本问题导致,将build.gradle中版本减低到1.1.3一下可以解决。
plugins {
id 'org.jetbrains.intellij' version '1.1.2'
id 'java'
}边栏推荐
- Interface isolation principle
- 接口测试框架实战(一) | Requests 与接口请求构造
- leetcode 1143. Longest common subsequence (medium)
- How to convert an old keyboard into a USB keyboard and program it yourself?
- Summary of working at home during the epidemic | community essay solicitation
- 30《MySQL 教程》MySQL 存储引擎概述
- Kept to implement redis autofailover (redisha) 12
- Keepalived 实现 Redis AutoFailover (RedisHA)16
- Kept to implement redis autofailover (redisha) 11
- 递归是会更秀strtok
猜你喜欢

C#程序结构预览最基础入门

Basic introduction to C program structure Preview

Analysis of ideal L9 product power: the price is 459800 yuan, the four cylinder engine is adopted, and the endurance is 1315km

Visual introduction to Matplotlib and plotnine

Online text digit recognition list summation tool

XSS攻击笔记(上)

About Random Numbers

XSS notes (Part 2)

持续交付-Blue Ocean 应用

Flink 实战问题(七):No Watermark(Watermarks are only available EventTime is used)
随机推荐
Interface test framework practice (I) | requests and interface request construction
Recursion will make strtok more attractive
uvm中的config机制方法总结(二)
NLP: brief introduction of transformer in NLP natural language field (pre training technology), NLP model development (elmo/gpt/bert/mt-dnn/xlnet/roberta/albert), detailed introduction to classic case
Tsinghua & Zhiyuan | cogview2: faster and better text image generation model
史上最难618,TCL夺得电视行业京东和天猫份额双第一
How to use ch423? Cheap domestic IO expansion chip
buuctf-pwn write-ups (6)
Esp32-solo development tutorial to solve config_ FREERTOS_ UNICORE problem
3线spi屏幕驱动方式
Kept to implement redis autofailover (redisha) 12
Analysis of ideal L9 product power: the price is 459800 yuan, the four cylinder engine is adopted, and the endurance is 1315km
Basic introduction to C program structure Preview
Beyond lithium battery -- the concept of battery in the future
Play OLED, u8g2 animation, increasing numbers, random triangles, etc
递归是会更秀strtok
Memcached foundation 6
Memcached Foundation
Structure the fifth operation of the actual camp module
Clip: learning transferable visual models from natural language monitoring