Playframework 插件在 IntelliJ IDEA 12 中不起作用 [英] Playframework Plugin non-functional in IntelliJ IDEA 12

查看:30
本文介绍了Playframework 插件在 IntelliJ IDEA 12 中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在 Ubuntu 下下载并安装了 IntelliJ IDEA 12(终极版),我寄予厚望,希望我能从 IJ 与 Scala 和 Play 框架的紧密集成中获利.

I have just downloaded and installed IntelliJ IDEA 12 (Ultimate Edition), under Ubuntu, with high hopes that I could cash-in on IJ's tight integration with Scala and the Play Framework.

我在 /home/ryan/play-2.0.4 安装了一个功能齐全的 Play,通过四处搜索,似乎只需要执行一个 play 的想法 在命令行中的 play 项目上,只需在 IntelliJ 中打开该项目.

I have a fully functional install of Play at /home/ryan/play-2.0.4 and from searching around, it seems that all one has to do is perform a play idea on a play project at the command-line and simply open the project in IntelliJ.

但是,如果我这样做:我什至无法验证 Playframework 插件是否处于活动/运行状态.Play 配置文件或模板中没有语法高亮,下拉菜单中绝对没有 Playframework 选项.如果我右键单击该项目,选择添加框架支持..."并且播放"甚至不在列表中,我也不能在 IDE 中从头开始创建一个新的播放"项目(不确定是否甚至支持).

However, if I do this: I can't even verify that the Playframework plug-in is even active/functioning. There is no syntax highlighting in Play config files or templates, absolutely no Playframework options in the pull-down menu. If I right-click the project, choose "Add Framework support ..." and "Play" is not even on the list, I can't just create a new "Play" project from scratch in the IDE either (not sure if that is even supported).

如果我点击 File ->设置 ->播放配置,我将主目录和工作目录设置为:/home/ryan/play-2.0.4.我应该注意到,我在 Eclipse 下使用 Play 没有任何问题(除了 Play 与 Eclipse 没有任何集成——这就是我在 IJ 中尝试的原因).如果我不知道更好:我会宣布 IJ 12 的 Play 支持是一个悲惨的失败,但鉴于所有帖子都表明 play 2.0 与 IJ 12 的集成非常容易"——也许我遗漏了什么?

If I click File -> Settings -> Play Configuration, I have the Home and Working directory set to: /home/ryan/play-2.0.4. I should note that I am using Play under Eclipse with no issues (except there isn't any Play integration with Eclipse --- hence the reason why I am giving this a try in IJ). If I didn't know any better: I'd declare IJ 12's Play support as a miserable failure, but given all the postings suggesting that play 2.0 integration with IJ 12 is "very easy" - perhaps there is something I am missing?

推荐答案

您很可能需要下载和/或安装 Play 2.0 Support 插件 + 依赖项(很可能您需要在Browse repositories 部分,它与捆绑的 Playframework support 不是同一个插件!)

Most probably you need to download and/or install Play 2.0 Support plugin + dependencies (most probably you will need to find it in Browse repositories section, it is not the same plugin as bundled Playframework support!)

我可以向您保证,我只是坐着玩 Idea 12 中的 Play 2.0,有新的支持,而且效果很好.

I can ensure you that I'm just sitting and playing with Play 2.0 in Idea 12 with new support, and it works quite nice.

转到 Settings > Plugins 部分并检查您是否有提到的插件的最新版本,如果没有被某些错误(即缺少依赖项)阻止,请尝试解决所有缺失的依赖项,重新启动 IDE,并至少编译(或运行)您的应用程序一次.

Go to Settings > Plugins section and check if you have newest version of mentioned plugin and if isn't blocked by some error (ie. missing dependency), try to resolve all missing dependencies, restart the IDE, and compile (or run) your applications at least once.

我还没有测试到最后,但我可以看到支持方面的巨大进步,尤其是在模板和控制器方面.routes 文件允许轻松导航到目标操作,但正如我所见,conf 文件中没有语法突出显示.

I didn't test it to the end yet, but I can see large progress in the support especially in templates and controllers. routes file allow easily navigate to the target actions, but as I can see there is no syntax highlighting in conf file.

现在甚至可以从菜单运行和调试 Play 应用程序.

There is even possible now to run and debug Play application from the menu.

一般来说,如果您启用 Play 插件,您肯定会看到它:)

In general if you'll enable the Play plugin you will see it for sure :)

这篇关于Playframework 插件在 IntelliJ IDEA 12 中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆