Skip to content

Conversation

@Gijsreyn
Copy link
Contributor

PR Summary

Fixed copy loops with parameter expressions by deferring copy loop unrolling until after parameter context is available.

  • Moved copy loop unrolling from validate_config() (called during initialization) to a new unroll_copy_loops() method
  • Added unroll_copy_loops() calls to all invoke_* methods after parameters are set via set_context()
  • Ensures parameter expressions like parameters('prefix') work correctly within copy loops

PR Context

Fix #1115

@Gijsreyn Gijsreyn force-pushed the gh-1115/main/support-copy-expression-validation branch from 15b2fd6 to 943a1ad Compare September 23, 2025 22:06
@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue Sep 24, 2025
Merged via the queue into PowerShell:main with commit 5325e53 Sep 24, 2025
4 checks passed
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.

Error: Parser: Parameter '<parameterName>' not found in context in copy() loop

2 participants