Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad match in shell completion #8626

Closed
williamthome opened this issue Jun 28, 2024 · 1 comment
Closed

Bad match in shell completion #8626

williamthome opened this issue Jun 28, 2024 · 1 comment
Assignees
Labels
bug Issue is reported as a bug team:VM Assigned to OTP team VM

Comments

@williamthome
Copy link
Contributor

Describe the bug
When starting an expression in the shell with begin and pressing the TAB key in a tuple after =, the shell crashes.

To Reproduce
By running erl and typing in the shell

begin {ok, Foo} = { % TAB

It crashes with the following error

*** ERROR: Shell process terminated! ***
=ERROR REPORT==== 28-Jun-2024::13:00:39.449474 ===
Error in process <0.71.0> with exit value:
{{badmatch,[]},
 [{edlin_context,over_map_record_or_tuple,1,
                 [{file,"edlin_context.erl"},{line,391}]},
  {edlin_context,over_to_opening1,2,[{file,"edlin_context.erl"},{line,339}]},
  {edlin_context,over_to_opening,1,[{file,"edlin_context.erl"},{line,328}]},
  {edlin_context,get_context,2,[{file,"edlin_context.erl"},{line,248}]},
  {edlin_expand,expand,3,[{file,"edlin_expand.erl"},{line,165}]},
  {group,get_line1,5,[{file,"group.erl"},{line,734}]},
  {group,get_chars_loop,10,[{file,"group.erl"},{line,518}]},
  {group,io_request,6,[{file,"group.erl"},{line,213}]}]}

erlang_otp_shell_bug

Expected behavior
No errors.

Affected versions
I've tested only in OTP-27.

@williamthome williamthome added the bug Issue is reported as a bug label Jun 28, 2024
@jhogberg jhogberg added the team:VM Assigned to OTP team VM label Jul 1, 2024
@frazze-jobb frazze-jobb self-assigned this Jul 3, 2024
@williamthome
Copy link
Contributor Author

I'm closing this since it has been solved in #8638.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is reported as a bug team:VM Assigned to OTP team VM
Projects
None yet
Development

No branches or pull requests

3 participants