gemini-cli-extensions / gemini-cli-extensions/conductor

Some command errors on Windows (setup - xargs, ls position commands)

Open
#60 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:setup bug p2
Dominant language
Python
Stars
3.7k
Forks
295
Avg merge
9m
Merged PRs (30d)
1

Description

During the :setup command, Conductor goes to list relevant files. While many linux commands are defined as aliases in Windows to the correct cmdlet, xargs isn't one of them.

For my brownfield project, setup continued fine despite this, and it still had reasonable recommendations for product scope and tech stack. It was likely able to infer from reading package.json and firebase.json after this failed command.

╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ ✓  Shell git ls-files --exclude-standard -z -c -o | xargs -0 -n 1 dirname | sort -u [current working directory C:\dev\<redacted>] (Listing releva… │
│                                                                                                                      │
│ xargs : The term 'xargs' is not recognized as the name of a cmdlet, function, script file, or operable               │
│ program. Check the spelling of the name, or if a path was included, verify that the path is correct and              │
│ try again.                                                                                                           │
│ At line:1 char:44                                                                                                    │
│ + git ls-files --exclude-standard -z -c -o | xargs -0 -n 1 dirname | so ...                                          │
│ +                                            ~~~~~                                                                   │
│     + CategoryInfo          : ObjectNotFound: (xargs:String) [], CommandNotFoundException                            │
│     + FullyQualifiedErrorId : CommandNotFoundException                                                               │
│                                                                                                                      │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Asking Gemini to convert the command into valid Powershell generates
git ls-files --exclude-standard -z -c -o | ForEach-Object { $_ -split "0" } | Where-Object { $_ } | ForEach-Object { Split-Path $_ -Parent } | Sort-Object -Unique`
which appears to create the correct formatted output.

I'd recommend having setup check for the OS (perhaps attempt cat /etc/os-release and if it fails then host or be very fancy with [System.Runtime.InteropServices.RuntimeInformation]::OSDescription) and either hardcode a Windows equivalent or just let gemini translate on the fly.

Contributor guide

Open the contributing guide

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 at the :setup command and trace where the shown git ls-files ... | xargs ... pipeline is invoked. Compare its behavior on Windows PowerShell with the reported file-listing output, then verify that setup completes without the xargs error and still discovers relevant files.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, powershell
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.