2015-03-02 100 views
1

我使用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 

回答

0

插件请求的NetBeans的一个非常具体的版本,这是不兼容一个不匹配的版本。

请向该插件的作者提供一个版本,该版本与官方发布的NetBeans版本兼容!

+0

通过该插件页面上的评论它似乎不是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

+0

是的,我也看到了。请在https://github.com/nbphpcouncil/freemarker_NB_highlighting/issues上提出问题,以便原作者可以为您提供帮助。 – Ben 2015-03-04 11:42:30

+0

试试最新版本,声称与NB8.0.2兼容https://github.com/nbphpcouncil/freemarker_NB_highlighting/releases/tag/v1.0.1 – Ben 2015-03-04 11:52:19

0

I solved it by: svn checkout https://java.net/projects/nb-api-samples/sources/api-samples/show/versions/7.2/m ‌​isc/ftl?rev=333 Then opened that in NetBeans, built, and "Install/Reload module in 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 

只需复制粘贴打开网址,因为我仍然不能发布图片和可点击链接。麻烦抱歉。

干杯!