【问题标题】:netbeans freermarker plugin ERROR: The plugin Lexer to NetBeans Bridge is requested in implementation versionnetbeans freermarker 插件错误:在实现版本中请求了插件 Lexer to NetBeans Bridge
【发布时间】:2015-05-03 09:49:21
【问题描述】:

我正在使用 netbeans 8,我有 freeMarker 作为我的模板引擎我从这个页面下载了这个 freeMarker 插件http://plugins.netbeans.org/plugin/52115/freemarker-netbeans-plugin,我尝试安装,但它给了我这个错误The plugin Lexer to NetBeans Bridge is requested in implementation version,它给了我唯一的选项UI netbeans 窗口是按取消。

编辑:dindt 有效的解决方案之一,但我尝试了以下

我在一个网站上发现是下载整个项目,然后用 netbeans 构建它并复制生成的 .nbm 文件。

这个解决方案不起作用

我尝试以下解决方案:

解决方案 1

1) downloading the project in a .zip file from this URL  https://github.com/nbphpcouncil/freemarker_NB_highlighting 
2) then i choose the option import project form a .zip file
3) then i hit the clean and build botton 
4) then i try to add the .nbm file generated in the cluster folder of the project 
but still it gives me the same error `The plugin Lexer to NetBeans Bridge is requested in implementation version 201207171143.`

第二个解决方案

我找到了这个网站http://michalcichon.blogspot.com/2014/02/freemarker-syntax-highlighting-in.html,它告诉我首先在这个网址http://bits.netbeans.org/maven2/org/netbeans/modules/org-netbeans-modules-lexer-nbbridge/RELEASE71/ 中安装名为“Lexer to NetBeans Bridge”的插件,所以我下载了该网站中的 .nbm 文件,但是当我尝试将 Lexer 安装到它告诉我已经安装了 NetBeans Bridge 插件。因为我不知道如何检查我安装了哪些插件或模块/IDE,所以我检查了我的 C:Netbeans 文件夹中的 module.properties 文件,在该文件中有这一行 lexer.nbbridge.dir=${netbeans.dest.dir}/ide 但我不知道这是否意味着已经安装与否。

在作者的页面https://blogs.oracle.com/geertjan/entry/syntax_coloring_for_freemarker 中,其中一个人说解决方案 1 对他有用,但我试过了,但对我没有用。如果可以解决这个问题还是应该放弃

编辑 2

我尝试使用此链接下载一个可以与 netbeans 8.0.2+ 一起使用的版本,但现在它给了我这个错误

    Some plugins require plugin org.netbeans.modules.editor.deprecated.pre61completion to be installed.
The plugin org.netbeans.modules.editor.deprecated.pre61completion is requested in version 1.0.  The following plugin is affected:       Freemarker NetBeans Plugin

我尝试下载整个 zip 并将其导入 netbeans 并构建它,后来我复制生成的 .nbm 但如果我这样做,它会给我错误:The plugin Lexer to NetBeans Bridge is requested in implementation version,我开始寻找解决此错误的方法

The plugin org.netbeans.modules.editor.deprecated.pre61completion is requested in version 1.0.  

2009 年的一个网站说要添加这个插件 http://updates.netbeans.org/netbeans/updates/6.5/uc/final/stable/modules/ide10/org-netbeans-modules-editor-deprecated-pre61completion.nbm

当我添加插件时,它给了我这个错误:

    Some plugins require plugin org.netbeans.modules.editor.deprecated.pre61settings to be installed.
The plugin org.netbeans.modules.editor.deprecated.pre61settings is requested in version 1.0.  The following plugin is affected:       Editor Code Completion Prior 6.1 Separation 
Some plugins require plugin Editor Library to be installed.
The plugin Editor Library is requested in version >= 1.27 (release version 1) but only 3.49.2.22.43 (of release version different from 1) was found.  The following plugin is affected:       Editor Code Completion Prior 6.1 Separation

【问题讨论】:

    标签: java spring netbeans freemarker netbeans-plugins


    【解决方案1】:

    我通过以下方式解决了这个问题:svn checkout https://java.net/projects/nb-api-samples/sources/api-samples/show/versions/7.2/m‌​isc/ftl?rev=333 然后在 NetBeans 中打开它,构建并“在 IDE 中安装/重新加载模块”

    以上说法是对的。

    你应该这样做。

    [步骤 1] 团队 -> 颠覆 -> 结帐

    http://i.stack.imgur.com/VbWh2.png
    

    [步骤 2] 使用此存储库 URL:

    https://svn.java.net/svn/nb-api-samples~api-samples/versions/7.2/misc/ftl/?rev=333
    

    查看此图片http://content.screencast.com/users/groundbreaker/folders/Jing/media/6fd82a20-bb11-449e-92cb-73af53fd2254/2015-05-22_0928.png

    [步骤 3] 点击“完成”

    http://content.screencast.com/users/groundbreaker/folders/Jing/media/b59faeab-ca38-4dad-aa56-1e62f1a42627/2015-05-22_0930.png
    

    [步骤 4] 点击“打开项目”

    http://content.screencast.com/users/groundbreaker/folders/Jing/media/e37efdcf-0a85-4746-bbca-e13d7bb59dfe/2015-05-22_0930.png
    

    [步骤 5] 您现在将看到“ftl”项目

    http://content.screencast.com/users/groundbreaker/folders/Jing/media/4ed866c8-4111-4db0-9057-9f0992fcb4e6/2015-05-22_0931.png
    

    [步骤 6] 右键单击 -> 构建 -> 在开发 IDE 中安装/重新加载

    http://i.stack.imgur.com/XjUco.png
    

    只需复制粘贴打开网址,因为我仍然无法发布图片和可点击链接。麻烦您了。

    干杯!

    【讨论】:

      【解决方案2】:

      插件请求非常特定的 NetBeans 版本,这与不匹配的版本不兼容。

      请插件作者提供版本,兼容官方发布的NetBeans版本!

      【讨论】:

      • 该插件页面上的 cmets 似乎不适用于 netbeans 8,但 cmets 中有一个人从 2014 年开始这么说:Hi, I couldn't install - the above message is shown on installation. I solved it by: svn checkout https://java.net/projects/nb-api-samples/sources/api-samples/show/versions/7.2/misc/ftl?rev=333 Then opened that in NetBeans, built, and "Install/Reload module in IDE". 但我不知道该怎么做给我一个例子来说明如何做到这一点?
      • 是的,我也看到了。请在github.com/nbphpcouncil/freemarker_NB_highlighting/issues 提出问题,以便原作者可以帮助您。
      • 我尝试使用该链接,下载了.nbm,现在它给了我这个错误Some plugins require plugin org.netbeans.modules.editor.deprecated.pre61completion to be installed. The plugin org.netbeans.modules.editor.deprecated.pre61completion is requested in version 1.0. The following plugin is affected:       Freemarker NetBeans Plugin我编辑了我的问题以获取更多详细信息
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-13
      • 2018-05-08
      • 1970-01-01
      相关资源
      最近更新 更多