Skip to content

Instantly share code, notes, and snippets.

View davidfirst's full-sized avatar

David First davidfirst

View GitHub Profile
@davidfirst
davidfirst / watchman-exhaust.mjs
Last active March 13, 2026 20:00
macOS FSEventStream limits (undocumented by Apple): 512 per-process, 1024 system-wide, NOT multiplicative. Diagnose watcher exhaustion in VS Code, Watchman, Webpack, etc.
/**
* fsevents-exhaust — macOS FSEventStream limit tester
*
* Measures the maximum number of FSEventStream instances that macOS allows,
* both per-process and system-wide. This is useful for diagnosing
* FSEventStreamStart failures in tools like Watchman, VS Code, Webpack, etc.
*
* Background:
* macOS's fseventsd daemon enforces a hard limit on FSEventStream clients.
* This limit is NOT documented by Apple. The per-process limit is 512
@davidfirst
davidfirst / gist:f2f7110874e50bbb10f3f8f3f7eb9454
Created September 18, 2018 18:35
patch-import-path-error
diff --git a/src/links/link-generator.js b/src/links/link-generator.js
index 62123823..3eaa3019 100644
--- a/src/links/link-generator.js
+++ b/src/links/link-generator.js
@@ -348,7 +348,7 @@ The dependencies array has the following ids: ${dependencies.map(d => d.id).join
return R.flatten(currLinks);
});
const internalCustomResolvedLinks = parentComponent.customResolvedPaths.length
- ? getInternalCustomResolvedLinks(parentComponent, createNpmLinkFiles)
+ ? getInternalCustomResolvedLinks(parentComponent, parentComponentMap, createNpmLinkFiles)