-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: Mojo Repl crashes after two tab presses #1796
Comments
Can confirm, but I get a different error, it fails to read a directory.
|
@TrevorMassey this issue is missing a title in form: "[BUG] title" |
Thanks for reporting! @walter-erquinigo This looks like a bug in LLDB, it crashes before we even get to our REPL code AFAICT, wonder if it just isn't prepared to handle empty lines? |
Thanks for the report! |
modularml/mojo#1796 discovered that if you try to complete a space-only line in the REPL on Linux, LLDB crashes. I suspect that editline doesn't behave the same way on linux and on darwin, because I can't replicate this on darwin. Adding a boundary check in the completion code prevents the crash from happening.
modularml/mojo#1796 discovered that if you try to complete a space-only line in the REPL on Linux, LLDB crashes. I suspect that editline doesn't behave the same way on linux and on darwin, because I can't replicate this on darwin. Adding a boundary check in the completion code prevents the crash from happening.
The fix has landed in upstream LLDB and will be available in a future release of our SDK. |
Bug description
Mojo Repl fails after pressing any whitespace followed by a tab
Steps to reproduce
Sample:
I pressed spacebar, then tab, then it crashed.
Same issue occurs regardless of typing two tabs, or space then a tab, or 10 spaces then a tab, or if I write a function definition, which causes an auto-indent, then pressing tab.
Does NOT occur if the line contains any character other than whitespace. In this case, pressing tab causes autocomplete options to pop up, and does not crash.
Does NOT occur regardless of how many spaces I type. Only tabs cause the crash.
I suspect its a bug in autocomplete.
System information
The text was updated successfully, but these errors were encountered: