Skip to content

fix multithreading in jlfmt app#983

Merged
penelopeysm merged 3 commits into
JuliaEditorSupport:masterfrom
digital-carver:dcarv/appthreadsfix
May 23, 2026
Merged

fix multithreading in jlfmt app#983
penelopeysm merged 3 commits into
JuliaEditorSupport:masterfrom
digital-carver:dcarv/appthreadsfix

Conversation

@digital-carver
Copy link
Copy Markdown
Collaborator

Currently, running jlfmt with --threads set to more than one thread leads to an error:

ERROR: TaskFailedException

    nested task error: MethodError: no method matching firstindex(::Base.Generator{Base.Iterators.Enumerate{Vector{String}}, JuliaFormatter.var"#main##0#main##1"{String, Bool, Dict{Symbol, Any}}})

This fixes it and makes jlfmt capable of using multithreading.

A minimal test against future regression in this is added too.

(Resolves #953)

Adds a minimal test against future regression in this too
@penelopeysm penelopeysm mentioned this pull request May 15, 2026
@penelopeysm penelopeysm merged commit 11ec5e1 into JuliaEditorSupport:master May 23, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--threads not working with jlfmt

2 participants