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

2.2.0 regression - extra space in super-constructor second argument list #1536

Closed
neko-kai opened this issue Oct 21, 2019 · 2 comments
Closed

Comments

@neko-kai
Copy link

version = 2.2.0

Steps

Code formatted with scalafmt version 2.0.1 (no configuration, just version = 2.0.1):

final class Dummy[F[+_, +_]: BIOApplicative]
      extends DIResource.Make_[F[Nothing, ?], Component[F]](
        acquire = Ref(Map.empty[Key, Item]).map(new Dummy.Impl(_))
      )(release = F.unit)

But, scalafmt version 2.2.0 formats the same code like this:

final class Dummy[F[+_, +_]: BIOApplicative]
      extends DIResource.Make_[F[Nothing, ?], Component[F]](
        acquire = Ref(Map.empty[Key, Item]).map(new Dummy.Impl(_))
      ) (release = F.unit)

Problem

There's an additional space before the second parameter list in:

      ) (release = F.unit)

This space just appeared when upgrading versions, there doesn't seem to be a configuration to control it.

Workaround

None so far

@poslegm
Copy link
Collaborator

poslegm commented Oct 21, 2019

Already fixed in #1535. Try to update to 2.1.1, please

@neko-kai
Copy link
Author

@poslegm Version 2.2.1 works 👍

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