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

Get SemanticTest running in intellij #49

Closed
olafurpg opened this issue Jan 28, 2017 · 4 comments
Closed

Get SemanticTest running in intellij #49

olafurpg opened this issue Jan 28, 2017 · 4 comments

Comments

@olafurpg
Copy link
Contributor

It should be possible to replace the exposePaths hack in build.sbt with
https://github.com/sbt/sbt-buildinfo

@olafurpg
Copy link
Contributor Author

A nice side effect of the tests cleanup in #165 is that we no longer use the hacky exposePaths trick, build info generates all the necessary file path strings. This means the scalafix-testskit tests should run cleanly in IntelliJ with full support for breakpoints and everything. NOTE however, you need to run sbt test:compile via the terminal first to trigger the BuildInfo code generation.

I tried to run SemanticTests but I get a cryptic "Error:Module 'unit' production: java.lang.NullPointerException". I have little experience compiling projects from IntelliJ. @ShaneDelmore Could you maybe checkout master and try running SemanticTests.scala from intellij?

@olafurpg
Copy link
Contributor Author

I just successfully ran SemanticTests via intellij

screen shot 2017-08-16 at 10 31 36

I had to specify the output path in the Project Structure but otherwise I didn't need any custom setup. You still need to run sbt test:compile once to generate the BuildInfo objects.

@ShaneDelmore
Copy link
Contributor

@olafurpg I see I missed your message to test this out previously. Sorry about that but thanks for verifying it works.

@olafurpg
Copy link
Contributor Author

No worries @ShaneDelmore ! I miss messages in my inbox all the time 😅

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

2 participants