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

[SR-13049] prioritizeKeepingFunctionOutputTogether → Assertion failed: Too many unresolved delimiter token lengths. #319

Open
swift-ci opened this issue Jun 19, 2020 · 3 comments
Labels
bug Something isn't working swift-format

Comments

@swift-ci
Copy link

Previous ID SR-13049
Radar None
Original Reporter SDGGiesbrecht (JIRA User)
Type Bug
Environment

macOS 10.15
Swift 5.2.4
swift-format 0.50200.1 (--configuration debug)

Additional Detail from JIRA
Votes 1
Component/s swift-format
Labels Bug
Assignee None
Priority Medium

md5: 03dbcc7fa590f6df220907a3ac3b2572

Issue Description:

Formatting with `prioritizeKeepingFunctionOutputTogether` engaged can lead to assertion failures.

This code is enough to trip it:

init(a: B) {}

@typesanitizer
Copy link

cc @allevato

@pdesjardins90
Copy link

I get this error too even when setting:

prioritizeKeepingFunctionOutputTogether: false

using swift 5.5.2 + swift-format 0.50500.0 on ubuntu

EDIT:

Found a different culprit:
rules: { BeginDocumentationCommentWithOneLineSummary: true }

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 9, 2022
@MrJackScratch
Copy link

Just got this error as well, prioritizeKeepingFunctionOutputTogether was the culprit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working swift-format
Projects
None yet
Development

No branches or pull requests

4 participants