Skip to content

SciMLStyle hangs #1066

Description

@penelopeysm

Attempting to format OrdinaryDiffEq with SciMLStyle hangs. I'm not sure if it's genuinely hanging as in infinite loop, or whether it's just incredibly slow.

Default style takes around 5 seconds (note that the failures are known, it's #1017). Likewise for blue / yas / minimal

time jlfmt --check .
┌ Warning: Formatted text is not parsable ... no change made.
└ @ JuliaFormatter ~/jl/jf/src/JuliaFormatter.jl:295
ERROR: failed to parse input from ./lib/OrdinaryDiffEqBDF/test/dae_convergence_tests.jl: ParseError:
# Error @ line 83:5
        analytic = (du0, u0, p, t) -> @. u0 * exp(t),
    ),
#   ╙ ── unexpected `)`
┌ Warning: Formatted text is not parsable ... no change made.
└ @ JuliaFormatter ~/jl/jf/src/JuliaFormatter.jl:295
ERROR: failed to parse input from ./lib/StochasticDiffEq/test/events_test.jl: ParseError:
# Error @ line 59:1
    finalize = (args...) -> global times_finalize_called += 1,
)
╙ ── unexpected `)`
┌ Warning: Formatted text is not parsable ... no change made.
└ @ JuliaFormatter ~/jl/jf/src/JuliaFormatter.jl:295
ERROR: failed to parse input from ./test/integrators/discrete_callback_dual_test.jl: ParseError:
# Error @ line 18:5
        finalize = (args...) -> global times_finalize_called += 1,
    )
#   ╙ ── unexpected `)`
Some files are not formatted correctly. Run without --check to format them.

real	0m5.021s
user	0m5.882s
sys	0m0.202s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions