snippets icon indicating copy to clipboard operation
snippets copied to clipboard

Uncaught TypeError: Unable to watch path

Open germ13 opened this issue 11 years ago • 3 comments

[Enter steps to reproduce below:]

  1. Using Xubuntu 14.04
  2. Opened atom from "Start" menu.

Atom Version: 0.165.0 System: linux 3.13.0-44-generic Thrown From: snippets package, v0.60.0

Stack Trace

Uncaught TypeError: Unable to watch path

At /usr/share/atom/resources/app/node_modules/pathwatcher/lib/main.js:66

TypeError: Unable to watch path
  at TypeError (native)
  at HandleWatcher.start (/usr/share/atom/resources/app/node_modules/pathwatcher/lib/main.js:66:29)
  at new HandleWatcher (/usr/share/atom/resources/app/node_modules/pathwatcher/lib/main.js:30:12)
  at new PathWatcher (/usr/share/atom/resources/app/node_modules/pathwatcher/lib/main.js:120:30)
  at Object.exports.watch (/usr/share/atom/resources/app/node_modules/pathwatcher/lib/main.js:179:12)
  at File.module.exports.File.subscribeToNativeChangeEvents (/usr/share/atom/resources/app/node_modules/pathwatcher/lib/file.js:364:109)
  at File.module.exports.File.willAddSubscription (/usr/share/atom/resources/app/node_modules/pathwatcher/lib/file.js:101:14)
  at /usr/share/atom/resources/app/node_modules/pathwatcher/lib/file.js:3:61
  at File.module.exports.Emitter.emit (/usr/share/atom/resources/app/node_modules/emissary/lib/emitter.js:118:15)
  at File.module.exports.Emitter.on (/usr/share/atom/resources/app/node_modules/emissary/lib/emitter.js:48:14)
  at File.module.exports.File.on (/usr/share/atom/resources/app/node_modules/pathwatcher/lib/file.js:76:40)
  at /usr/share/atom/resources/app/node_modules/snippets/lib/snippets.js:164:30
  at Object.oncomplete (fs.js:93:15)
  at Ipc.sendSync (/usr/share/atom/resources/atom/renderer/api/lib/ipc.js:39:29)
  at Ipc.sendChannelSync (/usr/share/atom/resources/atom/renderer/api/lib/ipc.js:47:28)
  at BrowserWindow.RemoteMemberFunction [as setSize] (/usr/share/atom/resources/atom/renderer/api/lib/remote.js:110:29)
  at window.onload (file:///usr/share/atom/resources/app/static/index.js:69:19)

Commands

Config

{}

Installed Packages

# User
No installed packages

# Dev
No dev packages

/cc @atom/core

germ13 avatar Jan 27 '15 19:01 germ13

Could you please upgrade Atom to the latest version (currently 0.176.0) and see if this still happens?

winstliu avatar Jan 27 '15 20:01 winstliu

@50Wliu thanks for suggestion and prompt reply.

Upgraded to 0.176.0.

Got multiple errors (screenshot) atom

Followed link as suggested. Executed sudo sysctl fs.inotify.max_user_watches=32768 and Atom opened up without any issues.

Is this solution a workaround to a bigger or inherent problem in the code? Should I expect Atom to run fine at some point without the above shell command?

germ13 avatar Jan 27 '15 20:01 germ13

Read the reference issue on above link. Got my answer.

germ13 avatar Jan 27 '15 20:01 germ13