Skip to content

Gaze is adding all folders in HOME to watch list #1776

@paulbouwer

Description

@paulbouwer
  • I am on the latest Hyper.app version
  • I have searched the issues of this repo and believe that this is not a duplicate

  • OS version and name: Windows 10 (16179)
  • Hyper.app version: 1.3.1
  • Link of a Gist with the contents of your .hyper.js: Default
  • Relevant information from devtools (CMD+ALT+I on Mac OS, CTRL+SHIFT+I elsewhere): N/A
  • The issue is reproducible in vanilla Hyper.app: Yes

Issue

Relevant to the following hyper issues:

Relevant to the following gaze issues:

About 2 weeks ago I started seeing the following when starting hyper. I wasn't sure what had changed. It was not a new hyper version, but I had just upgraded to the 16176 Windows Insider build - although I'm also sure that didn't cause it - confused ... I started investigating.

image

The only item being added to glaze from hyper for watching seems to be the .hyper.js file in the user's HOME folder. But I noticed (after putting tons of logging into glaze) that it added the .hyper.js file to its watch list, but then also added all the sub-folders in my HOME folder too. This is caused by the following logic within glaze:

Once glaze starts watching additional folders in the HOME folder, there are a number of permission and other types of errors that start happening for various users. In my case above, the OneDrive folders have a specific REPARSE POINT which causes the fs.lstatSync call made by glaze to throw a EINVAL error. I'm adding issues to the glaze and node repos for this.

If hyper could ensure that only the .hyper.js file was watched, then I believe that all of the referenced issues would be resolved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions