scalaintellij-ideasbt

Value ideaPort not found


Running an SBT shell or any SBT command fails with

<set>:1: error: not found: value ideaPort
ideaPort in Global := 34497
^
[error] Type error in expression

I'm not sure which actions I did before this started appearing during builds. Issue does not happen to other team members building the same project. Issue doesn't happen on other projects which the same stack but slightly different versions of the stack. Issue persists after fresh project cloning.

We're using a pretty old SBT version 1.2.8 and I'm using bundled SBT that comes with IntelliJ on Ubuntu 22.04

I found couple of questions on this error, but none of the suggestions helped.

I tried:

Probably some other things that I lost track of. Currently I'm exploring the option to upgrade SBT to 1.3.13, which doesn't throw this error, but I have some other issues.

Thanks for any type of suggestions and guidance!

EDIT: disabling Bytecode Indices resulted in

[error] Not a valid command: idea-shell (similar: shell, oldshell)
[error] Not a valid project ID: idea-shell
[error] Expected ':'
[error] Not a valid key: idea-shell (similar: daemonShell)
[error] idea-shell
[error]           ^

but only inside of IntelliJ, as a workaround I'm using sbt in terminal and it seems to work fine. I would like to return to IntelliJ for convenience.


Solution

  • I just got this resolved by colleague, he found suggestion on one of the tickets opened on JetBrains issue tracking. You just need to create plugins folder inside of ~/.sbt/1.0.