-
Notifications
You must be signed in to change notification settings - Fork 22
Description
This severely limits the IDE's functionality, including running and debugging code.
This is because
scallion(which is a source dependency of LISA) has abenchmarksubproject 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
scallionand 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.sbtto stop seeing the change to LISA'sbuild.sbtevery time you rungit status. -
Use
sbtto run and debug code:
a. To run: inside sbt shell,run path.to.mainorrun+ 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 useruninside sbt as described above, it will start the debugging.