René's URL Explorer Experiment


Title: "Failed to compare two elements in the array." in combination with Pwsh 7.5.0 · Issue #131 · PoshCode/ModuleBuilder · GitHub

Open Graph Title: "Failed to compare two elements in the array." in combination with Pwsh 7.5.0 · Issue #131 · PoshCode/ModuleBuilder

X Title: "Failed to compare two elements in the array." in combination with Pwsh 7.5.0 · Issue #131 · PoshCode/ModuleBuilder

Description: I have a Git repo in Azure DevOps where we develop our own Powershell Module. Since this week our build agents are updated with Pwsh 7.5.0 and now our tests are failing on the code coverage part. The building and testing is relying on th...

Open Graph Description: I have a Git repo in Azure DevOps where we develop our own Powershell Module. Since this week our build agents are updated with Pwsh 7.5.0 and now our tests are failing on the code coverage part. T...

X Description: I have a Git repo in Azure DevOps where we develop our own Powershell Module. Since this week our build agents are updated with Pwsh 7.5.0 and now our tests are failing on the code coverage part. T...

Opengraph URL: https://github.com/PoshCode/ModuleBuilder/issues/131

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"Failed to compare two elements in the array.\" in combination with Pwsh 7.5.0","articleBody":"I have a Git repo in Azure DevOps where we develop our own Powershell Module.\n\nSince this week our build agents are updated with Pwsh 7.5.0 and now our tests are failing on the code coverage part.\n\nThe building and testing is relying on the [Sampler Project](https://github.com/gaelcolas/Sampler/blob/718a354ee15152ef8329b5e2598e9936f79e43f2/.build/tasks/JaCoCo.coverage.build.ps1#L384) which on its part is relying on the [Convert-LineNumber](https://github.com/PoshCode/ModuleBuilder/blob/0ade8f4a8c3bf4dfdb2364bdc38051c7418d52d4/Source/Public/ConvertTo-SourceLineNumber.ps1).\n\n```\nERROR: Exception calling \"BinarySearch\" with \"2\" argument(s): \"Failed to compare two elements in the array.\"\nAt C:\\Users\\xxxxx\\Git\\MyModule\\output\\RequiredModules\\Sampler\\0.118.2\\tasks\\JaCoCo.coverage.build.ps1:385 char:23\n+ … edCommands | Convert-LineNumber -ErrorAction 'Stop' -PassThru | Out-N …                                             \n+                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                       \nAt C:\\Users\\xxxxx\\Git\\MyModule\\output\\RequiredModules\\Sampler\\0.118.2\\tasks\\JaCoCo.coverage.build.ps1:246 char:1\n+ task Convert_Pester_Coverage {                                                                                        \n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                        \nBuild FAILED. 16 tasks, 1 errors, 0 warnings 00:02:55.2719609\nConvertTo-SourceLineNumber: C:\\Users\\xxxxx\\Git\\MyModule\\output\\RequiredModules\\Sampler\\0.118.2\\tasks\\JaCoCo.coverage.build.ps1:385:23\nLine |                                                                                                                  \n 385 |  … edCommands | Convert-LineNumber -ErrorAction 'Stop' -PassThru | Out-N …                                       \n     |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                 \n     | Exception calling \"BinarySearch\" with \"2\" argument(s): \"Failed to compare two elements in the array.\"\n\n```\n\nThere are 2 things I can do to prevent the Sample build not to fail (I can test/reproduce it locally):\n1. Disable CodeCoverage by setting the threshold to '0'\n2. Change my Pwsh version back from 7.5.0 to an older version like 7.4.x or earlier.\n\n\nIf someone could have a look at this? That would be great. I didn't see anything that triggered me.","author":{"url":"https://github.com/bijlm","@type":"Person","name":"bijlm"},"datePublished":"2025-01-30T16:37:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":19},"url":"https://github.com/131/ModuleBuilder/issues/131"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:024ef924-5b54-1549-5d5b-ff49d1e4b6dc
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDB92:374375:38D67:50C0E:69787D85
html-safe-nonce233c3b1767ceeb3968263dd829eec3115849d753b4e6ff44627dff3b06e6a675
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjkyOjM3NDM3NTozOEQ2Nzo1MEMwRTo2OTc4N0Q4NSIsInZpc2l0b3JfaWQiOiI3ODEzODEwOTg2NjUyNTY0ODY5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5f9c1cdcf12ed08b9f0ec970cbeda8300e1d6f0bfb2bf6fa6e3619effc0fc647
hovercard-subject-tagissue:2821296793
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PoshCode/ModuleBuilder/131/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7e5bb48a0d4943ea0b75e2fae5a30ec9f72cbf5b146342daba3bba97d7bc9551/PoshCode/ModuleBuilder/issues/131
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7e5bb48a0d4943ea0b75e2fae5a30ec9f72cbf5b146342daba3bba97d7bc9551/PoshCode/ModuleBuilder/issues/131
og:image:altI have a Git repo in Azure DevOps where we develop our own Powershell Module. Since this week our build agents are updated with Pwsh 7.5.0 and now our tests are failing on the code coverage part. T...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebijlm
hostnamegithub.com
expected-hostnamegithub.com
None2981c597c945c1d90ac6fa355ce7929b2f413dfe7872ca5c435ee53a24a1de50
turbo-cache-controlno-preview
go-importgithub.com/PoshCode/ModuleBuilder git https://github.com/PoshCode/ModuleBuilder.git
octolytics-dimension-user_id5641451
octolytics-dimension-user_loginPoshCode
octolytics-dimension-repository_id18412121
octolytics-dimension-repository_nwoPoshCode/ModuleBuilder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id18412121
octolytics-dimension-repository_network_root_nwoPoshCode/ModuleBuilder
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release520b65a872113b919c1bbdb03834a50af15859fd
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/PoshCode/ModuleBuilder/issues/131#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FPoshCode%2FModuleBuilder%2Fissues%2F131
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FPoshCode%2FModuleBuilder%2Fissues%2F131
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PoshCode%2FModuleBuilder
Reloadhttps://patch-diff.githubusercontent.com/PoshCode/ModuleBuilder/issues/131
Reloadhttps://patch-diff.githubusercontent.com/PoshCode/ModuleBuilder/issues/131
Reloadhttps://patch-diff.githubusercontent.com/PoshCode/ModuleBuilder/issues/131
PoshCode https://patch-diff.githubusercontent.com/PoshCode
ModuleBuilderhttps://patch-diff.githubusercontent.com/PoshCode/ModuleBuilder
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FPoshCode%2FModuleBuilder
Fork 59 https://patch-diff.githubusercontent.com/login?return_to=%2FPoshCode%2FModuleBuilder
Star 492 https://patch-diff.githubusercontent.com/login?return_to=%2FPoshCode%2FModuleBuilder
Code https://patch-diff.githubusercontent.com/PoshCode/ModuleBuilder
Issues 8 https://patch-diff.githubusercontent.com/PoshCode/ModuleBuilder/issues
Pull requests 0 https://patch-diff.githubusercontent.com/PoshCode/ModuleBuilder/pulls
Actions https://patch-diff.githubusercontent.com/PoshCode/ModuleBuilder/actions
Projects 0 https://patch-diff.githubusercontent.com/PoshCode/ModuleBuilder/projects
Wiki https://patch-diff.githubusercontent.com/PoshCode/ModuleBuilder/wiki
Security 0 https://patch-diff.githubusercontent.com/PoshCode/ModuleBuilder/security
Insights https://patch-diff.githubusercontent.com/PoshCode/ModuleBuilder/pulse
Code https://patch-diff.githubusercontent.com/PoshCode/ModuleBuilder
Issues https://patch-diff.githubusercontent.com/PoshCode/ModuleBuilder/issues
Pull requests https://patch-diff.githubusercontent.com/PoshCode/ModuleBuilder/pulls
Actions https://patch-diff.githubusercontent.com/PoshCode/ModuleBuilder/actions
Projects https://patch-diff.githubusercontent.com/PoshCode/ModuleBuilder/projects
Wiki https://patch-diff.githubusercontent.com/PoshCode/ModuleBuilder/wiki
Security https://patch-diff.githubusercontent.com/PoshCode/ModuleBuilder/security
Insights https://patch-diff.githubusercontent.com/PoshCode/ModuleBuilder/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/PoshCode/ModuleBuilder/issues/131
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/PoshCode/ModuleBuilder/issues/131
#132https://github.com/PoshCode/ModuleBuilder/pull/132
"Failed to compare two elements in the array." in combination with Pwsh 7.5.0https://patch-diff.githubusercontent.com/PoshCode/ModuleBuilder/issues/131#top
#132https://github.com/PoshCode/ModuleBuilder/pull/132
https://github.com/bijlm
https://github.com/bijlm
bijlmhttps://github.com/bijlm
on Jan 30, 2025https://github.com/PoshCode/ModuleBuilder/issues/131#issue-2821296793
Sampler Projecthttps://github.com/gaelcolas/Sampler/blob/718a354ee15152ef8329b5e2598e9936f79e43f2/.build/tasks/JaCoCo.coverage.build.ps1#L384
Convert-LineNumberhttps://github.com/PoshCode/ModuleBuilder/blob/0ade8f4a8c3bf4dfdb2364bdc38051c7418d52d4/Source/Public/ConvertTo-SourceLineNumber.ps1
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.