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.

Upgrade pathwatcher to ^4.0.1. #5706

Closed

Description

@bolinfest

The main problem with upgrading pathwatcher is that the semantics of exists() have changed from 3.x to 4.x. Previously, it returned a boolean synchronously. In 4.x, existsSync() should be used to return a boolean synchronously and exists() will return a Promise that resolves to a boolean.

Here are PRs to upgrade known uses of exists() in the wild in third-party Atom packages:

leny/atom-tree-ignore#4
vvakame/language-review#9
https://github.com/m1ga/ti-create/pull/2
https://github.com/rackerlabs/atom-cloud-sync/pull/24
radicaled/dart-tools#20

Though from a cursory look through those PRs, I think it might be possible to upgrade safely without breaking those packages because they seem to pull in their own pathwatcher dependencies and instantiate File from those rather than operate on a File that was created by Atom core. Assuming that is the case, then Atom core could use a different version of File than those packages.

Activity

  1. bolinfest commented on Mar 12, 2015

    @bolinfest
    ContributorAuthor

    There are a number of dependent packages in Atom core that also have pathwatcher as a dependency, so those also need to be upgraded:

    atom/archive-view#17
    atom/atom-keymap#73
    atom/dev-live-reload#11
    atom/image-view#32
    atom/markdown-preview#215
    atom/snippets#115
    atom/symbols-view#84
    atom/text-buffer#51
    atom/tree-view#402

    It looks like these were accepted and then reverted because they caused some issues, so I guess there's still some work to do?

  2. lock commented on Jan 23, 2019

    @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!

  3. locked as resolved and limited conversation to collaborators on Jan 23, 2019
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions