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.

Atom can lock files or folders under some circumstances #3365

@diagramatics

Description

@diagramatics

Instead of vaguely explaining, here are the steps for reproducing the bug:

  1. If you have a Yeoman-created project folder i.e. generator-webapp created project, run grunt serve. It'll create a .tmp file, and I'll assume you haven't had one at first.
  2. When everything goes well expand the folder .tmp in Atom so you can see the subfolders inside.
  3. Stop the grunt process.
  4. Run grunt serve again, and it will run grunt-contrib-clean to delete .tmp.

It won't. .tmp will still exist as a "corrupted file" and you can't delete it by the Windows Explorer. Command line will show Warning: Unable to create directory [path to .tmp folder]" (Error code: EPERM). Use --force to continue. when trying to create a new .tmp folder.

Go to Atom and try to delete it, and the Dev Tools will show the same error: Uncaught Error: EPERM, operation not permitted: [path to .tmp folder]. All you need to do is close the folder again on the sidebar to remove the folder. I also tried the same method to Sublime Text, and it doesn't do the same, so I assume there's a clash between grunt-contrib-clean and Atom's way of handling files.

Atom is 0.123.0, and Windows is 8.1. Command line running Grunt is running as Administrator.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions