You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we upgraded to 2.4.1 on FS2, Scalafmt changed braces to parens. This included assignment statements of the form IO { x = ??? } where some var s is in scope. These were reformatted as IO(x = ???), which does not compile.
Scalafmt also errored out initially:
[error] /Users/mpilquist/Development/oss/fs2/core/shared/src/test/scala/fs2/StreamSpec.scala:2044: error: Unable to format file due to bug in scalafmt
[error] assert(s.map(f).toList == s.toList.map(f))
[error] ^: /Users/mpilquist/Development/oss/fs2/core/shared/src/test/scala/fs2/StreamSpec.scala
version = "2.4.1"
style = default
maxColumn = 100
rewrite.rules = [
AvoidInfix
RedundantBraces
RedundantParens
AsciiSortImports
PreferCurlyFors
]
rewrite.neverInfix.excludeFilters = [until
to
by
eq
ne
"should.*"
"contain.*"
"must.*"
in
be
taggedAs
thrownBy
synchronized
have
when
size
theSameElementsAs]
The text was updated successfully, but these errors were encountered:
When we upgraded to 2.4.1 on FS2, Scalafmt changed braces to parens. This included assignment statements of the form
IO { x = ??? }
where some vars
is in scope. These were reformatted asIO(x = ???)
, which does not compile.Scalafmt also errored out initially:
In this block:
Changing the
f
param toforAll
toFunction1[Int, Int]
fixed.See See https://github.com/functional-streams-for-scala/fs2/pull/1796/commits for full details -- the commits alternate from changes by Scalafmt to manual workarounds.
The text was updated successfully, but these errors were encountered: