-
Notifications
You must be signed in to change notification settings - Fork 13
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
Errors with Import-Module WTToolbox #1
Comments
Is WindowsTerminal already installed? The module shouldn't be trying to create the variables if it isn't. I'm working on a new release so let me go back over this code. What version of PowerShell are you running on what operating system? |
After importing the module, do you have $WTSettingsPath? PS C:\> $WTSettingsPath
C:\Users\Jeff\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json |
Can you post your settings.json file? |
I definitely have WT installed on my Windows 10 laptop and currently running. That previous error was for Windows PowerShell 5.1. I just tried in PowerShell 7 and got a very similar error:
After installing and importing the above for v7, this is my path:
My |
The attachment doesn't seem to be working. Can you run this command without getting an error? (Get-Content -path $Global:WTSettingsPath).where({$_ -notmatch "//"}) | ConvertFrom-Json I wonder if there is something I'm not taking into account with your settings file. |
Runs fine:
|
I'm testing with a virgin test system and I'm getting the same errors you are. Digging. |
Not sure why |
Great - thanks! |
Update the module to 1.2.0 and this should solve the problem. |
What's the best way? |
If you've already installed it using Install-Module, then you can update it |
Can win today... I tried and got this 🤦♂️
|
I can't recall if you are using Windows PowerShell or PowerShell 7. You need to run the update module in the same version of PowerShell where you installed it. It might be just as easy to uninstall it. ``powershell
|
That failed, of course, but I just a force install and it's working now. |
Forgot to close the issue - thanks again! |
Good Morning!
I just installed WTToolbox via
Install-Module WTToolBox -Scope CurrentUser
. When I ranImport-Module WTToolbox
, I got this error:What can I do to help debug this for you?
Thanks,
Derek
The text was updated successfully, but these errors were encountered: