Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work at all #2

Closed
bitleader opened this issue Dec 6, 2024 · 6 comments · Fixed by #3
Closed

Does not work at all #2

bitleader opened this issue Dec 6, 2024 · 6 comments · Fixed by #3
Assignees
Labels
bug Something isn't working

Comments

@bitleader
Copy link

After installing the module none of the available cmdlet work. They always give the same error messages:

Write-Error: A parameter cannot be found that matches parameter name 'DestinationPath'.
WARNING: pwshEmojiExplorer was unable to source the required data set file.
WARNING: Ensure you have an active internet connection
@bitleader bitleader added the bug Something isn't working label Dec 6, 2024
@techthoughts2 techthoughts2 self-assigned this Dec 7, 2024
@techthoughts2
Copy link
Owner

@bitleader

I'm not able to duplicate this issue on any test device.

This module does require downloading an external data file.

As your error indicates, does the device you are running from have an active internet connection?
If so, can you resolve: cloudfront.net ?

pwshEmojiExplorer will not function without the ability to download the data set.

If you confirm internet connectivity to cloudfront, can you also provide the output of the command you are running with both -Verbose and -Debug switches?

@techthoughts2 techthoughts2 added the waiting response awaiting additional response feedback label Dec 7, 2024
@bitleader
Copy link
Author

Hello @techthoughts2,

Thanks for your suggestions. I noticed that the cmdlets work on Windows PowerShell but do not work on Microsoft PowerShell v7.4.6. Here are the verbosed output:

psh ❯ Get-Emoji -Emoji '😀' -Verbose
VERBOSE: Verifying XML Data Set Availability...
VERBOSE: Verifying current state of XML data set...
VERBOSE: [Invoke-XMLDataCheck] Confirm= ConfirmPreference=High WhatIf= WhatIfPreference=False
VERBOSE: [Invoke-XMLDataCheck] Reached command
VERBOSE: Verifying data set output location...
VERBOSE: Data path confirmed.
VERBOSE: Confirming valid and current data set...
VERBOSE: Checking for data file...
VERBOSE: Downloading file...
VERBOSE: Requested HTTP/1.1 GET with 0-byte payload
VERBOSE: Received HTTP/1.1 215634-byte response of content type application/zip
VERBOSE: File Name: pwshemojis.zip
VERBOSE: Downloading file...
VERBOSE: Requested HTTP/1.1 GET with 0-byte payload
VERBOSE: Received HTTP/1.1 29-byte response of content type application/json
VERBOSE: File Name: version.json
VERBOSE: Testing if data set file already exists...
VERBOSE: EVAL: True
VERBOSE: Expanding data set archive...
Write-Error: A parameter cannot be found that matches parameter name 'DestinationPath'.
WARNING: pwshEmojiExplorer was unable to source the required data set file.
WARNING: Ensure you have an active internet connection

Compare to the working one I noticed that on Microsoft PowerShell the file D:\users\xxx\doc\PowerShell\pwshEmojiExplorer\pwshEmoji.xml is not created.

Hope this helps you.

@techthoughts2
Copy link
Owner

On my test systems, I'm still unable to re-produce. Its working for PowerShell v7.4.6.

Can you please provide the output from these two commands?

Command 1:

Get-Emoji -Emoji '😀' -Verbose -Debug

Command 2:

$PSVersionTable;$PROFILE

@bitleader
Copy link
Author

bitleader commented Dec 7, 2024

Sure.

Command 1:

psh ❯ Get-Emoji -Emoji '😀' -Verbose -Debug
VERBOSE: Verifying XML Data Set Availability...
VERBOSE: Verifying current state of XML data set...
VERBOSE: [Invoke-XMLDataCheck] Confirm= ConfirmPreference=High WhatIf= WhatIfPreference=False
VERBOSE: [Invoke-XMLDataCheck] Reached command
VERBOSE: Verifying data set output location...
VERBOSE: Data path confirmed.
VERBOSE: Confirming valid and current data set...
VERBOSE: Checking for data file...
VERBOSE: Downloading file...
VERBOSE: Requested HTTP/1.1 GET with 0-byte payload
VERBOSE: Received HTTP/1.1 215634-byte response of content type application/zip
VERBOSE: File Name: pwshemojis.zip
VERBOSE: Downloading file...
VERBOSE: Requested HTTP/1.1 GET with 0-byte payload
VERBOSE: Received HTTP/1.1 29-byte response of content type application/json
VERBOSE: File Name: version.json
VERBOSE: Testing if data set file already exists...
VERBOSE: EVAL: True
VERBOSE: Expanding data set archive...
Write-Error: A parameter cannot be found that matches parameter name 'DestinationPath'.
WARNING: pwshEmojiExplorer was unable to source the required data set file.
WARNING: Ensure you have an active internet connection

Command 2:

psh ❯ $PSVersionTable;$PROFILE

Name                           Value
----                           -----
PSVersion                      7.4.6
PSEdition                      Core
GitCommitId                    7.4.6
OS                             Microsoft Windows 10.0.19045
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
D:\users\xxx\doc\PowerShell\Microsoft.PowerShell_profile.ps1

@bitleader
Copy link
Author

The error probably comes from my PowerShell config. Pscx module is loaded on every PS session and Pscx module override Expand-Archive cmdlet.

Sorry. It is my bad.

@techthoughts2
Copy link
Owner

Yes, I was just looking at PowerShell/Microsoft.PowerShell.Archive#52 as a possible cause.

I will still look into seeing if I can add a catch for this scenario.

@techthoughts2 techthoughts2 removed the waiting response awaiting additional response feedback label Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants