marimo
marimo copied to clipboard
Copilot and editor bracket/quote closing collide
Describe the bug
Steps:
- Have Copilot integration on in settings
- Start editing a new notebook:
marimo edit bug_test.py - In the blank cell, type by hand (do not paste! do not edit!):
print("Hello
Expected behavior:
- Copilot offers a coherent completion of this trivial statement, which can be directly accepted
Actual behavior:
- The open parentheses and quote automatically trigger close quote and parentheses, but then Copilot's completion shows up with its own close quote and parentheses:
- Pressing Tab accepts this incoherent completion:
- Obviously this code doesn't run:
Environment
From marimo env:
{
"marimo": "0.2.7",
"OS": "Linux",
"OS Version": "6.5.0-15-generic",
"Processor": "x86_64",
"Python Version": "3.11.8",
"Binaries": {
"Chrome": "--",
"Node": "v18.13.0"
},
"Requirements": {
"black": "24.2.0",
"click": "8.1.7",
"jedi": "0.19.1",
"pymdown-extensions": "10.7",
"starlette": "0.37.1",
"tomlkit": "0.12.3",
"typing_extensions": "4.9.0",
"uvicorn": "0.27.1"
}
}
Browser:
Code to reproduce
No response