-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
I added a repo with a local, absolute path to the system. When running a prompt, the system tries to use that path under the usual workspace:
[dev:backend] 214 | }
[dev:backend] 215 |
[dev:backend] 216 | // Bun.spawn should throw this, but it incorrectly reports that the executable does not exist.
[dev:backend] 217 | // See https://github.com/oven-sh/bun/issues/24012
[dev:backend] 218 | if (!(await fs.stat(input.cwd).catch(() => undefined))?.isDirectory()) {
[dev:backend] 219 | throw Object.assign(new Error(`No such file or directory: '${input.cwd}'`), {
[dev:backend] ^
[dev:backend] error: No such file or directory: '/Users/viraptor/src/opencode-manager/workspace/repos/Users/viraptor/src/the_repo'
[dev:backend] errno: -2,
[dev:backend] path: "/Users/viraptor/src/opencode-manager/workspace/repos/Users/viraptor/src/the_repo",
[dev:backend] code: "ENOENT"
[dev:backend]
[dev:backend] at files (src/file/ripgrep.ts:219:27)
[dev:backend]
But the project doesn't exist there.
I don't actually know if the expectation is to clone the repo in the workspace, or should that interaction use the absolute path instead.
Metadata
Metadata
Assignees
Labels
No labels