Skip to content

Loading the project fails in Intellij Idea #69

@cache-nez

Description

@cache-nez

This severely limits the IDE's functionality, including running and debugging code.

This is because

  1. scallion (which is a source dependency of LISA) has a benchmark subproject which contains outdated (not existing anymore) dependencies.
  2. 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:

  1. Use a local copy of scallion and remove the problematic dependencies:
    a. Clone scallion
    b. Inside the scallion directory, run git checkout <scallion commit from LISA's build.sbt>
    c. Remove lazy val benchmark = ... from scallion's build.sbt.
    d. Replace lazy val scallion = githubProject(...) with lazy val scallion = RootProject(file("path-to-scallion")) in LISA's build.sbt.
    e. Optional: run git update-index --assume-unchanged build.sbt to stop seeing the change to LISA's build.sbt every time you run git status.

  2. Use sbt to run and debug code:
    a. To run: inside sbt shell, run path.to.main or run + choose number to select the class to run,
    b. To debug: start sbt with sbt -jvm-debug 5005 (or another port). In Intellij, select "Run -> Attach to process". Set breakpoints and use run inside sbt as described above, it will start the debugging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions