Occasional error: An unexpected error occurred: "ENOTEMPTY: directory not empty, rmdir...
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 44.7k
- Forks
- 3.6k
- Avg merge
- 21m
- Merged PRs (30d)
- 1
Description
-
I am on the latest Hyper.app version
-
I have searched the issues of this repo and believe that this is not a duplicate
-
macOS 10.14.3 (Mojave)
-
Hyper 2.1.2 (stable)
-
https://gist.github.com/jschuur/8c0e4135080979abb020378caee53d29
-
Relevant information from devtools: N/A
-
The issue is reproducible in vanilla Hyper.app
Issue
Hyper occasionally returns the following error (previewed in a macOS notification):
error An unexpected error occurred: "ENOTEMPTY: directory not empty, rmdir '/Users/jschuur/.hyper_plugins/node_modules/electron/dist/Electron.app/Contents/Resources'".
I don't know what is trying to delete that directory, but it doesn't sound safe to do so, since it's related to Electron. I can't trigger this error specifically, it just crops up at seemingly random a few times a day.
How do I clean this up and stop the notification?
I did un/install a few plugins through two different methods: by editing the config file directly, and by using the CLI. Maybe something got mixed up when it was trying to do cleanup after I uninstalled some?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked gist and the Electron.app path in .hyper_plugins/node_modules, then review the two plugin-management entry points mentioned: direct config edits and the CLI. Reproduce the uninstall and cleanup flow on macOS; done means identifying why the ENOTEMPTY notification occurs and preventing the recurring error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, macos, node.js, typescript
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100