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

Remove automatic installation of semanticdb-scalac #666

Merged
merged 4 commits into from
Apr 9, 2018

Conversation

olafurpg
Copy link
Contributor

Duplicate of #665 that was reverted after merge. Let's not merge this until all changes for v0.6 are ready. I have one more pending PR before it's safe to merge this PR.

Previously, addSbtPlugin(sbt-scalafix) would automatically enable the
semanticdb-scalac compiler plugin and -Yrange scalac options.
This commit removes the automatic installation so that users now need to
manually enable the following settings

addCompilerPlugin(scalafixSemanticdb)
scalacOptions += "-Yrangepos"

This makes the installation consistent for all users regardless of what
order they define libraryDependencies and scalacOptions.
The installation documentation for sbt-scalafix was pretty complex
before because the automatic setup only worked sometimes.

Fixes #589

PS. Right after merging this PR we should immediately cut a v0.6.0-M2 release in order to make the installation instructions up-to-date.

olafurpg added 4 commits April 9, 2018 14:45
Previously, addSbtPlugin(sbt-scalafix) would automatically enable the
semanticdb-scalac compiler plugin and -Yrange scalac options.
This commit removes the automatic installation so that users now need to
manually enable the following settings
```
addCompilerPlugin(scalafixSemanticdb)
scalacOptions += "-Yrangepos"
```
This makes the installation consistent for all users regardless of what
order they define libraryDependencies and scalacOptions.
The installation documentation for sbt-scalafix was pretty complex
before because the automatic setup only worked sometimes.
Custom sourceroots are an esoteric feature that is not worth
maintaining.
This allows us to add more changes without forcing the scalafix website
to show docs for milestone releases
@olafurpg olafurpg force-pushed the add-compiler-plugin branch from bd4515a to c062c20 Compare April 9, 2018 12:48
@olafurpg olafurpg merged commit a734915 into scalacenter:master Apr 9, 2018
@olafurpg olafurpg changed the title DO NOT MERGE Remove automatic installation of semanticdb-scalac Remove automatic installation of semanticdb-scalac Apr 9, 2018
@olafurpg olafurpg deleted the add-compiler-plugin branch April 9, 2018 13:16
@olafurpg olafurpg added this to the v0.6.0-M2 milestone Apr 11, 2018
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

Successfully merging this pull request may close these issues.

Stop automatic installation of semanticdb-scalac
1 participant