Skip to content

Fix BinarySearch type issue in ConvertTo-SourceLineNumber #132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Feb 5, 2025

Conversation

mikebijl
Copy link

@mikebijl mikebijl commented Feb 3, 2025

Fixes #131

This type issue was introduced since Pwsh 7.5.0 is based on .Net 9.
This solution is to type cast the variable and align it to be the same type.


For more details, open the Copilot Workspace session.

Fixes #131

This type issue was introduced since Pwsh 7.5.0 is based on .Net 9.
This solution is to type cast the variable and align it to be the same type.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/PoshCode/ModuleBuilder/issues/131?shareId=XXXX-XXXX-XXXX-XXXX).
@mikebijl
Copy link
Author

mikebijl commented Feb 3, 2025

@Jaykul can you please review my proposal for the type issue in combination with Pwsh 7.5.0

Changed line 61 instead of 76 due to cleaner coding and accomplishing the same
removed comment from previous commit
removed unnecessary whitespace
undo change to parameter type
undo uppercase to lower case change
@mikebijl
Copy link
Author

mikebijl commented Feb 4, 2025

@Jaykul can you please review the PR? I updated the code and reverted any unnecessary changes according the remarks of @dan-hughes and @johlju.

@Jaykul
Copy link
Member

Jaykul commented Feb 5, 2025

Sorry, fixing that build now

@Jaykul
Copy link
Member

Jaykul commented Feb 5, 2025

Obviously I've let the "matrix" test configuration rot -- the tests all passed in the build, but the test matrix that runs the tests on all the different OSes is broken because the workflow is using outdated tasks. I'm happy with this change, and don't see any reason I need to validate this particular change on every OS.

I'm going to merge this, but based on the bit rot, I suspect we haven't set up automatic publishing for this yet ;)

@Jaykul Jaykul merged commit b715cf6 into PoshCode:main Feb 5, 2025
3 of 7 checks passed
@mikebijl mikebijl deleted the fix-binarysearch-type-issue branch February 6, 2025 09:50
@mikebijl
Copy link
Author

mikebijl commented Feb 6, 2025

@Jaykul so do I understand it correctly that the automatic publishing is required for getting it into PowershellGallery for instance?
Is there anything I can help with? Me, I'm not very experienced with Github actions yet... but I'm about to educate myself on it soon. So if any help is needed, feel free to ping.

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.

"Failed to compare two elements in the array." in combination with Pwsh 7.5.0
2 participants