marimo-team / marimo

A reactive notebook for Python — run reproducible experiments, execute as a script, deploy as an app, and version with git.
https://marimo.io
Apache License 2.0
6.3k stars 204 forks source link

cursor location sometimes locked and not consistent with display #1964

Open ggggggggg opened 1 month ago

ggggggggg commented 1 month ago

Describe the bug

I used the mouse to click on a place I wanted to type, then typed and the cursor jumped to a different location and entered my character. I then deleted that, click the mouse to move where I want to type, and typed again. The cursor jumped back. This state persisted until I did "restart kernel".

Environment

{ "marimo": "0.7.17", "OS": "Windows", "OS Version": "10", "Processor": "Intel64 Family 6 Model 85 Stepping 4, GenuineIntel", "Python Version": "3.10.11", "Binaries": { "Browser": "126.0.6478.127", "Node": "--" }, "Requirements": { "click": "8.1.7", "importlib-resources": "missing", "jedi": "0.19.0", "markdown": "3.6", "pymdown-extensions": "10.8.1", "pygments": "2.16.1", "tomlkit": "0.12.5", "uvicorn": "0.30.1", "starlette": "0.37.2", "websockets": "12.0", "typing-extensions": "4.7.1", "ruff": "0.5.5" } }

Code to reproduce

I haven't been able to consistently reproduce it, but it has happened to me multiple times across a few days.

akshayka commented 1 month ago

Thanks. We've heard this from several users now. We'll try to repro and fix.

akshayka commented 1 month ago

An example of this issue raised by another user on Discord:

"Got an error at the end of a notebook, when I start typing, it somehow jumps back a character or two to inside the previous )"' character"

https://github.com/user-attachments/assets/3f6e442c-3e78-4868-849c-1f9024ffe7c9