Manage Scopes Settings correctly
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 712
- Forks
- 163
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the setup in build.sbt and run sbt eclipse, then inspect how org.scala-ide.sdt.core.prefs is generated and overwritten. The work is done when the src/it/scala=tests setting is inferred or can be preserved through an explicit configuration option after a clean rebuild.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100