-
Notifications
You must be signed in to change notification settings - Fork 34
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
acyclic.pkg declaration doesn't persist between compilation runs #5
Comments
The problem here is that it can only detect cycles when everything is in the same compilation run, because the compiler only gets "given" all those files at once. With Not sure what the correct path forward is here. Maybe I could leave some package annotation of some sort in the package object's classfile? I've never done anything like that before. I guess you could be charitable and call it "unsupported" =P |
Thanks for the quick response! I tried moving the package object to the test directory in https://github.com/gshakhn/acyclic-test/tree/acyclic-declaration-in-test-dir, but Perfectly fine if it's unsupported. Just want to make sure I'm aware of the limitations. Plus documenting it here for future people who google. :) |
Err, I didn't actually |
Yeah intellij doesn't do the right thing due to the fact that the import is "unused". Unfortunately there's no way to tell it the import is special in any way, and there's no way to add |
Guessing this could be fixed via package object annotations instead of importing something "unused"? Waiting on https://issues.scala-lang.org/browse/SI-3600 for that. |
Thanks for creating the plugin. Starting a fresh project and want to have clean code. :)
I'm testing out the plugin to make sure I've configured it correctly. It doesn't seem to detect package cycles in test code, See https://github.com/gshakhn/acyclic-test for a sample project.
Running
sbt test:compile
doesn't cause a compilation error. If classesA
andB
are moved to the source directory, runningsbt compile
makes the compile fail as expected.Am I missing a configuration option, or does the plugin not support test code?
The text was updated successfully, but these errors were encountered: