Repository navigation
"Uncaught TypeError: Unable to watch path" Windows / Linux samba share #4849
Description
I run into this issue repeatedly. I know there are already a bunch of reports about this error message, but it's hard to tell what are duplicates because of all the variations. When I get this now it's paired with a second error:
Uncaught TypeError: Unable to watch path
Uncaught ReferenceError: spawnSync is not defined
(See bottom for detailed version.)
The details about my situation:
Atom (currently 0.153.0), no packages installed, running on Windows 7 x64.
Atom will run fine for some amount of time, then I try to open a file and get this error. It doesn't seem to be related to renaming files, as in some of the other reports. At least sometimes I can still open a file in a different window. At least sometimes I can open a file in the same window with a different path. For example, I'm often loading files from a samba share running on Ubuntu 12, e.g.
\\server\share\somedir\somefile
When the problem strikes I don't seem to be able to load any more files from \\server\share\somedir in the same window. But if I map a drive to the same share, I seem to be able to load files from there, e.g.:
Z:\somedir\somefile
I've already tried setting fs.inotify.max_user_watches to 32768 (on the Ubuntu system) as suggested in #2082 and the problem persists.
Uncaught TypeError: Unable to watch path c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\pathwatcher\lib\main.js:66
HandleWatcher.start c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\pathwatcher\lib\main.js:66
HandleWatcher c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\pathwatcher\lib\main.js:30
PathWatcher c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\pathwatcher\lib\main.js:120
exports.watch c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\pathwatcher\lib\main.js:179
module.exports.File.subscribeToNativeChangeEvents c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\pathwatcher\lib\file.js:364
module.exports.File.willAddSubscription c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\pathwatcher\lib\file.js:101
(anonymous function) c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\pathwatcher\lib\file.js:3
module.exports.File.onDidChange c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\pathwatcher\lib\file.js:85
module.exports.TextBuffer.subscribeToFile c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\text-buffer\lib\text-buffer.js:1085
module.exports.TextBuffer.setPath c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\text-buffer\lib\text-buffer.js:277
TextBuffer c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\text-buffer\lib\text-buffer.js:100
module.exports.Project.buildBuffer c:\Program Files (x86)\GitHub Atom\resources\app\src\project.js:463
module.exports.Project.bufferForPath c:\Program Files (x86)\GitHub Atom\resources\app\src\project.js:438
module.exports.Project.open c:\Program Files (x86)\GitHub Atom\resources\app\src\project.js:392
module.exports.Workspace.openUriInPane c:\Program Files (x86)\GitHub Atom\resources\app\src\workspace.js:482
module.exports.Workspace.open c:\Program Files (x86)\GitHub Atom\resources\app\src\workspace.js:409
_results.push._this.(anonymous function) c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\delegato\lib\delegator.js:67
module.exports.TreeView.openSelectedEntry c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\tree-view\lib\tree-view.js:634
module.exports.TreeView.entryClicked c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\tree-view\lib\tree-view.js:378
(anonymous function) c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\tree-view\lib\tree-view.js:156
handler c:\Program Files (x86)\GitHub Atom\resources\app\src\space-pen-extensions.js:112
jQuery.event.dispatch c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\space-pen\vendor\jquery.js:4681
elemData.handle c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\space-pen\vendor\jquery.js:4359
Uncaught ReferenceError: spawnSync is not defined c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\notifications\lib\notification-elemen…:278
NotificationElement.winVersionText c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\notifications\lib\notification-elemen…:278
NotificationElement.getOSMarketingVersion c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\notifications\lib\notification-elemen…:249
NotificationElement.getIssueBody c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\notifications\lib\notification-elemen…:183
NotificationElement.getIssueUrl c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\notifications\lib\notification-elemen…:164
NotificationElement.generateMarkup c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\notifications\lib\notification-elemen…:83
NotificationElement.initialize c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\notifications\lib\notification-elemen…:29
(anonymous function) c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\notifications\lib\main.js:15
module.exports.ViewRegistry.createView c:\Program Files (x86)\GitHub Atom\resources\app\src\view-registry.js:61
module.exports.ViewRegistry.getView c:\Program Files (x86)\GitHub Atom\resources\app\src\view-registry.js:43
(anonymous function) c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\notifications\lib\main.js:29
module.exports.Emitter.emit c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\event-kit\lib\emitter.js:82
module.exports.NotificationManager.addNotification c:\Program Files (x86)\GitHub Atom\resources\app\src\notification-manager.js:54
module.exports.NotificationManager.addFatalError c:\Program Files (x86)\GitHub Atom\resources\app\src\notification-manager.js:45
(anonymous function) c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\notifications\lib\main.js:43
module.exports.Emitter.emit c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\event-kit\lib\emitter.js:82
(anonymous function) c:\Program Files (x86)\GitHub Atom\resources\app\src\atom.js:221
Activity
lee-dohm commentedon Jan 6, 2015
Have you tried updating to the latest version? Atom released v0.166.0 today. I don't know that this will fix it, but it is worth a shot.
jmm commentedon Jan 6, 2015
I will try that at some point. It's just that with the rapid pace of releases I'm not always on the latest and since it's unpredictable when the problem will appear I can't just install the latest and then follow steps to reproduce. And a variation of the problem has been dogging me since at least 0.141.0
lee-dohm commentedon Jan 6, 2015
So is this just a duplicate of that issue? Should we merge the information there?
jmm commentedon Jan 6, 2015
I suppose the
Uncaught TypeError: Unable to watch pathpart is a duplicate, but now when I get it it's paired with a second error,Uncaught ReferenceError: spawnSync is not defined.lee-dohm commentedon Jan 6, 2015
Well, uncaught exceptions tend to cause other uncaught exceptions and since you don't seem to be saying that you ever see the
spawnSyncerror without first seeing the unable to watch path error ... I'm thinking they're tightly coupled.I'll leave it up to you @jmm, but I think they're duplicates and should be merged. Perhaps the core devs will have other opinions.
jmm commentedon Jan 7, 2015
They certainly appear in tandem, but I don't believe the second error was paired with the first when I commented on the other issue.
The issues about this error message raised on atom/atom have been more active (not sure they've actually resulted in resolution though). The issue on node-pathwatcher has been languishing for months with no info and for me (at least) it's a very annoying problem, so if raising it here actually gets it more attention, from my perspective that's a plus. If you think it's disrespectful or counterproductive or something then I don't oppose closing it or marking as duplicate.
benogle commentedon Jan 7, 2015
I think it's fine leaving this open
jmm commentedon Jan 7, 2015
Thanks @benogle.
AustP commentedon Jan 7, 2015
I am having a similar issue as this. Atom is running on Windows and I can edit local files just fine. When I try to edit files on a network share (my network share is to another windows machine) I can open 0-3 files before I get the error
Unable to watch pathand I can't open any more files.envygeeks commentedon Jan 8, 2015
Does Windows support notify? I know Linux Samba shares do, as do OS X but I don't think Windows has notify available for network shares within their Samba clients.
Josecc commentedon Jan 26, 2015
I have the same issue, I'm running windows 10 technical preview. I'm trying to access a network location and can't open any of the files.
jmm commentedon Feb 6, 2015
Just got this again in 0.174.0 (although now Atom usually crashes outright before this error has the chance to occur). Now a dialog pops up referring me to atom/tree-view/issues/278.
stale commentedon Aug 20, 2017
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
lock commentedon Mar 30, 2018
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!