自定义 pycharm 插件始终禁用

custom pycharm plugin always disabled

我尝试了一个非常简单的插件(只有一个 AnAction),当我 运行 或部署它时,结果是:

PyCharm 是我的主要目标,所以我需要它工作,但不知道如何调试它。我只是在 PyCharm 的日志中看到这个,这表明我的插件确实被禁用了:

2015-03-11 11:34:19,911 [      0]   INFO -        #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------ 
2015-03-11 11:34:19,923 [     12]   INFO -        #com.intellij.idea.Main - IDE: PyCharm Community Edition (build #PC-139.1001, 07 Jan 2015 00:00) 
2015-03-11 11:34:19,923 [     12]   INFO -        #com.intellij.idea.Main - OS: Linux (3.11.10-25-desktop, amd64) 
2015-03-11 11:34:19,923 [     12]   INFO -        #com.intellij.idea.Main - JRE: 1.7.0_71-b14 (Oracle Corporation) 
2015-03-11 11:34:19,923 [     12]   INFO -        #com.intellij.idea.Main - JVM: 24.71-b01 (Java HotSpot(TM) 64-Bit Server VM) 
2015-03-11 11:34:19,925 [     14]   INFO -        #com.intellij.idea.Main - JVM Args: -Xms128m -Xmx750m -XX:MaxPermSize=350m -XX:ReservedCodeCacheSize=225m -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Djsse.enableSNIExtension=false -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -Dawt.useSystemAAFontSettings=lcd -Djb.vmOptionsFile=/home/b/tools/pycharm-community-4.0.4/bin/pycharm64.vmoptions -XX:ErrorFile=/home/b/java_error_in_PYCHARM_%p.log -Xbootclasspath/a:/home/b/tools/pycharm-community-4.0.4/bin/../lib/boot.jar -Didea.paths.selector=PyCharm40 -Didea.platform.prefix=PyCharmCore -Didea.no.jre.check=true -Djb.restart.code=88 
2015-03-11 11:34:19,951 [     40]   INFO -        #com.intellij.idea.Main - JNA library loaded (64-bit) in 26 ms 
2015-03-11 11:34:20,148 [    237]   INFO - .intellij.idea.IdeaApplication - WM detected: KWin 
2015-03-11 11:34:21,047 [   1136]   INFO - llij.ide.plugins.PluginManager - 13 plugins initialized in 751 ms 
2015-03-11 11:34:21,047 [   1136]   INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: CVS Integration (11), Git Integration (8.1), GitHub, IDEA CORE, IPython Notebook (0.1), Python ReStructureText Integration (VERSION), ReStructuredText Support (136.SNAPSHOT), Subversion Integration (1.1), Task Management (1.0), Terminal (0.1), hg4idea (10.0) 
2015-03-11 11:34:21,047 [   1136]   INFO - llij.ide.plugins.PluginManager - Loaded custom plugins: Markdown (0.9.7) 
2015-03-11 11:34:21,047 [   1136]   INFO - llij.ide.plugins.PluginManager - Disabled plugins: Android View Client code helper (1.0) 

您需要通过添加正确的 标记将您的插件描述符标记为与 IntelliJ IDEA 以外的 IDE 兼容。有关详细信息,请参阅 the documentation