Skip to content

Prevent transforming of async expressions#363

Merged
slozier merged 1 commit into
IronLanguages:mainfrom
BCSharp:asyncdebug_skip
Jun 17, 2026
Merged

Prevent transforming of async expressions#363
slozier merged 1 commit into
IronLanguages:mainfrom
BCSharp:asyncdebug_skip

Conversation

@BCSharp

@BCSharp BCSharp commented Jun 17, 2026

Copy link
Copy Markdown
Member

The current debug instrumentation machinery has no understanding of the new AsyncExpression and AsyncEnumerableExpression and hard-fails trying to transform them.

This PR prevents the existing mechanism descending into those expressions. It prevents crashes when instrumentation is enabled, but it also leaves async expressions un-debuggable — for now. The debug instrumentation of async expressions deserves it own PR.

When used in IronPython, it will "resolve" IronLanguages/ironpython3#2057. "Resolve" in quotes because the crash is gone, but instrumentation is still not implemented (this is already true for .NET-based coroutines, though — i.e. no crash, no instrumentation).

@BCSharp BCSharp marked this pull request as ready for review June 17, 2026 21:03

@slozier slozier left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@slozier slozier merged commit 522bf37 into IronLanguages:main Jun 17, 2026
8 checks passed
@BCSharp BCSharp deleted the asyncdebug_skip branch June 17, 2026 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants