The issue I have is with a particular scala project of mine when it comes to using the imports from my .sbt file. What I expect to happen is when I open up my project by selecting
Open > New Project > Select my SBT
is that my dependencies are loaded as per usual and everything outlines in my SBT file can be found in the project's External Libraries.
When I do import the project I am prompted to update the SBT it indicates that its updating everything and pulling from the SBT sources, but in reality it does not actually reflect any imported items (which also leaves my build.sbt file to have red-underline items as these libraries have not been imported).
A sample of the External Libraries:
A sample from my build.sbt:
I have uninstalled, re-installed both IntelliJ and all the plugins, removed my SBT items, added them in again, restarted, rinse repeat until infinity.
I've also opened up the SBT tools window and refreshed SBT as well as removed everything from the list and added it in again with no success.
With that, I have also deleted the generated .idea file and re-imported the project multiple times, using multiple different settings. (Removing the .idea file every time I tried something new).
I have tested the exact same project on a colleague's machine with working results, so I am not sure if there's anything I have configured incorrectly. We compared but everything looks exactly the same.
Cleaning, compiling and running the SBT in terminal works 100% - and this issue does NOT persist when I create a new Scala project. Theres also no error output which is REALLY frustrating.
I've tested with the following:
IntelliJ IDEA 2018.1.1 (Ultimate Edition)
Build #IU-181.4445.20, built on April 2, 2018
JRE: 1.8.0_152-release-1136-b27 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.13.3
Scala Plugin 2018.1.8
scala v2.12.4
SBT 1.1.1
** EDIT To give more information, when I have a simple build.sbt file (aka I give it a scala version, a name and some library dependencies) it works completely fine.
When I start adding in different aggregates under the root, it appears to stop recognising those modules.
As an example, I have;
lazy val root = Project("scala-test", file("."))
.aggregate(core)
If I check my SBT side panel I see everything listed:
Yet they are not in my project structure, meaning that it does not recognise any of the internal imports or import paths:
It appears to be something that's wrong with the Scala plugin but I have not found a stable solution around this.