[英]How can I install an intellij plugin from source?
I'm trying to install the ideaVim plugin for intellij from source. 我正在尝试从源代码为intellij安装ideaVim插件。 I'm using this repo .
我正在使用这个仓库 。
When I cd
into the top level of the ideavim directory and then run ant jar
, it produces the IdeaVim.jar
file fine. 当我
cd
到ideavim目录的顶层,然后运行ant jar
,它产生的IdeaVim.jar
文件的罚款。
Then I go into my ~/.IntelliJIdea13/config/
folder and do a mkdir plugins to create the directory. 然后我进入
~/.IntelliJIdea13/config/
文件夹,并做一个mkdir插件来创建目录。 I then copied my IdeaVim.jar
file into this folder. 然后,我将
IdeaVim.jar
文件复制IdeaVim.jar
文件夹中。 So then I start intellij and go to plugins and enable the ideaVim plugin and it tells me to restart intellij. 所以然后我启动intellij并转到插件并启用ideaVim插件,它告诉我重新启动intellij。 So I do but when it starts up I get this error:
因此,我这样做了,但是当它启动时,我得到了这个错误:
Plugin 'IdeaVIM' failed to initialize and will be disabled. Please restart Intellij IDEA.
java.lang.ClassNotFoundException: com.maddyhome.idea.vim.VimPlugin PluginClassLoader[IdeaVIM, 0.35]
at com.intellij.idea.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:68)
...
Does anyone have any idea why this could be failing to initialize? 有谁知道为什么它可能无法初始化? Did I do the ant build wrong or do I have to include more then my
.jar
file in ~/.IntelliJIdea13/
? 我是否在构建蚂蚁时出错,还是在
~/.IntelliJIdea13/
了比.jar
文件更多的内容?
Building the plugin from source is unlikely to be the issue. 从源代码构建插件不太可能成为问题。 The issue is probably how you added the plugin to IntelliJ.
问题可能是您如何将插件添加到IntelliJ。
Try adding the plugin through IntelliJ's GUI (version 13.1.3): 尝试通过IntelliJ的GUI(版本13.1.3)添加插件:
Preferences > Plugins > Install plugin from disk...
.jar
file .jar
文件
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.