Exception in Intellij's SBT Console: not found: value ideaPort ideaPort in Global := 49516

こ雲淡風輕ζ 提交于 2020-02-18 00:58:38

问题


After a System Crash the sbt-console of Intellij 2019.1 can not start:

The following Exception is thrown:

<set>:1: error: not found: value ideaPort
ideaPort in Global := 49516

Strangely another project just works fine.

I removed .idea with no success.

Update: Different ideaPort, same Problem /solution

<set>:1: error: not found: value ideaPort
ideaPort in Global := 53318

回答1:


I fixed by deleting the <project base>/project/target directory, as suggested here: https://youtrack.jetbrains.com/issue/SCL-15160#focus=streamItem-27-3373132.0-0

On Terminal: rm -r project/target




回答2:


Disable Preferences | Build, Execution, Deployment | Compiler | Scala Compiler | Bytecode Indices as a workaround.

Follow this bug for the updates.




回答3:


There is now even a simpler way that worked for me:

I got it from here https://stackoverflow.com/a/60042492/2750966

In my case, the reimporting of sbt project fixed the issue. This can be done by clicking on the "sbt" tab on the right pane, right-click on the project and selecting "Reimport sbt Project".

Or just hit the refresh button:



来源:https://stackoverflow.com/questions/55501899/exception-in-intellijs-sbt-console-not-found-value-ideaport-ideaport-in-globa

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!