-
Notifications
You must be signed in to change notification settings - Fork 277
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
New version 2.4.0 breaks some code #1707
Comments
@gvolpe thank you for reporting. to reproduce the problem, could you share:
|
Sure, here's my configuration:
If I update to Codeoverride def run(args: List[String]): IO[ExitCode] =
Slf4jLogger
.create[IO]
.flatMap { implicit logger: Logger[IO] =>
program
}
.as(ExitCode.Success) Here's the source code. |
I'm facing a similar issue rewriting }
def instantQueryParamEncoder(formatter: DateTimeFormatter): QueryParamEncoder[Instant] =
- QueryParamEncoder[String].contramap[Instant] { i: Instant =>
- formatter.format(i)
- }
+ QueryParamEncoder[String].contramap[Instant](i: Instant => formatter.format(i))
@deprecated("Use QueryParamEncoder[U].contramap(f)", "0.16")
def encodeBy[T, U](f: T => U)( This fails to compile:
|
We can't rewrite a lambda unless it has parens around parameters or one simple parameter without a type. Fixes scalameta#1707.
We can't rewrite a lambda unless it has parens around parameters or one simple parameter without a type. Fixes scalameta#1707. Fixes scalameta#1708.
We can't rewrite a lambda unless it has parens around parameters or one simple parameter without a type. Fixes scalameta#1707. Fixes scalameta#1708.
@gvolpe please try v2.4.1 |
It works! Thanks, @kitbellew 🚀 |
Problem with v2.4.0
Given code like this:
When I run scalafmt it gets formatted as below:
Which doesn't compile.
CI Build error
Here's the PR updating scalafmt: profunktor/redis4cats#224
Here's the full CI build error: https://github.com/profunktor/redis4cats/pull/224/checks?check_run_id=447840196
The text was updated successfully, but these errors were encountered: