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
Describe the bug
When I run freeze file.swift it produces an image which always contains at least one orange-red rectangle that appears in the first 3 lines of code.
Here's an example
If the file is just 3 lines of code it works fine.
To Reproduce
Steps to reproduce the behavior:
Create .swift file and put
typealiasPartOne=@Sendable(String)->Int@available(macOS 13.0,*)letpartOne:PartOne={ x inletdigitPattern=/\d+/ // -- 1
return x.split(separator:"\n").reduce(0){ acc, curr in // -- 2
letmatches= curr.matches(of: digitPattern) // -- 3
guard let first =Int(matches.first!.0)else{return acc } // -- 3
return acc + first +(matches.count >1?Int(matches.last!.0)! : 0) // -- 4
}}
inside
3. run freeze file.swift
4. Tada !
Expected behavior
There should be an output image freeze.png
Desktop (please complete the following information):
OS: macOS Sequoia 15.1.1
The text was updated successfully, but these errors were encountered:
I was able to reproduce this as well on master. I also tested the svg output (freeze file.swift -o freeze.svg) and it didn't have this issue (attached)
Will have to take a look at the png conversion under the hood. Thanks for reporting this and providing us with steps to repro!
Describe the bug
When I run
freeze file.swift
it produces an image which always contains at least one orange-red rectangle that appears in the first 3 lines of code.Here's an example
If the file is just 3 lines of code it works fine.
To Reproduce
Steps to reproduce the behavior:
inside
3. run
freeze file.swift
4. Tada !
Expected behavior
There should be an output image freeze.png
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: