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

[BUG]: Code deletes after adding a feature with an earlier error #4459

Open
DylanBryant opened this issue Nov 11, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@DylanBryant
Copy link

Describe the bug

If you break a line of your code upstream, do not see it, and go to begin a new sketch, all of your code will delete itself. You can bring it back with cntrl+z and even correct the error, but it will still not render the geometry and delete all your code again.

*Not universal, seems to depend on what type of features you break or have in your project.

Steps to Reproduce

  1. Start a new project
  2. Extrude a sketch
  3. Extrude another sketch off of the top of the previous extrusion
  4. Go back up to an earlier line in your code and change something so it creates an error (For example I changed a variable name to a hole command in the video below)
  5. Select a new bottom line in the code to add new features
  6. Select "start sketch" and select a plane.
  7. (*This will make all your code delete itself)
  8. Ctrl + Z to undo and try to recover the code
  9. Correct the error you created in the code
  10. Continue on and try to add any new feature
  11. (*The code will delete itself again, even though the error is fixed)

Expected Behavior

  • I expected my code to reappear after escaping the new command that caused my code to disappear.
  • More importantly, I expected to be able to ctrl+Z back to a point before the error and correct it. But the code deleted itself again. I had to copy/paste the code into a new project to get past the bug.

(I understand the earlier code/geometry hiding itself if I tried to add new features when my code was broken. CATIA hides geometry if you break something upstream too. But CATIA allows you to go fix the error in the feature tree and move on)

Screenshots and Recordings

Disappearing.Code.mp4

Desktop OS

Windows 10

Browser

No response

Version

v0.26.4

Additional Context

I can replicate it every time drawing similar things to the video. I tried other geometry and errors to replicate it, not all do. A lot of the time, it autocorrects your error back to how it previously was in order to not break once you try to start step 6.
It will take some more time for me to narrow down further exactly when it happens vs does not happen.

@DylanBryant DylanBryant added the bug Something isn't working label Nov 11, 2024
@pierremtb
Copy link
Collaborator

Can reproduce on macOS too. Thanks for reporting with as much details @DylanBryant!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants