-
Notifications
You must be signed in to change notification settings - Fork 235
Honor BundledModulesPath when loading modules in PowerShellContextService #1516
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
Closed
dkattan
wants to merge
18
commits into
PowerShell:master
from
dkattan:honor-bundledmodulespath-parameter
Closed
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
26818b3
Added BundledModulesPath to HostStartupInfo object and if it is valid…
dkattan 2888045
Fixed s_bundledModulesPath assignment.
dkattan d0bc52d
Merge branch 'PowerShell:master' into honor-bundledmodulespath-parameter
dkattan e590fad
Fixed missing BundledModulesPath parameter assignment
dkattan 52b16ca
Restored PowerShellEditorServices.Commands.psd1
dkattan d8738f0
removed #if TEST from PowerShellContextService.cs and instead provide…
dkattan ee154b0
removed #if TEST from PowerShellContextService.cs and instead provide…
dkattan b91382b
Merge branch 'honor-bundledmodulespath-parameter' of github.com:dkatt…
dkattan 77186f0
Added logging to CanGetPSReadLineProxy test
dkattan 48d1a96
Adjusted BundledModulesPath, re-enabled Windows test.
dkattan 7037115
Added more logging to tests, implemented additional mechanism to find…
dkattan a0fa3c5
Implemented fix to find the non VSS cached location of the executing …
dkattan 1443baa
Implemented fix to find the non VSS cached location of the executing …
dkattan bda11be
Attempted different fix for relative path to module directory.
dkattan bda40ea
Cleaned up logging
dkattan 01957e6
Removed TEST property. Moved Set-ExecutionPolicy to before attempted …
dkattan 9a045d9
Fixed formatting in PowerShellEditorServices.build.ps1
dkattan e1e70cf
Fixed issue where BundledModulePath was _not_ actually getting set.
dkattan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just FYI I am debugging this test on Windows right now, really want to know why it worked everywhere but there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hah, me too. I think this last change fixed it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this PR should be the first to go in. It made sense to bring in the Changes from #1520 so I'll close that PR as this handles both issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah maybe not, PowerShell 7 | Windows 10 has already failed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
macOS:
executingAssembly /Users/runner/work/1/s/test/PowerShellEditorServices.Test/bin/Debug/netcoreapp3.1/Microsoft.PowerShell.EditorServices.Test.dll
Windows: executingAssembly C:\Users\VssAdministrator\AppData\Local\Temp\b5b3251f-c622-45f2-bc10-c8a646797337\b5b3251f-c622-45f2-bc10-c8a646797337\assembly\dl3\e3727c32\64017e66_b772d701\Microsoft.PowerShell.EditorServices.Test.dll
https://stackoverflow.com/questions/8309411/what-is-cache-appdata-local-assembly-dl3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Evidently we shouldn't be using GetExecutingAssembly().Location as this can return a Volume Shadow Copy cached version of the DLL. We're using it in 9 other places...