KittyCAD / modeling-app

The KittyCAD modeling app.
https://kittycad.io/modeling-app/download
MIT License
422 stars 35 forks source link

Code Editor Glitched Out - Erased Everything #4224

Closed jgomez720 closed 3 weeks ago

jgomez720 commented 1 month ago

Description

I was typing and everything gets deleted as I'm typing. Thankfully I have cmd + z, but this is pretty bad. Unfortunately, I haven't been able to reproduce reliably.

KCL

fn ngon = (plane, numSides, radius) => {
  step = 1 / numSides * tau()
  sketch001 = startSketchOn(plane)
    |> startProfileAt([cos(0) * radius, sin(0) * radius], %)
  return reduce([1..numSides], sketch001, (i, sg) => {
    x = cos(step * i) * radius
    y = sin(step * i) * radius
    return lineTo([x, y], sg)
  })
}

ngon('XY', 5, 10)
  |> close(%)

Version

v0.26.0

Recordings/Screenshots

https://github.com/user-attachments/assets/dac6d7ee-3c58-4353-84ed-7eb5d4fcd11f

yeroca commented 1 month ago

It is related to rapid keystrokes when the file manager pane is open, according to Lee. As a work-around, closing the file manager pane keeps this bug from occurring.

franknoirot commented 3 weeks ago

This was fixed by #4242, thanks to the two of you for filing.