Skip to content

InLocal called with bad handler reference #6212

@kubukoz

Description

@kubukoz

Describe and demonstrate the bug
This should be written as a ucm transcript if possible, calling out the unexpected behavior in the text. e.g.

  1. Pull this: https://share.unison-lang.org/@kubukoz/unison-fun/code/@kubukoz/inlocal-bug
  2. Run this:
unison-fun/inlocal-bug> run resultIO

Result:

❗️
  
  Sorry – I’ve encountered a Unison runtime error.
  
    InLocal called with bad handler reference
    Closure {unClosure = GForeign (Wrap IORef _)}
  
  Please report it at https://github.com/unisonweb/unison/issues/new/choose.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • ucm --version: 1.1.1
  • OS/Architecture: macOS 15.6, Apple Silicon

Additional context

There was a "I found some suspicious recursive ability handlers." warning before updating the codebase.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions