【问题标题】:Intellij - add dependency on another pluginIntellij - 添加对另一个插件的依赖
【发布时间】:2019-06-11 21:39:31
【问题描述】:

我正在尝试使用 PSI 为 Intellij 实现 Golang 代码生成/自动完成插件,因此我需要添加对 Golang 插件的依赖项。这看起来像我想做的 - https://www.jetbrains.org/intellij/sdk/docs/basics/plugin_structure/plugin_dependencies.html

现在的问题是如何确定我正在使用的插件的 ID、名称和版本? It does not seem to be anywhere in the plugin preferences

PSI 元素属于 com.goide.psi.impl.GoTypeImpl 类和类似的。

【问题讨论】:

    标签: gradle intellij-plugin


    【解决方案1】:

    没有简单的方法来获取插件 ID。您可以查看plugin.xml 获取它。对于 Go 插件,它是 org.jetbrains.plugins.go

    版本可以在plugin page找到。

    【讨论】:

    • 下载插件 zip 并检查 plugin.xml 是正确的答案。将插件添加为“org.jetbrains.plugins.go:182.4505.32.913”,这给了我需要的类。
    【解决方案2】:

    有一种简单的方法可以做到这一点。

    versionxmlId 都可以在particular plugin update page 上找到:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-01-04
      • 1970-01-01
      • 2018-07-15
      • 1970-01-01
      • 2021-04-09
      • 2012-09-27
      • 1970-01-01
      • 2016-12-17
      相关资源
      最近更新 更多