fix(server): surface a missing workspace folder instead of a spawn error #5040
Mergedkakismash(GitHub profile, opens in a new tab)merged 3 commits into
main fromrefs/pull/5040/headmerged by juliusmarminge View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
- apps/server/src/provider/Layers/ProviderService.ts line 603OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -589,3 +595,9 @@589595 : "none",590596 "provider.cwd.effective": effectiveCwd ?? "",591597 });598+ if (effectiveCwd !== undefined) {599+ // Fail fast with an actionable error when the workspace folder is600+ // gone (e.g. moved or deleted). Otherwise every adapter surfaces601+ // this as a misleading "failed to spawn <binary>" process error.602+ // Stat failures other than "missing" fall through to the adapter.603+ const workspaceExists = yield* fileSystem
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
juliusmarminge merged thisfce8508
juliusmarminge closed this
Sign in to join this conversation.
Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
33f6851a-7dff-4edf-8b5a-353f49b5b322You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share