Skip to content
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

Adds a Test-Path check when loading modules; Fixes a stack overflow exception when using: scoped variables are remapped #1300

Merged
merged 3 commits into from
May 24, 2024

Conversation

Badgerati
Copy link
Owner

Description of the Change

  • Adds a Test-Path check when loading modules, to prevent issues when using Oh-My-Posh when auto-import modules is enabled. Oh-My-Posh will generate temp random file locations for module imports, but these don't exist when attempting to auto-import them into Pode's internal runspaces.

Fixes a stack overflow exception when using: scoped variables are remapped - this was primarily causing issues with Pode.Web.

Related Issue

Resolves #1296

@Badgerati Badgerati added this to the 2.10.1 milestone May 23, 2024
@Badgerati Badgerati self-assigned this May 23, 2024
@Badgerati Badgerati merged commit a8a0e12 into develop May 24, 2024
30 checks passed
@Badgerati Badgerati deleted the Issue-1296 branch May 24, 2024 18:26
@Badgerati Badgerati mentioned this pull request May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a Test-Path around the line which auto-imports modules into runspaces
1 participant