Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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
like image 426
pme Avatar asked Apr 03 '19 18:04

pme


3 Answers

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

like image 156
Andreas Presthammer Avatar answered Nov 06 '22 09:11

Andreas Presthammer


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

Follow this bug for the updates.

like image 17
CrazyCoder Avatar answered Nov 06 '22 09:11

CrazyCoder


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:

enter image description here

like image 6
pme Avatar answered Nov 06 '22 09:11

pme