Skip to content

--threads not working with jlfmt #953

@dhanak

Description

@dhanak

https://github.com/domluna/JuliaFormatter.jl/blob/cccfe0b52e0e8d2df8aa149a3af1ea9b25737397/src/app.jl#L590

This line should read

        Threads.@threads for opts in collect(options_list)

because @threads can only distribute the workload if it knows the length of the list in advance, and options_list is, contrary to its name, a generator, with unknown length.

Metadata

Metadata

Labels

No labels
No labels

Type

No type
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