-
Notifications
You must be signed in to change notification settings - Fork 281
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
cats-effect: Unable to format file due to bug in scalafmt #1714
Comments
@larsrh is there a code example which can be used to reproduce the problem? |
Yes, you can run `scalafmtAll` on the PR.
…On 17 February 2020 09:35:40 CET, Albert Meltzer ***@***.***> wrote:
> @kitbellew See [#1599
(comment)](#1599 (comment))
@larsrh is there a code example which can be used to reproduce the
problem?
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#1714 (comment)
|
of course. |
kitbellew
added a commit
to kitbellew/scalafmt
that referenced
this issue
Feb 17, 2020
kitbellew
added a commit
to kitbellew/scalafmt
that referenced
this issue
Feb 17, 2020
When lambda parameters are themselves functions and contained arrows in their type definitions, the code would locate the wrong arrow and then fail to break after it as no such break is defined in any rules. Fixes scalameta#1714.
kitbellew
added a commit
to kitbellew/scalafmt
that referenced
this issue
Feb 17, 2020
When lambda parameters are themselves functions and contained arrows in their type definitions, the code would locate the wrong arrow and then fail to break after it as no such break is defined in any rules. Fixes scalameta#1714.
kitbellew
added a commit
that referenced
this issue
Feb 17, 2020
When lambda parameters are themselves functions and contained arrows in their type definitions, the code would locate the wrong arrow and then fail to break after it as no such break is defined in any rules. Fixes #1714.
I can test. Are snapshots published anywhere? I checked Sonatype, and don't see any past 2.3.1. Thanks! |
honestly, i don't know. i build locally and run this:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This template is a guideline, not a strict requirement.
Steps
Given code like this:
When I run scalafmt like this:
Problem
Scalafmt fails:
Expectation
scalafmt succeeds and the output still compiles
Workaround
Not upgrading to 2.4.1.
Notes
Similar to #1599, but not the same as what @larsrh reported for cats-effect on 2.4.0.
The text was updated successfully, but these errors were encountered: