You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Select-VSSetupInstance -Latest - is it about install date or version? #40
"the most recent" means most recently installed, which will have a newer InstallDate. I should be checking for the highest version, and if more than one instance has the same version I should pick the one with the latest InstallDate. But now that you call attention to it, I see it's not sorting based on version like I did in vswhere. I'll get that fixed and make sure I have a test covering it.
Heath Stewart (@heaths), I have been experiencing an issue where the -Latest flag is picking my VS 2017 instance that was installed after my VS 2019 instance and I believe this discussion is relevant. @Hadronicus appears to have a solution in pull request #53 to this. I noticed that his pull request has been pending approval for over 5 weeks. Are you waiting on something to approve the pull request? Is there additional work that needs to be done for you to approve it that I'm just not seeing communication for? I'm happy to contribute to the effort if needed. Thanks.
Unfortunately, we're having a publishing issue at the moment I'm trying to sort out. For now, can you expand the ZIP release and make sure all your existing scenarios work? We have code coverage and detected no regressions, but I'd like to get hands on a prerelease before we push a release (once I get all that working again).
I've been running into issues getting Visual Studio's installer to update to the newly released version that are currently blocking me from testing this. I'll provide an update as soon as I have one to give.
I was able to repro the problem and will be sure to add an integration test. The problem occurs when piping instances to Select-VSSetupInstance because records come in one at a time but needed to be sorted all together. If you pass all instances as a single parameter value to Select-VSSetupInstance -Instance it works correctly. As such, all sorting should just be done in EndProcessing. I'll make the changes but we're still having problems publishing at the moment.
Just tested this and it appears to behave as I would expect in my environment now! Thanks for your assistance Heath Stewart (@heaths). I apologize for the delayed response, I just got to this.
Activity
heaths commentedon Mar 15, 2018
"the most recent" means most recently installed, which will have a newer InstallDate. I should be checking for the highest version, and if more than one instance has the same version I should pick the one with the latest InstallDate. But now that you call attention to it, I see it's not sorting based on version like I did in vswhere. I'll get that fixed and make sure I have a test covering it.
Select latest based on version then date
Select latest based on version then date
Remove date comparison from SelectInstanceCommand
pssewell21 commentedon Jul 30, 2019
Heath Stewart (@heaths), I have been experiencing an issue where the -Latest flag is picking my VS 2017 instance that was installed after my VS 2019 instance and I believe this discussion is relevant. @Hadronicus appears to have a solution in pull request #53 to this. I noticed that his pull request has been pending approval for over 5 weeks. Are you waiting on something to approve the pull request? Is there additional work that needs to be done for you to approve it that I'm just not seeing communication for? I'm happy to contribute to the effort if needed. Thanks.
Remove date comparison from SelectInstanceCommand
heaths commentedon Jul 31, 2019
To be honest, I missed this somehow. I've merged this and will get the changes published. Thank you for your contribution!
pssewell21 commentedon Jul 31, 2019
Thank you Heath Stewart (@heaths) and @Hadronicus.
heaths commentedon Jul 31, 2019
Unfortunately, we're having a publishing issue at the moment I'm trying to sort out. For now, can you expand the ZIP release and make sure all your existing scenarios work? We have code coverage and detected no regressions, but I'd like to get hands on a prerelease before we push a release (once I get all that working again).
pssewell21 commentedon Jul 31, 2019
I'll be able to test this tomorrow. Thanks for the info.
pssewell21 commentedon Aug 1, 2019
I've been running into issues getting Visual Studio's installer to update to the newly released version that are currently blocking me from testing this. I'll provide an update as soon as I have one to give.
3 remaining items
heaths commentedon Aug 1, 2019
I was able to repro the problem and will be sure to add an integration test. The problem occurs when piping instances to
Select-VSSetupInstancebecause records come in one at a time but needed to be sorted all together. If you pass all instances as a single parameter value toSelect-VSSetupInstance -Instanceit works correctly. As such, all sorting should just be done inEndProcessing. I'll make the changes but we're still having problems publishing at the moment.Properly sort instances for -Latest
pssewell21 commentedon Sep 21, 2019
Heath Stewart (@heaths), any idea what the timeline looks like on getting this change into a released version of the tool? Thanks.
heaths commentedon Sep 21, 2019
Unfortunately, powershellgallery.com is still giving us issues in production. I've pinged the owner again for a status update.
heaths commentedon Sep 21, 2019
Reopening until published to keep on my radar.
heaths commentedon Oct 1, 2019
Okay, finally got the powershellgallery.com issue resolved and https://www.powershellgallery.com/packages/VSSetup/2.2.15-g62f3905dea was published. Can you give that a try and make sure everything is working as expected? Then I can publish a release version.
pssewell21 commentedon Oct 1, 2019
I'll look into this tomorrow when I get into work. Thanks for the support Heath Stewart (@heaths)
pssewell21 commentedon Oct 3, 2019
Just tested this and it appears to behave as I would expect in my environment now! Thanks for your assistance Heath Stewart (@heaths). I apologize for the delayed response, I just got to this.
Create release
heaths commentedon Oct 4, 2019
2.2.16 with this fix has been released.