Coder Social home page Coder Social logo

filetype's People

Contributors

friedrichweinmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

filetype's Issues

Can't install on PowerShell Core 6 / PowerShell 7 preview

Something related to PSFramework causes Install-Module FileType to fail:

PS 6.2.3 C:/WINDOWS/system32> install-module filetype -force -verbose                                                   VERBOSE: Acquiring providers for assembly: C:\program files\powershell\6\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.MetaProvider.PowerShell.dll                                                               VERBOSE: Acquiring providers for assembly: C:\program files\powershell\6\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.ArchiverProviders.dll                                                                     VERBOSE: Acquiring providers for assembly: C:\program files\powershell\6\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.NuGetProvider.dll                                                                         VERBOSE: Acquiring providers for assembly: C:\program files\powershell\6\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.CoreProviders.dll                                                                         VERBOSE: Using the provider 'PowerShellGet' for searching packages.                                                     VERBOSE: The -Repository parameter was not specified.  PowerShellGet will use all of the registered repositories.       VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.                                        VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2/' and PackageManagementProvider is 'NuGet'.VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='filetype'' for ''.       VERBOSE: Total package yield:'1' for the specified package 'filetype'.                                                  VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.                                        VERBOSE: The specified Location is 'https://www.poshtestgallery.com/api/v2/' and PackageManagementProvider is 'NuGet'.  VERBOSE: Searching repository 'https://www.poshtestgallery.com/api/v2/FindPackagesById()?id='filetype'' for ''.         VERBOSE: Total package yield:'0' for the specified package 'filetype'.                                                  VERBOSE: Performing the operation "Install-Module" on target "Version '1.0.2' of module 'FileType'".                    VERBOSE: The installation scope is specified to be 'CurrentUser'.                                                       VERBOSE: The specified module will be installed in 'C:\Users\steph\OneDrive\Documents\PowerShell\Modules'.              VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.                                    VERBOSE: Downloading module 'FileType' with version '1.0.2' from the repository 'https://www.powershellgallery.com/api/v2/'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='FileType'' for ''.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSFramework'' for ''.
VERBOSE: InstallPackage' - name='PSFramework', version='1.0.35',destination='C:\Users\steph\AppData\Local\Temp\1674069492'
VERBOSE: DownloadPackage' - name='PSFramework', version='1.0.35',destination='C:\Users\steph\AppData\Local\Temp\1674069492\PSFramework.1.0.35\PSFramework.1.0.35.nupkg', uri='https://www.powershellgallery.com/api/v2/package/PSFramework/1.0.35'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/PSFramework/1.0.35'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/PSFramework/1.0.35'.
VERBOSE: Completed downloading 'PSFramework'.
VERBOSE: InstallPackageLocal' - name='PSFramework', version='1.0.35',destination='C:\Users\steph\AppData\Local\Temp\1674069492'
VERBOSE: InstallPackage' - name='FileType', version='1.0.2',destination='C:\Users\steph\AppData\Local\Temp\1674069492'
VERBOSE: DownloadPackage' - name='FileType', version='1.0.2',destination='C:\Users\steph\AppData\Local\Temp\1674069492\FileType.1.0.2\FileType.1.0.2.nupkg', uri='https://www.powershellgallery.com/api/v2/package/FileType/1.0.2'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/FileType/1.0.2'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/FileType/1.0.2'.
VERBOSE: Completed downloading 'FileType'.
VERBOSE: InstallPackageLocal' - name='FileType', version='1.0.2',destination='C:\Users\steph\AppData\Local\Temp\1674069492'
VERBOSE: Validating the 'PSFramework' module contents under 'C:\Users\steph\AppData\Local\Temp\1674069492\PSFramework.1.0.35' path.
VERBOSE: Test-ModuleManifest successfully validated the module manifest file 'C:\Users\steph\AppData\Local\Temp\1674069492\PSFramework.1.0.35'.
VERBOSE: Validating the authenticode signature and publisher of the catalog file or module manifest file of the module 'PSFramework'.
VERBOSE: Catalog file 'PSFramework.cat' is not found in the contents of the module 'PSFramework' being installed.
VERBOSE: For publisher validation, current module 'PSFramework' with version '1.0.35' with publisher name '' from root certificate authority ''. Is this module signed by Microsoft: 'False'.
VERBOSE: For publisher validation, using the previously-installed module 'PSFramework' with version '1.0.35' under 'C:\Users\steph\OneDrive\Documents\PowerShell\Modules\PSFramework\1.0.35' with publisher name '' from root certificate authority ''. Is this module signed by Microsoft: 'False'.
VERBOSE: Checking for possible command collisions for the module 'PSFramework' commands.
VERBOSE: Installing the dependency module 'PSFramework' with version '1.0.35' for the module 'FileType'.
PackageManagement\Install-Package : Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
At C:\program files\powershell\6\Modules\PowerShellGet\PSModule.psm1:9508 char:21
+ ...          $null = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (Microsoft.PowerShel\u2026lets.InstallPackage:InstallPackage) [Install-Package], Exception
+ FullyQualifiedErrorId : System.FormatException,Microsoft.PowerShell.Commands.RemoveItemCommand,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

Fails consistently, even in Windows PowerShell 5.1

All I get is:

PS 5.1.18362.145 C:/Users/steph> gci .\OneDrive\Documents\WUTroubleShooterReport201804101205.pdf | Resolve-FileType

New-Object : The value supplied is not valid, or the property is read-only. Change the value, and then   try again.
At C:\Program Files\WindowsPowerShell\Modules\FileType\1.0.0\FileType.psm1:234 char:5
+                 New-Object FileType.Resolution -Property @{                                            
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                
+ CategoryInfo          : InvalidData: (:) [New-Object], Exception                                       
+ FullyQualifiedErrorId : SetValueException,Microsoft.PowerShell.Commands.NewObjectCommand           

Initial list of filetypes is empty

This should speak for itself:

PS 5.1.18362.145 C:/Users/steph> remove-module filetype
PS 5.1.18362.145 C:/Users/steph> import-module filetype
PS 5.1.18362.145 C:/Users/steph> (get-filetype) -eq $null
True                                                                                                                    

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.