-
-
Notifications
You must be signed in to change notification settings - Fork 431
#39 Avoid deleting the workspace when it's still in use #1409
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
Conversation
ca59331
to
25989de
Compare
Save as...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately I am not able to confirm the fix because, even though I have encountered #39 periodically throughout the years of using this application, I never managed to figure out how to reproduce it.
What I have done is try various shenanigans involving workspaces and file watcher on both my Windows and Linux machines to try to break something and didn't manage to find any misbehavior that doesn't also occur with the build from the main
branch.
So at least I can say that I didn't find any regressions.
Thanks for your work to eradicate this confusing error Akos!
I can reproduce it on macOS with the following steps (same as here):
I hope this helps; I could consistently reproduce the issue with these steps 👆 Let me know how it went. Thank you! |
Thanks! I am able to reproduce the bug by following the procedure you provided when using 2.0.0-rc9.4 on both Windows and Linux. When I do the same using the build from this PR, I am not able to reproduce the bug. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM.
A minor remark I've got is that there are still mentions to browser-app
First of all, you need to **set the new version in all the `package.json` files** across the app (`./package.json`, `./arduino-ide-extension/package.json`, `./browser-app/package.json`, `./electron-app/package.json`), create a PR, and merge it on the `main` branch. - https://github.com/kittaakos/arduino-ide/blob/1d3c98190ea58921fdb8ba16112107ef91f79268/.eslintrc.js#L20
- https://github.com/kittaakos/arduino-ide/blob/1d3c98190ea58921fdb8ba16112107ef91f79268/.eslintrc.js#L20
- https://github.com/kittaakos/arduino-ide/blob/%2339/package.json#L51
- https://github.com/kittaakos/arduino-ide/blob/%2339/electron/packager/index.js#L123
Thank you for the remarks. 👍 I will take care of them. (By the way, they're the same.) I do not understand this feedback 👆 Do you want me to update the comment or remove the step? |
- From now on, NSFW service disposes after last reference is removed. No more 10sec delay. - Moved the temp workspace deletion to a startup task. - Can set initial task for the window from electron-main. - Removed the `browser-app`. Closes arduino#39 Signed-off-by: Akos Kitta <[email protected]>
I was just referring to the comment, but I see you already changed it. Thank you! |
Thanks for reviewing it and finding the leftovers. Once the build is green, I merge the PR. |
Motivation
To fix the unable to watch file changes in this large workspace notification when saving a temp sketch.
Change description
browser-app
.Other information
Closes #39
Reviewer checklist