solarized
solarized copied to clipboard
Doesn't work in Windows 10 powershell
I tried out the powershell theme in windows 10 and it kicked back a bunch of errors.
PS C:\Users\kevin\workspace\external\solarized> . .\Powershell\Theme-Solarized.ps1
The property 'FontName' cannot be found on this object. Verify that the property exists and can be set.
At C:\Users\kevin\workspace\external\solarized\Powershell\Theme-Solarized.ps1:22 char:1
+ $psISE.Options.FontName = 'Source Code Pro'
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyNotFound
The property 'FontSize' cannot be found on this object. Verify that the property exists and can be set.
At C:\Users\kevin\workspace\external\solarized\Powershell\Theme-Solarized.ps1:23 char:1
+ $psISE.Options.FontSize = 10
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyNotFound
...
Hi,
Can you confirm if you have the font "Source Code Pro" installed in your system as that's the font I'm using. You can find it here: https://github.com/adobe-fonts/source-code-pro/releases
You can also instead change the font name on line 22 to your preferred font. Something like "Consolas" should exist on your system.