Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading the project fails in Intellij Idea #69

Open
cache-nez opened this issue Oct 11, 2022 · 0 comments
Open

Loading the project fails in Intellij Idea #69

cache-nez opened this issue Oct 11, 2022 · 0 comments

Comments

@cache-nez
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant