New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot delete .asar file while VS Code is open #646
Comments
@elisee not much we can do here really because Electron decides to treat asar files very special. See electron/electron#1658 |
Ah. Reading the bug you linked, I wonder if VSCode could maybe require |
Maybe, but it's ugly to force everyone to remember to not use fs module. |
Hi Team, I have the same issue with the latest build of vscode. I open my project with vscode, the |
We should try to set the |
Actually we cannot set |
@bpasero This is an annoying problem,every time when I run the build script i have to close vscode first,but my present job require electron,so I have to consider other editor? |
I will see if there is a way to prevent the locking from happening. |
I opened electron/electron#6251 as related upstream issue and hope that Electron can do something about it. |
Pushed a change to treat *.asar as normal files and not directories. It is not 100% possible for us to prevent the locking because it seems a simple As a consequence you can no longer expand and browse in asar files. But that was also never the intent of VS Code to do so in the first place because these files are very special to Electron. |
@weinand thanks, can you open a separate issue on this? I think the original issue should be verified. |
@bpasero I'll create a new issue. |
@weinand good point, though I think that is not a very typical scenario and also not what the users are complaining about. |
I'm running 1.5.3 and this issue still remains I've also tried 'ignoring' the dist folder in my user settings, but that doesn't help either. This is a big problem with using VSCode to develop electron apps. |
@a11smiles what OS are you on? Here is me not being able to reproduce it by opening an Electron app with VS Code on Mac: |
Extracted #13076 |
Hi!
It looks like VS Code opens
.asar
files to make them browsable in the workspace tree view. That sounds helpful, except it seems like a file handle is kept open at all times, preventing some packaging script of mine from deleting.asar
files if I keep VS Code open when running it.Would it be possible to ensure
.asar
files are only opened by VS Code if they are being browsed explicitely in the tree view? or maybe avoid keeping the file handle open on them while idling?I'm running VS Code 0.10.2 on Windows 7 64-bit.
Thanks for a great editor! ♥
The text was updated successfully, but these errors were encountered: