ConsoleGuiTools icon indicating copy to clipboard operation
ConsoleGuiTools copied to clipboard

Module from gallery/built locally does not work in pwsh 7.1

Open yobyot opened this issue 4 years ago • 4 comments
trafficstars

I am unable use either Microsoft.PowerShell.GraphicalTools and Microsoft.PowerShell.ConsoleGuiTools in macOS 11.1 with PowerShell 7.1.

Here are the releases from the modules I built locally: modules

Importing the modules from the gallery or building them locally produces the same result, shown in the animated gif below.

pwsh

If I may make an (unsolicited) editorial comment, it seems like this module is an orphan. Does it have a future? Some of us in the PowerShell community use ogv as a "way of life." Without it, PowerShell isn't really cross-platform "enough," IMHO.

yobyot avatar Dec 23 '20 15:12 yobyot

@yobyot currently work on the Microsoft.PowerShell.GraphicalTools repo is haulted as we wait for MAUI. See this issue about that:

https://github.com/PowerShell/GraphicalTools/issues/101

Can you show us a gif of what you see when you use Microsoft.PowerShell.ConsoleGuiTools?

Keep in mind, the alias is ocgv not ogv (just want be clear about this)

TylerLeonhardt avatar Dec 24 '20 04:12 TylerLeonhardt

I stand corrected. Out-GridView is dead; Out-ConsoleGridView still works in pwsh 7.1. But I really, really miss ogv.

2020-12-24_15-30-07 (1)

yobyot avatar Dec 24 '20 20:12 yobyot

The reason the alias is ocgv instead of ogv is because ogv came back in PowerShell 7. We did the xplat ogv before that happened (before we thought we could ever get original, Windows-only ogv working)

We didn't want ocgv on Windows to trample the ogv alias so we went with ocgv

You could do

Set-Alias ogv Out-ConsoleGridView
Set-Alias Out-GridView Out-ConsoleGridView

In your profile so that you can have that compatibility.

I think this issue, as a whole, is a duplicate of #101 which is the pinned issue on the issues page and is the "announcement" until MAUI is in a better state.

TylerLeonhardt avatar Dec 24 '20 21:12 TylerLeonhardt

Indeed, @TylerLeonhardt: I believe that this should be closed, as https://github.com/PowerShell/GraphicalTools/issues/100#issuecomment-645008475 was.

RokeJulianLockhart avatar Aug 23 '22 13:08 RokeJulianLockhart