Loading the project fails in Intellij Idea
Opened this issue · 0 comments
This severely limits the IDE's functionality, including running and debugging code.
This is because
scallion
(which is a source dependency of LISA) has abenchmark
subproject which contains outdated (not existing anymore) dependencies.- On project load, Intellij Idea tries to eagerly resolve them (reported here).
Both of the above are unrelated to LISA. For as long as above issues are not fixed, we can use the following workarounds:
-
Use a local copy of
scallion
and remove the problematic dependencies:
a. Clone scallion
b. Inside the scallion directory, rungit checkout <scallion commit from LISA's build.sbt>
c. Removelazy val benchmark = ...
from scallion'sbuild.sbt
.
d. Replacelazy val scallion = githubProject(...)
withlazy val scallion = RootProject(file("path-to-scallion"))
in LISA'sbuild.sbt
.
e. Optional: rungit update-index --assume-unchanged build.sbt
to stop seeing the change to LISA'sbuild.sbt
every time you rungit status
. -
Use
sbt
to run and debug code:
a. To run: inside sbt shell,run path.to.main
orrun
+ choose number to select the class to run,
b. To debug: start sbt withsbt -jvm-debug 5005
(or another port). In Intellij, select "Run -> Attach to process". Set breakpoints and userun
inside sbt as described above, it will start the debugging.