Describe the Bug
I was using Cursor to develop an Electron + Vue3 program. When I use WebStorm, everything works normally. But when I use Cursor to run the commands electron-forge make or electron-forge package, the terminal always reports this error message:
Error: EBUSY: resource busy or locked, unlink ‘xxx\out\xxx-win32-x64\resources\app.asar’
It works fine if I close Cursor and wait for a minute.
When I try to delete this file in Windows Explorer, it reminds me that the file is already opened by Cursor.
Other:
This is my .cursorignore file:
.idea
.vscode
android
dist
node_modules
out
app.asar is in the out folder, which is already included in the ignore list.
Steps to Reproduce
- open electron project by Cursor
- build electron app by electron-forge or electron-builder
Expected Behavior
The Electron app can be built while Cursor does not lock the app.asar file.
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.1.6 (user setup)
VSCode Version: 1.96.2