Skip to content

Commit

Permalink
Merge pull request #85 from typelevel/remove-checkinit
Browse files Browse the repository at this point in the history
Remove -Xcheckinit from the default option set
  • Loading branch information
DavidGregory084 authored Jul 19, 2022
2 parents 9aca456 + 2cd80b7 commit e3cec9d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Early Semantic Versioning](https://docs.scala-lang.org/overviews/core/binary-compatibility-for-library-authors.html#recommended-versioning-scheme) in addition to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added

* [#84](https://github.com/typelevel/sbt-tpolecat/pull/84) - An `advancedOption` overload with support for multiple argument options was added.

### Changed

* [#85](https://github.com/typelevel/sbt-tpolecat/pull/85) - `-Xcheckinit` was removed from the default option set. After discussion on issues [#10](https://github.com/typelevel/sbt-tpolecat/issues/10) and [#83](https://github.com/typelevel/sbt-tpolecat/issues/83) it has become apparent that although `-Xcheckinit` offers a lot of value for some users, it creates some very tricky problems for users that are writing async code. The initialization checking code this option produces introduces `@volatile` variables that can disguise memory visibility issues.

## [0.4.0] - 2022-07-15

NOTE: This release series will be the final one released under the group ID `io.github.davidgregory084`, and the final one using the package `io.github.davidgregory084`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,6 @@ private[davidgregory084] trait ScalacOptions {
/** Advanced options (-X)
*/
val advancedOptions: Set[ScalacOption] = ListSet(
checkInit,
lint
) ++ lintOptions

Expand Down
3 changes: 0 additions & 3 deletions src/sbt-test/sbt-tpolecat/scalacOptions/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ val Scala211Options =
"-language:experimental.macros",
"-language:higherKinds",
"-language:implicitConversions",
"-Xcheckinit",
"-Xlint:adapted-args",
"-Xlint:by-name-right-associative",
"-Xlint:delayedinit-select",
Expand Down Expand Up @@ -77,7 +76,6 @@ val Scala212Options =
"-language:experimental.macros",
"-language:higherKinds",
"-language:implicitConversions",
"-Xcheckinit",
"-Xlint:adapted-args",
"-Xlint:by-name-right-associative",
"-Xlint:constant",
Expand Down Expand Up @@ -122,7 +120,6 @@ val Scala213Options =
"-language:experimental.macros",
"-language:higherKinds",
"-language:implicitConversions",
"-Xcheckinit",
"-Xlint:adapted-args",
"-Xlint:constant",
"-Xlint:delayedinit-select",
Expand Down

0 comments on commit e3cec9d

Please sign in to comment.