Skip to content
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

Component Browser creates node not visible in the graph editor until Enso restart #6395

Closed
2 tasks
xvcgreg opened this issue Apr 24, 2023 · 12 comments · Fixed by #6514
Closed
2 tasks

Component Browser creates node not visible in the graph editor until Enso restart #6395

xvcgreg opened this issue Apr 24, 2023 · 12 comments · Fixed by #6514
Assignees

Comments

@xvcgreg
Copy link

xvcgreg commented Apr 24, 2023

Discord username

No response

What type of issue is this?

Intermittent – Occurring irregularly

Is this issue blocking you from using Enso?

  • Yes, I can't use Enso because of this issue.

Is this a regression?

  • Yes, previous version of Enso did not have this issue.

What issue are you facing?

When I open project that I have worked previously on it opens with one additional node in the scene. It seems that the Component Browser on close with esc key leaves something behind that's not shown in the graph editor. I have managed to reproduce it when I have opened project created on earlier version of Enso (2023.3.25) with a newer one (this time it was 2023.4.18). Also I have noticed it on several other occasions but always assumed I have closed the CB wrongly, please watch attached video when I restart Enso several times and the node appears back.

Expected behaviour

When I delete a node it stays that way - deleted.

How we can reproduce it?

No response

Screenshots or screencasts

2304241450_shareX.mp4

Enso Version

2023.4.18

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

@wdanilo
Copy link
Member

wdanilo commented Apr 24, 2023

@xvcgreg please record logs as well.

@farmaazon
Copy link
Contributor

farmaazon commented Apr 24, 2023

We have function restore_temporary_changes in module model. I don't know why just don't call it on project open - it should fix this issue.

@wdanilo
Copy link
Member

wdanilo commented Apr 24, 2023

@farmaazon but the issue is that when creating the node in component browser it disappears immediately (see the Gregs video).

@vitvakatu
Copy link
Contributor

vitvakatu commented Apr 24, 2023

It looks to me that the project is not saved between restarts, and we always see the same node on the video.

@farmaazon
Copy link
Contributor

farmaazon commented Apr 24, 2023

@farmaazon but the issue is that when creating the node in component browser it disappears immediately (see the Gregs video).

No, the task description is completely different:

When I open project that I have worked previously on it opens with one additional node in the scene. It seems that the Component Browser on close with esc key leaves something behind that's not shown in the graph editor. I have managed to reproduce it when I have opened project created on earlier version of Enso (2023.3.25) with a newer one (this time it was 2023.4.18). Also I have noticed it on several other occasions but always assumed I have closed the CB wrongly, please watch attached video when I restart Enso several times and the node appears back.

As I understand, the node disappears in the video, because Greg is pressing Esc. The problem is that the node reappears.

@xvcgreg could you confirm?

@xvcgreg
Copy link
Author

xvcgreg commented Apr 24, 2023

A mix of those two worlds actually. I spotted this issue the first time when I have been recording 101 vid and mistakenly typed the wrong function in the node. I pressed the ESC key to abort node creation, closed the project, and saw the node that creation I have previously aborted present on the next open of the project.

In the video above I'm deleting this node, and somehow the project isn't saving this change between sessions.

@hubertp
Copy link
Collaborator

hubertp commented Apr 25, 2023

In general, all pending file saves are forced on project close. So if the project was closed correctly you shouldn't see any difference. It would probably be good to verify it with the logs and the contents of the project after it is closed but before it is re-opened.

@hubertp hubertp self-assigned this Apr 25, 2023
@hubertp hubertp moved this from ❓New to 📤 Backlog in Issues Board Apr 25, 2023
@jdunkerley jdunkerley added this to the Design Partners milestone Apr 25, 2023
@hubertp hubertp removed the triage label Apr 26, 2023
@xvcgreg
Copy link
Author

xvcgreg commented Apr 27, 2023

I have launched today's Enso build and was greeted with this issue (a node that was not there when I left that project 2 days ago). I tried to reproduce it today with recording and logging on but failed to do so in 30mins of tries. As soon as I will catch it on camera with logs I'll post it here.

@hubertp
Copy link
Collaborator

hubertp commented May 1, 2023

Tried to reproduce but no avail. Will dig into implementation to see if this is really possible on the language-server side.

@enso-bot
Copy link

enso-bot bot commented May 2, 2023

Hubert Plociniczak reports a new STANDUP for yesterday (2023-05-01):

Progress: Failed to reproduce #6395 locally. Instead went straight to the code and came to the conclusion that it is possible that on close a pending save would not be triggered, at least in theory. I have a fix but writing a test that simulates the scenario is pending. Worked on minor fixes to LS while I poke around. It should be finished by 2023-05-02.

Next Day: Next day I will be working on the #6395 task. Figure out how to design a test that simulates the problem.

@hubertp hubertp moved this from 🔧 Implementation to 🌟 Q/A review in Issues Board May 3, 2023
@hubertp hubertp moved this from 🌟 Q/A review to 👁️ Code review in Issues Board May 3, 2023
@enso-bot
Copy link

enso-bot bot commented May 3, 2023

Hubert Plociniczak reports a new STANDUP for yesterday (2023-05-02):

Progress: More debugging revealed a better way to fix the potential problem and write the test. Started investigating import problem encountered by Radek while adding new library component. Found where the problem is, just need to figure out the proper fix and a minimal reproducible test-case. It should be finished by 2023-05-02.

Next Day: Next day I will be working on the #6395 task. Work on the test-case for the import problem.

@mergify mergify bot closed this as completed in #6514 May 3, 2023
mergify bot pushed a commit that referenced this issue May 3, 2023
Force pending saves when JsonSession is terminated for the client.

Potentially closes #6395.
@github-project-automation github-project-automation bot moved this from 👁️ Code review to 🟢 Accepted in Issues Board May 3, 2023
@hubertp
Copy link
Collaborator

hubertp commented May 4, 2023

@xvcgreg @sylwiabr If you notice this again, please reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

6 participants