Skip to content

fix multithreading in jlfmt app#983

Open
digital-carver wants to merge 1 commit into
JuliaEditorSupport:masterfrom
digital-carver:dcarv/appthreadsfix
Open

fix multithreading in jlfmt app#983
digital-carver wants to merge 1 commit 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
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

1 participant