Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

"Uncaught TypeError: Unable to watch path" Windows / Linux samba share #4849

Closed

Description

@jmm

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

  1. lee-dohm commented on Jan 6, 2015

    @lee-dohm
    Contributor

    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.

  2. jmm commented on Jan 6, 2015

    @jmm
    Author

    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

  3. lee-dohm commented on Jan 6, 2015

    @lee-dohm
    Contributor

    So is this just a duplicate of that issue? Should we merge the information there?

  4. jmm commented on Jan 6, 2015

    @jmm
    Author

    I suppose the Uncaught TypeError: Unable to watch path part is a duplicate, but now when I get it it's paired with a second error, Uncaught ReferenceError: spawnSync is not defined.

  5. lee-dohm commented on Jan 6, 2015

    @lee-dohm
    Contributor

    Well, uncaught exceptions tend to cause other uncaught exceptions and since you don't seem to be saying that you ever see the spawnSync error 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.

  6. jmm commented on Jan 7, 2015

    @jmm
    Author

    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.

  7. benogle commented on Jan 7, 2015

    @benogle
    Contributor

    I think it's fine leaving this open

  8. jmm commented on Jan 7, 2015

    @jmm
    Author

    Thanks @benogle.

  9. AustP commented on Jan 7, 2015

    @AustP

    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 path and I can't open any more files.

  10. envygeeks commented on Jan 8, 2015

    @envygeeks
    Contributor

    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.

  11. Josecc commented on Jan 26, 2015

    @Josecc

    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.

  12. ghost added on Jan 26, 2015
  13. ghost added
    linux
    on Jan 26, 2015
  14. ghost added
    windows
    on Jan 26, 2015
  15. jmm commented on Feb 6, 2015

    @jmm
    Author

    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.

    Uncaught TypeError: Unable to watch path
    c:\Program Files (x86)\GitHub Atom\resources\app\src\workspace.js:504
    TypeError: Unable to watch path
      at TypeError (native)
      at HandleWatcher.start (c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\pathwatcher\lib\main.js:66:29)
      at new HandleWatcher (c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\pathwatcher\lib\main.js:30:12)
      at new PathWatcher (c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\pathwatcher\lib\main.js:120:30)
      at Object.exports.watch (c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\pathwatcher\lib\main.js:179:12)
      at File.module.exports.File.subscribeToNativeChangeEvents (c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\pathwatcher\lib\file.js:399:109)
      at File.module.exports.File.willAddSubscription (c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\pathwatcher\lib\file.js:108:14)
      at File.willAddSubscription (c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\pathwatcher\lib\file.js:3:61)
      at File.module.exports.File.onDidChange (c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\pathwatcher\lib\file.js:88:12)
      at TextBuffer.module.exports.TextBuffer.subscribeToFile (c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\text-buffer\lib\text-buffer.js:1089:44)
      at TextBuffer.module.exports.TextBuffer.setPath (c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\text-buffer\lib\text-buffer.js:281:14)
      at new TextBuffer (c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\text-buffer\lib\text-buffer.js:100:14)
      at Project.module.exports.Project.buildBuffer (c:\Program Files (x86)\GitHub Atom\resources\app\src\project.js:369:16)
      at Project.module.exports.Project.bufferForPath (c:\Program Files (x86)\GitHub Atom\resources\app\src\project.js:342:63)
      at Project.module.exports.Project.open (c:\Program Files (x86)\GitHub Atom\resources\app\src\project.js:296:19)
      at Workspace.module.exports.Workspace.openURIInPane (c:\Program Files (x86)\GitHub Atom\resources\app\src\workspace.js:492:31)
      at Workspace.module.exports.Workspace.open (c:\Program Files (x86)\GitHub Atom\resources\app\src\workspace.js:418:19)
      at TreeView.module.exports.TreeView.openSelectedEntry (c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\tree-view\lib\tree-view.js:639:31)
      at TreeView.module.exports.TreeView.entryClicked (c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\tree-view\lib\tree-view.js:383:18)
      at tree-view-file.<anonymous> (c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\tree-view\lib\tree-view.js:171:26)
      at space-pen-div.jQuery.event.dispatch (c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\archive-view\node_modules\atom-space-pen-views\node_modules\space-pen\vendor\jquery.js:4676:9)
      at space-pen-div.elemData.handle (c:\Program Files (x86)\GitHub Atom\resources\app\node_modules\archive-view\node_modules\atom-space-pen-views\node_modules\space-pen\vendor\jquery.js:4360:46)
    The error was thrown from the tree-view package This issue has already been reported.
    
  16. stale commented on Aug 20, 2017

    @stale

    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.

  17. ghost closed this as completedon Sep 3, 2017
  18. lock commented on Mar 30, 2018

    @lock

    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!

  19. ghost locked and limited conversation to collaborators on Mar 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buglinuxnetworkstaleuncaught-exceptionwindows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions