You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: only quote paths on Windows to prevent macOS/Linux spawn() errors (#156)
## Summary
Fixes a regression introduced in #151 where path quoting broke the Java
extension on macOS and Linux.
Closes#155
## Problem
PR #151 added double-quote wrapping to paths to fix spaces-in-path
issues on Windows. However, this broke macOS and Linux because:
- On Windows, Zed's proxy uses shell mode, where quotes are interpreted
and stripped
- On macOS/Linux, the proxy uses `spawn()` with `shell: false`, which
treats quotes as **literal filename characters**
This caused "No such file or directory (os error 2)" errors on
macOS/Linux because the system was looking for files like
`"/path/to/java"` (with literal quotes in the filename).
## Solution
- Only apply path quoting on Windows via runtime `current_platform()`
check
- Extract `format_path_for_os()` helper function for testability
- Add unit tests covering Windows, Mac, and Linux behavior
0 commit comments