IDEA 2017.2 with SBT 1.0 support - build project does nothing Follow
I have IDEA 2017.2 with Scala plugin 2017.2.5. I have Play 2.6 project and turned on option `Use SBT shell for build and import (requires sbt 0.13.5+)`.
My project uses sbt 0.13.15, Scala 2.12.2.
So, I build the project using IDEA, the progress bar finishes within a second without any window. But when I start SBT shell and `compile`, I see some errors.
Can you please explain, how `Build Project` is supposed to work? I thought with `Use SBT shell for build and import` option checked, IDEA will compile the project and show me any errors using IDEA's error/problems window, so I don't have to use terminal anymore.
Please sign in to leave a comment.
Can you check if the problem persists after you reimport the project?
What you should see: The embedded sbt shell should start and show the build output. Errors from the shell compile are currently not shown in the IDE problems window.
Thanks Justin. That was it.
You have to reimport SBT project after checking `Use SBT shell for build and import` option.
Please consider some popup with info, that IDEA must reimport project after someone turns on that option (if needed).
But in my another project (Play 2.6, Scala 2.12, SBT 0.13.15), SBT refresh process ends up with
and IDEA's progress bar is stuck causing high CPU usage.
It's not the option itself, but that it depends on some data that changed serialization format in this release. You are right that there should be a better feedback when it fails to load/access this data for whatever reason.
Does the Play project load fail with this error reproducibly even after restarting the sbt shell for that project? It's been a spurious bug I've been hunting for a while.
Bad luck Justin. It happend 3 times in a row.
Wanted to reproduce it again, so I cleared logs, restarted IDEA, turned on `sbt build` option and `sbt refresh` worked.
Even if I check previous logs, the only error I see is
Too bad, thanks anyway!
My issue here could be related to this: https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000530510-SBT-Shell-Error-Not-a-valid-key-idea-shell
I have invalidated cache and re-indexed and it still doesn't work.
Hope there is a solution to this soon.
Well it's June 2019 (almost two years later) and I'm having this problem so I guess there is no solution. IntelliJ used to be "develop with pleasure" but now I have so many of these headaches I wonder if I shouldn't bite the bullet and just use Emacs.
I am also facing this issue, should I uninstall intellij, or I can expect it to be fixed soon?