Title: RunspacePool mutates the PSModulePath · Issue #9921 · PowerShell/PowerShell · GitHub
Open Graph Title: RunspacePool mutates the PSModulePath · Issue #9921 · PowerShell/PowerShell
X Title: RunspacePool mutates the PSModulePath · Issue #9921 · PowerShell/PowerShell
Description: From PowerShell/vscode-powershell#2008. Related to #6850. When using a RunspacePool (common in hosted and remote contexts), the PSModulePath gets reset whenever a runspace is opened. This occurs because ModuleIntrinsics sets the module p...
Open Graph Description: From PowerShell/vscode-powershell#2008. Related to #6850. When using a RunspacePool (common in hosted and remote contexts), the PSModulePath gets reset whenever a runspace is opened. This occurs be...
X Description: From PowerShell/vscode-powershell#2008. Related to #6850. When using a RunspacePool (common in hosted and remote contexts), the PSModulePath gets reset whenever a runspace is opened. This occurs be...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/9921
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"RunspacePool mutates the PSModulePath","articleBody":"From https://github.com/PowerShell/vscode-powershell/issues/2008.\r\n\r\nRelated to https://github.com/PowerShell/PowerShell/issues/6850.\r\n\r\nWhen using a RunspacePool (common in hosted and remote contexts), the PSModulePath gets reset whenever a runspace is opened.\r\n\r\nThis occurs because `ModuleIntrinsics` sets the module path at constructor time:\r\n\r\nhttps://github.com/PowerShell/PowerShell/blob/66c628f1b0992312e66830a6f660e1fe99129863/src/System.Management.Automation/engine/Modules/ModuleIntrinsics.cs#L41-L47\r\n\r\nas if it were a process-singleton.\r\n\r\nEvery time a runspace is opened in PowerShell, the whole process gets its PSModulePath reset, which is a problem for things like EditorServices where we use a runspace to run analysis in the background, but users expect to be able to modify the PSModulePath in the IntegratedConsole.","author":{"url":"https://github.com/rjmholt","@type":"Person","name":"rjmholt"},"datePublished":"2019-06-18T00:50:09Z","url":"https://github.com/PowerShell/PowerShell/issues/9921"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:90dec04a-f799-55c9-0a23-c11d4f811ae5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D816:2E91B1:35D52:47BF1:6AFD39B6 |
| html-safe-nonce | 69f9886a3de2734199f92abf60c7cd1af99b82dd221a48480da2df3ee31e2eb4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODE2OjJFOTFCMTozNUQ1Mjo0N0JGMTo2QUZEMzlCNiIsInZpc2l0b3JfaWQiOiI3NDY5NTI2MTQ2MjM3Njc1OTU4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e9b0d93c96d9dea176cb1906ee7ddb33a5cea0afdbdc4cbdb07b690b0f043d76 |
| hovercard-subject-tag | issue:457209139 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/9921/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7cc1c68a760f13157f0d2256132ad4bcfa52800264e623f2221539f1c5b5af60/PowerShell/PowerShell/issues/9921 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7cc1c68a760f13157f0d2256132ad4bcfa52800264e623f2221539f1c5b5af60/PowerShell/PowerShell/issues/9921 |
| og:image:alt | From PowerShell/vscode-powershell#2008. Related to #6850. When using a RunspacePool (common in hosted and remote contexts), the PSModulePath gets reset whenever a runspace is opened. This occurs be... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rjmholt |
| hostname | github.com |
| expected-hostname | github.com |
| None | bdbacc25b921224ff0befcb9e629560a1255be51aec9991d6e3f95b5e9151474 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 556dd37bb0aceffb25724e151b5d858b3265b40b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width