我使用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窗口中给我的唯一选项是按取消。netbeans freermarker插件错误:插件Lexer到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.`
解决方法二
我foun这个网站http://michalcichon.blogspot.com/2014/02/freemarker-syntax-highlighting-in.html它告诉我先安装插件在这个URL 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为他工作,但我试过了,它并没有为我工作。如果能够解决这个问题,或者我应该放弃
EDIT 2
我这个链接试图下载一个版本是suppsose与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
我尝试下载整个拉链和其导入到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
通过该插件页面上的评论它似乎不是netbeans 8,但在一个人在评论说这从2014年说: '嗨,我无法安装 - 上面的消息显示在安装。 我解决它通过: svn签https://java.net/projects/nb-api-samples/sources/api-samples/show/versions/7.2/misc/ftl?rev=333 然后打开在NetBeans中构建,并在IDE中安装/重新加载模块。“但我不知道该怎么做,你可以给我一个如何做到这一点的例子吗? – stackUser2000 2015-03-03 13:00:48
是的,我也看到了。请在https://github.com/nbphpcouncil/freemarker_NB_highlighting/issues上提出问题,以便原作者可以为您提供帮助。 – Ben 2015-03-04 11:42:30
试试最新版本,声称与NB8.0.2兼容https://github.com/nbphpcouncil/freemarker_NB_highlighting/releases/tag/v1.0.1 – Ben 2015-03-04 11:52:19