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

Manage Scopes Settings correctly #312

Open
adampauls opened this issue Mar 11, 2016 · 0 comments
Open

Manage Scopes Settings correctly #312

adampauls opened this issue Mar 11, 2016 · 0 comments

Comments

@adampauls
Copy link

I tried adding an IntegrationTest configuration to my build by doing this in build.sbt:

lazy val IntegrationTest = config("it") extend(Test)

and then

EclipseKeys.configurations += IntegrationTest

The first line ensures that the integration tests can depend on code in the src/test/scala directory. In order for the scoped compiler to work correctly in these conditions, the src/it/scala folder needs to be compiled during the tests scope. This is set by adding the line

//src/it/scala=tests

to org.scala-ide.sdt.core.prefs. Unfortunately, whenever sbt eclipse is run, the org.scala-ide.sdt.core.prefs file gets overwritten, so even if I manually add this setting, it gets overwritten on a clean rebuild. It would be nice if this were inferred automatically, or at a minimum there were an additional configuration option to fix it.

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
@adampauls and others