Skip to content

Pal mass processing bugs#2

Draft
cursor[bot] wants to merge 1 commit intocursor/performance-counter-webform-a43dfrom
cursor/pal-mass-processing-bugs-f473
Draft

Pal mass processing bugs#2
cursor[bot] wants to merge 1 commit intocursor/performance-counter-webform-a43dfrom
cursor/pal-mass-processing-bugs-f473

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor bot commented Feb 9, 2026

Fixes three bugs preventing correct mass-processing, including parallel scriptblock parameter handling, non-existent path resolution, and master report sorting.

The parallel processing loop failed because param($blgPath) in ForEach-Object -Parallel does not receive pipeline input; it now correctly uses $_. Get-RelativePath no longer errors on non-existent paths by checking Test-Path before Resolve-Path. The master report generation is fixed by correcting the Sort-Object syntax for multiple properties.


…th on missing files, Sort-Object syntax

- Replace param($blgPath) with $blgPath = $_ in ForEach-Object -Parallel block,
  since -Parallel delivers pipeline items via $_ not param() binding
- Handle non-existent paths in Get-RelativePath by falling back to
  [IO.Path]::GetFullPath() when Resolve-Path would fail
- Fix Sort-Object multi-property syntax from invalid per-property -Descending
  flags to a single comma-separated property list with one -Descending switch
@cursor
Copy link
Copy Markdown
Author

cursor bot commented Feb 9, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@cursor cursor bot mentioned this pull request Feb 9, 2026
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.

1 participant