JetBrains Scala插件升级到v1.4后,Play项目无法运行 [英] Play project does not run after JetBrains Scala plugin ugraded to v1.4
问题描述
将IntelliJ IDEA 14中的Scala插件升级到v1.4后,我的Play项目停止运行。
它可以成功制作项目,但无法启动网络应用程序。
该项目处于工作状态数月,没有任何问题。
我注意到Scala facet现在不可用,即使我创建了一个新的Play / Scala项目。
如果你看一下主题。
After upgrading Scala plugin in IntelliJ IDEA 14 to v1.4 my Play project ceased to run. It can "make" the project successfully but cannot launch web-app. The project was in working state for months and there were no problems. I noticed that Scala facet is not available now, even if I create a new Play/Scala project. My problem is not unique if you look at the thread.
这是插件的问题还是我缺少的东西?
Is it the problem of plugin or something I am missing?
推荐答案
我遇到同样的问题,不能将插件降级到1.3.3或更低(另一个IDEA错误?)并打开一个问题
I'm experiencing same problem and can't downgrade the plugin to 1.3.3 or lower (another IDEA bug? ) and opened an issue
https://youtrack.jetbrains.com/issue/IDEA-138008
我很确定这是IDEA / Plugin方面的问题,因为您仍然可以使用激活器在IDEA中运行和调试您的应用程序:
I'm pretty sure it's an issue on IDEA/Plugin side since you still can run and debug your application in IDEA with activator:
在Play2应用程序的目录中运行它
Run it in directory of your Play2 application
- 在DEV模式下运行
激活器运行RUN_PORT
- 在PROD模式下运行
激活器启动START_PORT
- 调试
activator -jvm-debug DEBUG_PORT运行RUN_PORT
- to run in DEV mode
activator run RUN_PORT
- to run in PROD mode
activator start START_PORT
- to debug
activator -jvm-debug DEBUG_PORT "run RUN_PORT"
用您的端口替换PORT(通常RUN_PORT为9000,DEBUG_PORT为9999)。
Substitute PORTs with your ports (usually RUN_PORT is 9000 and DEBUG_PORT is 9999).
用于在IDEA中进行调试:
For debugging in IDEA:
- 创建新配置菜单运行 - >编辑配置...
- 点击+符号添加新配置,然后在下拉列表中选择远程。
- 设置配置是默认的(传输:套接字,调试器模式:附加)
- 输入运行应用程序的主机和调试端口(使用DEBUG_PORT 9999在本地运行 - >输入localhost和9999 )
- 创建此配置后,选择它并按Debug按钮。
- create new configuration "Menu Run -> Edit configuration..."
- click on "+" sign "Add new configuration" and choose "Remote" in drop-down list.
- Settings of configuration are default (Transport: Socket, Debugger mode: Attach)
- Enter host and debug port where your app is running (running locally with DEBUG_PORT 9999 -> enter "localhost" and "9999")
- After creating this configuration select it and press Debug button.
这篇关于JetBrains Scala插件升级到v1.4后,Play项目无法运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!