[Lldb-commits] [lldb] [lldb-dap] Fix Completions Request crash (PR #176211)
Ebuka Ezike via lldb-commits
lldb-commits at lists.llvm.org
Thu Jan 15 16:19:48 PST 2026
================
@@ -273,6 +281,10 @@ def test_auto_completions(self):
],
)
+ # TODO: Note we are not checking the result because the `expression --` command adds an extra character
----------------
da-viper wrote:
there is currently a bug in the `expression --` completion in the normal cli.
```cpp
int main() {
int ƒake_f = 100;
return 0; // breakpoint
}
```
stopping at the breakpoint type
`expression -- f|` the cursor is after the f press tab. you will see it adds another `ƒ` character.
you can also try it from the python script
```py
(lldb) script
>>> matches = lldb.SBStringList()
>>> desc = lldb.SBStringList()
>>> inter = lldb.debugger.GetCommandInterpreter()
>>> line = "expression -- ƒ"
>>> cursor = len(line) + 1 # because ƒ is two bytes long
>>> inter.HandleCompletionWithDescriptions(line, cursor, 0, 10, matches, desc)
1
>>> for match in matches:
... print(match)
...
ƒake_f # the common prefix
ƒƒake_f
```
https://github.com/llvm/llvm-project/pull/176211
More information about the lldb-commits
mailing list