SweetPad Fails to Recognize Tools Installed via Homebrew
Description
I encountered two issues while trying to set up SweetPad for development. If this is intended behavior with a known solution, I would appreciate any guidance.
-
SweetPad: Generate Build Server Config fails
I followed the setup instructions at: https://sweetpad.hyzyla.dev/docs/autocomplete Step 1, installing xcode-build-server, was successful as shown in the log below:
hoge@fuga piyo % brew install xcode-build-server --head ==> Downloading https://formulae.brew.sh/api/formula.jws.json ==> Downloading https://formulae.brew.sh/api/cask.jws.json ==> Fetching dependencies for xcode-build-server: gzip ==> Fetching gzip ==> Downloading https://ghcr.io/v2/homebrew/core/gzip/manifests/1.14 Already downloaded: /Users/unserori/Library/Caches/Homebrew/downloads/5d9573c7faedb519c8575d5cb728857cde5ebd5b525155ef0b600076e41f31ef--gzip-1.14.bottle_manifest.json ==> Downloading https://ghcr.io/v2/homebrew/core/gzip/blobs/sha256:c82c69f648546f3d0e962e9012a2cb258b454b098ae880880dc88418dc544a41 Already downloaded: /Users/unserori/Library/Caches/Homebrew/downloads/dcd306c752e9b8d43afc0c258053174859099a926708c0b7c1d7a41ce5bd047b--gzip--1.14.arm64_sequoia.bottle.tar.gz ==> Fetching xcode-build-server ==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/df04ff998fcf20cf4c6e25624a4e613e53131cef/Formula/x/xcode-build-se Already downloaded: /Users/unserori/Library/Caches/Homebrew/downloads/cddcdb4c3df4957473099db0b7448efb253fd904ad56d7b70c0ab49470426309--xcode-build-server.rb ==> Cloning https://github.com/SolaWing/xcode-build-server.git Updating /Users/unserori/Library/Caches/Homebrew/xcode-build-server--git ==> Checking out branch master Already on 'master' Your branch is up to date with 'origin/master'. HEAD is now at 937bc9c fix: warning ==> Installing dependencies for xcode-build-server: gzip ==> Installing xcode-build-server dependency: gzip ==> Downloading https://ghcr.io/v2/homebrew/core/gzip/manifests/1.14 Already downloaded: /Users/unserori/Library/Caches/Homebrew/downloads/5d9573c7faedb519c8575d5cb728857cde5ebd5b525155ef0b600076e41f31ef--gzip-1.14.bottle_manifest.json ==> Pouring gzip--1.14.arm64_sequoia.bottle.tar.gz 🍺 /opt/homebrew/Cellar/gzip/1.14: 35 files, 465.4KB ==> Installing xcode-build-server --HEAD 🍺 /opt/homebrew/Cellar/xcode-build-server/HEAD-937bc9c: 18 files, 76.8KB, built in 2 seconds ==> Running `brew cleanup xcode-build-server`... Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).However, Step 2 fails with the following error message in the UI:
SweetPad: Generate Build Server Config -> SweetPad: xcode-build-server is not installed
-
Fails to install tools from the TOOLS tab Even though Homebrew is installed, clicking the [SweetPad: Install tool] button for any tool in the TOOLS tab results in an error.
Verifying brew installation:
hoge@fuga piyo % brew --version Homebrew 4.5.7Error when trying to install Homebrew via the TOOLS tab:
* Executing task: sweetpad: Install Tool 🚀 Executing command: /bin/bash -c '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)' /bin/bash: #!/bin/bash: No such file or directory 🚫 Command returned non-zero exit code * The terminal process failed to launch (exit code: 127). * Terminal will be reused by tasks, press any key to close it.Error when trying to install swift-format (and all other tools):
* Executing task: sweetpad: Install Tool 🚀 Executing command: brew install swift-format /bin/sh: brew: command not found 🚫 Command returned non-zeo exit code * The terminal process failed to launch (exit code: 127). * Terminal will be reused by tasks, press any key to close it.
uspected Cause
Given that I can run brew commands without any issues from the VS Code integrated terminal, and based on the error messages (brew: command not found), I suspect that the execution environment for the SweetPad extension does not have the correct PATH to find brew and xcode-build-server.
Environment
VS Code Version: 1.101.0 (Universal) Commit: dfaf44141ea9deb3b4096f7cd6d24e00c147a4b1 Date: 2025-06-11T15:00:50.123Z Electron: 35.5.1 ElectronBuildId: 11727614 Chromium: 134.0.6998.205 Node.js: 22.15.1 V8: 13.4.114.21-electron.0 OS: Darwin arm64 24.5.0 SweetPad Extension Version: 0.1.66 Default Shell: "terminal.integrated.defaultProfile.osx": "zsh"
Additional Context
Please let me know if any other information is needed. I'm really looking forward to the future development of this project.
I ran the command in a regular shell and it failed I changed single quotes to double quotes and it worked.
fuga:piyo hoge$ /bin/bash -c '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)'
/bin/bash: #!/bin/bash: No such file or directory
fuga:piyo hoge$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
==> Checking for `sudo` access (which may request your password)...
Password:
Would this be of any help?
I am also running into this in both VSCode and Cursor.
---
time: 2025-07-01T02:06:14.169Z
level: ERROR
message: "xcode-build-server is not installed"
stackTrace: |
Error: xcode-build-server is not installed
...
context:
logContext: {"command":"sweetpad.build.generateBuildServerConfig"}
errorContext: null
> which xcode-build-server
/opt/homebrew/bin/xcode-build-server
Using brew 4.5.8, VSCode 1.101.0, and Cursor 1.1.6 (Universal).
I have the same problem. Because of the tools in SweetPad are invoke with /bin/bash,and my terminal profile is /bin/zsh. How do I change the profile to /bin/zsh ?
Since my terminal was using zsh, I tried switching to bash with:
chsh -s /bin/bash
However, this did not resolve the error in the Install Tool—it had no effect.
Here is the error message:
* Executing task: sweetpad: Install Tool
🚀 Executing command:
/bin/bash -c '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)'
/bin/bash: #!/bin/bash: No such file or directory
🚫 Command returned non-zero exit code
As also mentioned in the issue thread, running the same command manually in the terminal causes the same error when using single quotes, but it does work when switching to double quotes.
hoge@fuga piyo % /bin/bash -c '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)'
/bin/bash: #!/bin/bash: No such file or directory
hoge@fuga piyo % /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
==> Checking for `sudo` access (which may request your password)...
Password:
Doesn’t this suggest a potential clue toward resolving the issue?
It seems that multiple users are experiencing the same issue.
Since this may be affecting others and could point toward a fix, I’m tagging the maintainer for visibility.
@hyzyla — would you mind taking a look when you have a moment? 🙏