Closed FH-Inway closed 2 years ago
Found a work around by enabling the environment variable VSTEAM_NO_MODULE_MESSAGES
:
$env:VSTEAM_NO_MODULE_MESSAGES = $true
After that, the New-PSDrive
cmdlet worked and the account was mounted as a drive.
Thanks. That is a new feature and you actually used a valid variable to deactivate it.
It is just not documented. But the exception is not supposed to happen. I will look into it.
@FH-Inway would you be so kind to check whether #456 works for you? If no problems come up for you I would merge it.
@SebastianSchuetze I tried to do a build to test the changes, but ran into issues during the build. The changes look otherwise good to me, so I think you can go ahead with the merge. In the worst case, the fixed url still does not work for some reason, which can be adressed with the workaround.
My curiosity got the better of me and I looked into the errors I got from the build script. Turns out I was using the wrong PowerShell version (5.1 instead of 7) and missing the .NET Core 3.1 SDK. You are probably thinking "duh, of course you need those" and I'm sure that if I wasn't a total newbie at this module, it would probably be obvious to me, too. Still, you might want to consider adding those requirements to the build information.
Long story short, I was able to build branch SebastianSchuetze/issue455 and able to verify that it fixes the issue :+1:
Steps to reproduce
Expected behavior
I expected that a drive for my account is mounted as described in https://methodsandpractices.github.io/vsteam-docs/docs/modules/vsteam/about/about_vsteam_provider.help/
Actual behavior?
I had the following actual outcome:
From the
TargetObject
property of theGet-Error
cmdlet, it seems that the issue is a call to https://raw.githubusercontent.com/MethodsAndPractices/vsteam/topic/addModuleLoadingNotifications/.github/moduleMessages.jsonThis seems to be a recent addition, see https://github.com/MethodsAndPractices/vsteam/commit/682186de6d24e70dbddcbc4d720c620aac77567c
Information from
Get-Error
:On Which OS have you tried it?
Windows
What was your server version?
Azure DevOps Services
Other server version
No response
Log output of used API
Log output of $PSVersionTable