Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension fails to load if limit of FSWatchers is reached #2184

Closed
dgolovin opened this issue Jul 1, 2021 · 0 comments · Fixed by #2185
Closed

Extension fails to load if limit of FSWatchers is reached #2184

dgolovin opened this issue Jul 1, 2021 · 0 comments · Fixed by #2185
Assignees
Milestone

Comments

@dgolovin
Copy link
Collaborator

dgolovin commented Jul 1, 2021

Sometimes ext fails to activate due to error, error to register watcher for file should not stop ext activation. The warning should be shown that automatic update for explorer is disabled due to limit of watchers reached.

Error: ENOSPC: System limit for number of file watchers reached, watch '/home/denis/.kube'
	at FSWatcher.<anonymous> (internal/fs/watchers.js:218)
	at Object.watch (fs.js:1525)
	at Function.watchFileForContextChange (/home/denis/p/vscode-openshift-tools/out/src/util/watch.js:17)
	at new OpenShiftExplorer (/home/denis/p/vscode-openshift-tools/out/src/explorer.js:43)
	at Function.getInstance (/home/denis/p/vscode-openshift-tools/out/src/explorer.js:69)
	at Object.<anonymous> (/home/denis/p/vscode-openshift-tools/out/src/openshift/openshiftItem.js:200)
	at Module._compile (internal/modules/cjs/loader.js:1125)
	at Object..js (internal/modules/cjs/loader.js:1155)
	at Module.load (internal/modules/cjs/loader.js:982)
	at internal/modules/cjs/loader.js:823
	at Function.<anonymous> (electron/js2c/asar_bundle.js:5)
	at Function.<anonymous> (/snap/code/67/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:103)
	at Function.<anonymous> (/snap/code/67/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:103)
	at Function._load (/snap/code/67/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:93)
	at Module.require (internal/modules/cjs/loader.js:1006)
	at require (internal/modules/cjs/helpers.js:88)
	at Object.<anonymous> (/home/denis/p/vscode-openshift-tools/out/src/openshift/cluster.js:26)
	at Module._compile (internal/modules/cjs/loader.js:1125)
	at Object..js (internal/modules/cjs/loader.js:1155)
	at Module.load (internal/modules/cjs/loader.js:982)
	at internal/modules/cjs/loader.js:823
	at Function.<anonymous> (electron/js2c/asar_bundle.js:5)
	at Function.<anonymous> (/snap/code/67/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:103)
	at Function.<anonymous> (/snap/code/67/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:103)
	at Function._load (/snap/code/67/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:93)
	at Module.require (internal/modules/cjs/loader.js:1006)
	at require (internal/modules/cjs/helpers.js:88)
	at Object.<anonymous> (/home/denis/p/vscode-openshift-tools/out/src/extension.js:21)
	at Module._compile (internal/modules/cjs/loader.js:1125)
	at Object..js (internal/modules/cjs/loader.js:1155)
	at Module.load (internal/modules/cjs/loader.js:982)
	at internal/modules/cjs/loader.js:823
	at Function.<anonymous> (electron/js2c/asar_bundle.js:5)
	at Function.<anonymous> (/snap/code/67/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:103)
	at Function.<anonymous> (/snap/code/67/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:103)
	at Function._load (/snap/code/67/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:93)
	at Module.require (internal/modules/cjs/loader.js:1006)
	at require (internal/modules/cjs/helpers.js:88)
	at Function.t [as __$__nodeRequire] (loader.js:1025)
	at m._loadCommonJSModule (/snap/code/67/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:103)
	at m._doActivateExtension (/snap/code/67/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:89)
	at m._activateExtension (/snap/code/67/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:89)
	at processTicksAndRejections (internal/process/task_queues.js:93)
onDidChangeNotification @ notificationsAlerts.ts:38

@dgolovin dgolovin added this to the v0.2.9 milestone Jul 1, 2021
@dgolovin dgolovin self-assigned this Jul 1, 2021
@dgolovin dgolovin modified the milestones: v0.2.9, v0.2.8 Jul 1, 2021
dgolovin added a commit to dgolovin/vscode-openshift-tools that referenced this issue Jul 1, 2021
This PR fixes redhat-developer#2184.

Signed-off-by: Denis Golovin dgolovin@redhat.com
dgolovin added a commit that referenced this issue Jul 1, 2021
This PR fixes #2184.

Signed-off-by: Denis Golovin dgolovin@redhat.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant