Skip to content

Commit 01af674

Browse files
committed
fix(@angular/cli): ignore EBADF file system errors during MCP project scan
File crawling concurrency occasionally surfaces temporary EBADF descriptors on specialized filesystems. This catches and ignores them, guaranteeing completion of background discovery loops. (cherry picked from commit ead60d3)
1 parent 6df2b14 commit 01af674

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular/cli/src/commands/mcp/tools/projects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ their types, and their locations.
149149
});
150150

151151
const EXCLUDED_DIRS = new Set(['node_modules', 'dist', 'out', 'coverage']);
152-
const IGNORED_FILE_SYSTEM_ERRORS = new Set(['EACCES', 'EPERM', 'ENOENT', 'EBUSY']);
152+
const IGNORED_FILE_SYSTEM_ERRORS = new Set(['EACCES', 'EPERM', 'ENOENT', 'EBUSY', 'EBADF']);
153153

154154
function isIgnorableFileError(error: Error & { code?: string }): boolean {
155155
return !!error.code && IGNORED_FILE_SYSTEM_ERRORS.has(error.code);

0 commit comments

Comments
 (0)