Hi All
It seems like Powershell Studio has some Problems when using Find-PSResource.
The Script just hangs and keeps hanging until manual stop.
Steps to reproduce:
1. Creating a new Windows Forms Script (no matter which PWSH Version)
2. Be sure to trust your Repository (for test you can also use PSGallery)
3. Using Find-PSResource with -Respository and -Name Param
4. Script hangs
5. Comment the line with Find-PSResource will make the whole script work again
I tried Powershell Studio 2022, 2023 and 2024 5.8.246.
Console Output (debug):Running the same code on a direct Powershell 7 Console with same Version works flawlessly.
Is there something i miss?
Thanks and best Regards,
Andreas
It seems like Powershell Studio has some Problems when using Find-PSResource.
The Script just hangs and keeps hanging until manual stop.
Steps to reproduce:
1. Creating a new Windows Forms Script (no matter which PWSH Version)
2. Be sure to trust your Repository (for test you can also use PSGallery)
3. Using Find-PSResource with -Respository and -Name Param
4. Script hangs
5. Comment the line with Find-PSResource will make the whole script work again
I tried Powershell Studio 2022, 2023 and 2024 5.8.246.
Console Output (debug):
Code:
>> Debugging (Scriptname.psf) Script...
>> Platform: V7 64Bit (STA) (Forced)
>> Analyzing Script (Results in Tools Output panel)...
DEBUG: Reading repository info for 'MyRepoName'
DEBUG: In FindPSResource::ProcessResourceNameParameterSet()
DEBUG: Filtering package name(s) on wildcards
DEBUG: In FindHelper::FindByResourceName()
DEBUG: Parameters passed in >>> Name: 'MyModuleName'; ResourceType: 'None'; VersionRange: ''; NuGetVersion: ''; VersionType: 'NoVersion'; Version: ''; Prerelease: 'False'; Tag: ''; Repository: 'MyRepoName'; IncludeDependencies 'False'
DEBUG: Searching through repository 'MyRepoName'
DEBUG: In FindHelper::SearchByNames()
DEBUG: No version specified, package name is specified
DEBUG: In V3ServerAPICalls::FindName()
DEBUG: In V3ServerAPICalls::FindNameHelper()
DEBUG: In V3ServerAPICalls::GetVersionedPackageEntriesFromRegistrationsResource()
DEBUG: In V3ServerAPICalls::GetResourcesFromServiceIndex()
DEBUG: In V3ServerAPICalls::HttpRequestCall()
DEBUG: Request url is 'https://myrepourl/index.json'
Is there something i miss?
Thanks and best Regards,
Andreas
Statistics: Posted by AdamLaFontaine — Mon Jul 08, 2024 1:57 am