简体   繁体   English

如何从源代码安装intellij插件?

[英]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)添加插件:

  1. Preferences > Plugins > Install plugin from disk...
  2. Navigate to the .jar file 导航到.jar文件

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM