-
Notifications
You must be signed in to change notification settings - Fork 323
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
Project folder renaming stopped working #6515
Comments
@xvcgreg the directory rename is happening after the IDE is closed because we cannot move an opened project. Can you confirm that the folder is not renamed after the IDE is shut down? |
@4e6 yes, it was a project I created on Monday. But only today when I wanted to zip it I found out that it's not renamed. And yes, I have closed Enso in the mean time ;) |
Also, I cannot use the name 2305031238_shareX.mp4 |
Tried to reproduce with latest nightly but no avail. One thing I noticed was that it takes 1-2 seconds for the finalizers to kick-in/finish, and I was tempted to just ctrl-c and kill it. Not much we could do in that case anyway. |
@hubertp I can confirm - with 2023.5.3 Nightly renaming folders works. |
Thanks for the confirmation. An ability to have a project name without strict validation rules will be implemented in #6356 |
@4e6 It happened again that after Enso shut down it didn't rename the folder:
|
One thing which I'm not seeing at the end of the logs is something along the lines of
That would indicate renaming action being triggered. Lack of it explains why you are seeing the problem. |
Yes, I have noticed that too. I have closed the app normally. And I was running it with debug flag. |
Oh wait. Seeing in the logs
That's a bit unexpected at this stage, right @4e6 ? That would basically mean that the |
I will take over while Dmitry is busy |
I don't see the GUI-side verification here. I see a response from the project manager that replies that the project name is not in upper snake case. @hubertp |
@vitvakatu ah yes, sorry got confused in that error. |
The GUI-side check that was added in #6366 is done by parsing it as a |
So I managed to create theoretically possible scenario that would cause it by adding delays within the implementation of language server:
That way I managed to have a What we are missing, I think, is |
Hubert Plociniczak reports a new STANDUP for yesterday (2023-05-11): Progress: Spent significant amount of time trying to add artificial delays to simulate the reported bug. Investigation was hindered by the fact that it manifest itself in a standalone version due to a race-condition between shutdown triggers. And compilation loop when triggered via Next Day: Next day I will be working on the #6515 task. Provide a fix, now that a reproducible scenario is available. |
This change fixes the rather elusive bug where shutdown hooks could not be fired when shutdown was taking too long and termination was forced. Under the circumstances described in detail in ticket #6515 there was a small chance that we could have a shutdown race condition. Essentially the messages received when client was disconnected and language server forced the termination could lead to language server not sending the public `ProjectClosed` message which triggers shutdown hook. Now we always do. Also made sure that multiple `ProjectClosed` messages don't lead to firing multiple shutdown hooks, which was another possibility.
This change fixes the rather elusive bug where shutdown hooks could not be fired when shutdown was taking too long and termination was forced. Under the circumstances described in detail in ticket #6515 there was a small chance that we could have a shutdown race condition. Essentially the messages received when client was disconnected and language server forced the termination could lead to language server not sending the public `ProjectClosed` message which triggers shutdown hook. Now we always do. Also made sure that multiple `ProjectClosed` messages don't lead to firing multiple shutdown hooks, which was another possibility. No tests as one would have to be able to introduce different delays in various message handlers to simulate the problem. Having ability to do such chaos testing would be nice but it is beyond the scope of this ticket. I was able to reproduce the problem 100% with my specially crafted setup so I'm fairly confident about the change. Closes #6515.
Hubert Plociniczak reports a new STANDUP for the provided date (2023-05-12): Progress: (late standup) Finished a PR for a shutdown race condition. Investigating various caching issues (related to #6584, #6655). Started investigating #6639. It should be finished by 2023-05-12. Next Day: Next day I will be working on the #6639 task. Continue investigation. |
Discord username
No response
What type of issue is this?
Permanent – Occurring repeatably
Is this issue blocking you from using Enso?
Is this a regression?
What issue are you facing?
Renaming of folders stopped working:
Expected behaviour
Folder to be named after the project name
How we can reproduce it?
No response
Screenshots or screencasts
No response
Enso Version
2023.5.2 nightly
Browser or standalone distribution
Standalone distribution
Browser Version or standalone distribution
standalone
Operating System
Windows
Operating System Version
Win11pro 22H2 22621.1555
Hardware you are using
12th Gen Intel(R) Core(TM) i9-12900HK / RTX3060 Laptop / Nvidia Drivers 531.68
The text was updated successfully, but these errors were encountered: