drawthingsai / drawthingsai/media-generation-kit

Swift Error building media-generation-kit-cli

Open Beginner friendly
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
29
Forks
6
PR merge metrics
No merged PRs in 30d

Description

I used the command: swift build --product media-generation-kit-cli with the media-generation-kit v1.20260401.0

This produced the error:
media-generation/Sources/MediaGenerationKitCLI/MediaGenerationKitCLI.swift:1707:11: error: contextual closure type '(MediaGenerationPipeline.State) -> Void' expects 1 argument, but 2 were used in closure body 1705 | negativePrompt: finalNegativePrompt, 1706 | inputs: generationInputs 1707 | ) { state, _ in | `- error: contextual closure type '(MediaGenerationPipeline.State) -> Void' expects 1 argument, but 2 were used in closure body 1708 | switch state { 1709 | case .uploading(let uploaded, let total):

To stop the error, I edited line 1707 to
) { state in

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in Sources/MediaGenerationKitCLI/MediaGenerationKitCLI.swift at line 1707 and inspect the MediaGenerationPipeline callback signature. Run swift build --product media-generation-kit-cli, adjust the closure to match the reported one-argument type, and confirm the product builds successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.