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

Unable to Import #3

Closed
potatoqualitee opened this issue Jun 10, 2019 · 11 comments
Closed

Unable to Import #3

potatoqualitee opened this issue Jun 10, 2019 · 11 comments

Comments

@potatoqualitee
Copy link

Expected Behavior

Imports without error and if anything required is missing, let us know.

Current Behavior

Sea of red

[90 ms] C:\github\dbatools> ipmo terminal-icons
At C:\Program Files\WindowsPowerShell\Modules\terminal-icons\0.1.0\Data\glyphs.ps1:23 char:6
+     'nf-dev-appstore'                                = ''
+      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected token 'nf-dev-appstore'                                = ''
    'nf-dev-aptana'                                  = 'îž™'
    'nf-dev-asterisk'                                = ''
    'nf-dev-atlassian'                               = '�'
    'nf-dev-atom'                                    = '�'
    'nf-dev-aws'                                     = 'îž­'
    'nf-dev-backbone'                                = '�'
    'nf-dev-bing_small'                              = ''
    'nf-dev-bintray'                                 = 'îž'
    'nf-dev-bitbucket'                               = ''
    'nf-dev-blackberry'                              = ''
    'nf-dev-bootstrap'                               = '�'
    'nf-dev-bower'                                   = '�'
    'nf-dev-brackets'                                = '�'
    'nf-dev-bugsense'                                = '�'
    'nf-dev-celluloid'                               = '�'
    'nf-dev-chart'                                   = 'î�' in expression or statement.
At C:\Program Files\WindowsPowerShell\Modules\terminal-icons\0.1.0\Data\glyphs.ps1:23 char:6
+     'nf-dev-appstore'                                = 'îœ'
+      ~
The hash literal was incomplete.
At C:\Program Files\WindowsPowerShell\Modules\terminal-icons\0.1.0\Data\glyphs.ps1:124 char:6
+     'nf-dev-krakenjs'                                = 'îž…'
+      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected token 'nf-dev-krakenjs'                                = 'îž…'
    'nf-dev-krakenjs_badge'                          = 'îž'
    'nf-dev-laravel'                                 = ''
    'nf-dev-less'                                    = '�'
    'nf-dev-linux'                                   = ''
    'nf-dev-magento'                                 = '�'
    'nf-dev-mailchimp'                               = 'îžš'
    'nf-dev-markdown'                                = ''
    'nf-dev-materializecss'                          = ''
    'nf-dev-meteor'                                  = ''
    'nf-dev-meteorfull'                              = ''
    'nf-dev-mitlicence'                              = 'îž‹'
    'nf-dev-modernizr'                               = ''
    'nf-dev-mongodb'                                 = ''
    'nf-dev-mootools'                                = '�'
    'nf-dev-mootools_badge'                          = '�'
    'nf-dev-mozilla'                                 = ''
    'nf-dev-msql_server'                             = '�'
    'nf-dev-mysql'                                   = 'îœ'
    'nf-dev-nancy'                                   = '�'
    'nf-dev-netbeans'                                = 'îž›'
    'nf-dev-netmagazine'                             = ''
    'nf-dev-nginx'                                   = '�'
    'nf-dev-nodejs'                                  = ''
    'nf-dev-nodejs_small'                            = ''
    'nf-dev-npm'                                     = ''
    'nf-dev-onedrive'                                = '�'
    'nf-dev-openshift'                               = 'îž·'
    'nf-dev-opensource'                              = '�'
    'nf-dev-opera'                                   = '�'
    'nf-dev-perl'                                    = '�'
    'nf-dev-phonegap'                                = ''
    'nf-dev-photoshop'                               = ''
    'nf-dev-php'                                     = ''
    'nf-dev-postgresql'                              = '�'
    'nf-dev-prolog'                                  = 'îž¡'
    'nf-dev-python'                                  = ''
    'nf-dev-rackspace'                               = 'îž¹'
    'nf-dev-raphael'                                 = '�'
    'nf-dev-rasberry_pi'                             = ''
    'nf-dev-react'                                   = ''
    'nf-dev-redhat'                                  = 'îž»'
    'nf-dev-redis'                                   = '�'
    'nf-dev-requirejs'                               = '�'
    'nf-dev-responsive'                              = 'îž—'
    'nf-dev-ruby'                                    = ''
    'nf-dev-ruby_on_rails'                           = ''
    'nf-dev-ruby_rough'                              = 'îž'' in expression or statement.
At C:\Program Files\WindowsPowerShell\Modules\terminal-icons\0.1.0\Data\glyphs.ps1:209 char:6
+     'nf-dev-zend'                                    = '�'
+      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected token 'nf-dev-zend'                                    = '�'
    'nf-fa-500px'                                    = ''
    'nf-fa-address_book'                             = ''
    'nf-fa-address_book_o'                           = ''
    'nf-fa-address_card'                             = ''
    'nf-fa-address_card_o'                           = ''
    'nf-fa-adjust'                                   = 'ï�'' in expression or statement.
At C:\Program Files\WindowsPowerShell\Modules\terminal-icons\0.1.0\Data\glyphs.ps1:231 char:6
+     'nf-fa-angle_down'                               = 'ï‡'
+      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected token 'nf-fa-angle_down'                               = 'ï'
    'nf-fa-angle_left'                               = 'ï'
    'nf-fa-angle_right'                              = 'ï…'
    'nf-fa-angle_up'                                 = 'ï'
    'nf-fa-apple'                                    = 'ï…¹'
    'nf-fa-archive'                                  = ''
    'nf-fa-area_chart'                               = ''
    'nf-fa-arrow_circle_down'                        = 'ï«'
    'nf-fa-arrow_circle_left'                        = 'ï¨'
    'nf-fa-arrow_circle_o_down'                      = ''
    'nf-fa-arrow_circle_o_left'                      = '�'
    'nf-fa-arrow_circle_o_right'                     = ''
    'nf-fa-arrow_circle_o_up'                        = ''
    'nf-fa-arrow_circle_right'                       = 'ï©'
    'nf-fa-arrow_circle_up'                          = 'ïª'
    'nf-fa-arrow_down'                               = '�'
    'nf-fa-arrow_left'                               = '�'
    'nf-fa-arrow_right'                              = '�'
    'nf-fa-arrow_up'                                 = '�'
    'nf-fa-arrows'                                   = '�'
    'nf-fa-arrows_alt'                               = 'ï²'
    'nf-fa-arrows_h'                                 = '�'
    'nf-fa-arrows_v'                                 = '�'
    'nf-fa-asl_interpreting'                         = ''
    'nf-fa-assistive_listening_systems'              = ''
    'nf-fa-asterisk'                                 = '�'
    'nf-fa-at'                                       = ''
    'nf-fa-audio_description'                        = ''
    'nf-fa-automobile'                               = ''
    'nf-fa-backward'                                 = '�'
    'nf-fa-balance_scale'                            = ''
    'nf-fa-ban'                                      = '�'
    'nf-fa-bandcamp'                                 = 'ï‹•'
    'nf-fa-bank'                                     = ''
    'nf-fa-bar_chart'                                = 'ï'
    'nf-fa-bar_chart_o'                              = 'ï'
    'nf-fa-barcode'                                  = ''
    'nf-fa-bars'                                     = ''
    'nf-fa-bath'                                     = '�'
    'nf-fa-bathtub'                                  = '�'
    'nf-fa-battery'                                  = ''
    'nf-fa-battery_0'                                = ''
    'nf-fa-battery_1'                                = ''
    'nf-fa-battery_2'                                = ''' in expression or statement.
At C:\Program Files\WindowsPowerShell\Modules\terminal-icons\0.1.0\Data\glyphs.ps1:280 char:6
+     'nf-fa-battery_quarter'                          = ''
+      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected token 'nf-fa-battery_quarter'                          = ''
    'nf-fa-battery_three_quarters'                   = '�'
    'nf-fa-bed'                                      = ''
    'nf-fa-beer'                                     = ''
    'nf-fa-behance'                                  = ''
    'nf-fa-behance_square'                           = ''
    'nf-fa-bell'                                     = ''
    'nf-fa-bell_o'                                   = 'ï¢'' in expression or statement.
At C:\Program Files\WindowsPowerShell\Modules\terminal-icons\0.1.0\Data\glyphs.ps1:306 char:6
+     'nf-fa-braille'                                  = ''
+      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected token 'nf-fa-braille'                                  = ''
    'nf-fa-briefcase'                                = 'ï±'' in expression or statement.
At C:\Program Files\WindowsPowerShell\Modules\terminal-icons\0.1.0\Data\glyphs.ps1:312 char:59
+     'nf-fa-bullhorn'                                 = 'ï¡'
+                                                           ~~
Unexpected token '¡'
    'nf-fa-bullseye'                                 = 'ï…€'
    'nf-fa-bus'                                      = ''
    'nf-fa-buysellads'                               = '�'
    'nf-fa-cab'                                      = ''
    'nf-fa-calculator'                               = ''
    'nf-fa-calendar'                                 = '�'
    'nf-fa-calendar_check_o'                         = ''
    'nf-fa-calendar_minus_o'                         = ''
    'nf-fa-calendar_o'                               = 'ï³'
    'nf-fa-calendar_plus_o'                          = ''
    'nf-fa-calendar_times_o'                         = ''
    'nf-fa-camera'                                   = ''
    'nf-fa-camera_retro'                             = ''
    'nf-fa-car'                                      = ''
    'nf-fa-caret_down'                               = ''
    'nf-fa-caret_left'                               = ''
    'nf-fa-caret_right'                              = ''
    'nf-fa-caret_square_o_down'                      = 'ï…�'
    'nf-fa-caret_square_o_left'                      = ''
    'nf-fa-caret_square_o_right'                     = 'ï…’'
    'nf-fa-caret_square_o_up'                        = 'ï…‘'
    'nf-fa-caret_up'                                 = ''
    'nf-fa-cart_arrow_down'                          = ''
    'nf-fa-cart_plus'                                = ''
    'nf-fa-cc'                                       = ''
    'nf-fa-cc_amex'                                  = ''
    'nf-fa-cc_diners_club'                           = ''
    'nf-fa-cc_discover'                              = ''
    'nf-fa-cc_jcb'                                   = ''
    'nf-fa-cc_mastercard'                            = ''
    'nf-fa-cc_paypal'                                = ''
    'nf-fa-cc_stripe'                                = ''
    'nf-fa-cc_visa'                                  = ''
    'nf-fa-certificate'                              = 'ï‚£'
    'nf-fa-chain'                                    = '�'
    'nf-fa-chain_broken'                             = 'ï§'
    'nf-fa-check'                                    = ''
    'nf-fa-check_circle'                             = '�'
    'nf-fa-check_circle_o'                           = '�'
    'nf-fa-check_square'                             = 'ï…Š'
    'nf-fa-check_square_o'                           = '�'
    'nf-fa-chevron_circle_down'                      = 'ïº'
    'nf-fa-chevron_circle_left'                      = 'ï·'
    'nf-fa-chevron_circle_right'                     = 'ï¸'
    'nf-fa-chevron_circle_up'                        = 'ï¹'
    'nf-fa-chevron_down'                             = '�'
    'nf-fa-chevron_left'                             = 'ï�'
    'nf-fa-chevron_right'                            = 'ï�'
    'nf-fa-chevron_up'                               = '�'
    'nf-fa-child'                                    = ''
    'nf-fa-chrome'                                   = ''
    'nf-fa-circle'                                   = 'ï‘'
    'nf-fa-circle_o'                                 = 'ïŒ'
    'nf-fa-circle_o_notch'                           = ''
    'nf-fa-circle_thin'                              = ''
    'nf-fa-clipboard'                                = ''
    'nf-fa-clock_o'                                  = ''
    'nf-fa-clone'                                    = '�'
    'nf-fa-close'                                    = '�'
    'nf-fa-cloud'                                    = 'ïƒ'' in expression or statement.
At C:\Program Files\WindowsPowerShell\Modules\terminal-icons\0.1.0\Data\glyphs.ps1:382 char:59
+     'nf-fa-cogs'                                     = 'ï'
+                                                           ~~
Unexpected token ''
    'nf-fa-columns'                                  = ''
    'nf-fa-comment'                                  = '�'
    'nf-fa-comment_o'                                = ''
    'nf-fa-commenting'                               = ''
    'nf-fa-commenting_o'                             = ''
    'nf-fa-comments'                                 = 'ï'' in expression or statement.
At C:\Program Files\WindowsPowerShell\Modules\terminal-icons\0.1.0\Data\glyphs.ps1:397 char:59
+     'nf-fa-credit_card'                              = 'ï'
+                                                           ~~
Unexpected token ''
    'nf-fa-credit_card_alt'                          = ''
    'nf-fa-crop'                                     = 'ï¥'
    'nf-fa-crosshairs'                               = '�'
    'nf-fa-css3'                                     = 'ï¼'
    'nf-fa-cube'                                     = ''
    'nf-fa-cubes'                                    = ''
    'nf-fa-cut'                                      = 'ïƒ'
    'nf-fa-cutlery'                                  = ''
    'nf-fa-dashboard'                                = ''
    'nf-fa-dashcube'                                 = '�'
    'nf-fa-database'                                 = ''
    'nf-fa-deaf'                                     = ''
    'nf-fa-deafness'                                 = ''
    'nf-fa-dedent'                                   = ''
    'nf-fa-delicious'                                = ''
    'nf-fa-desktop'                                  = 'ïˆ'
    'nf-fa-deviantart'                               = ''
    'nf-fa-diamond'                                  = ''
    'nf-fa-digg'                                     = ''
    'nf-fa-dollar'                                   = 'ï…•'
    'nf-fa-dot_circle_o'                             = 'ï†'' in expression or statement.
Not all parse errors were reported.  Correct the reported errors and try again.
    + CategoryInfo          : ParserError: (:) [], ParseException
    + FullyQualifiedErrorId : UnexpectedToken

Resolve-Path : Cannot find path 'C:\github\dbatools\devblackops.psd1' because it does not exist.
At C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Utility\Microsoft.PowerShell.Utility.psm1:544 char:35
+         foreach($resolvedPath in (Resolve-Path @PSBoundParameters))
+                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\github\dbatools\devblackops.psd1:String) [Resolve-Path], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.ResolvePathCommand

You cannot call a method on a null-valued expression.
At C:\Program Files\WindowsPowerShell\Modules\terminal-icons\0.1.0\Terminal-Icons.psm1:41 char:5
+     $colorData.Types.Directories.WellKnown.GetEnumerator().ForEach({
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Program Files\WindowsPowerShell\Modules\terminal-icons\0.1.0\Terminal-Icons.psm1:52 char:5
+     $colorData.Types.Files.WellKnown.GetEnumerator().ForEach({
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

You cannot call a method on a null-valued expression.
At C:\Program Files\WindowsPowerShell\Modules\terminal-icons\0.1.0\Terminal-Icons.psm1:63 char:5
+     $colorData.Types.Files.GetEnumerator().Where({$_.Name -ne 'WellKn ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Resolve-Path : Cannot find path 'C:\github\dbatools\devblackops.psd1' because it does not exist.
At C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Utility\Microsoft.PowerShell.Utility.psm1:544 char:35
+         foreach($resolvedPath in (Resolve-Path @PSBoundParameters))
+                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\github\dbatools\devblackops.psd1:String) [Resolve-Path], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.ResolvePathCommand

[1.64 s] C:\github\dbatools>

Possible Solution

No idea, but catch whatever I did wrong and let me know how to do it right "Please install xyz font. Any will do but we like Material Design" or something.

Steps to Reproduce (for bugs)

  1. Skim the readme, but not too deeply
  2. Install using Admin privs in Windows 10
  3. Do not install any nerd fonts because you don't know which one but want to see what happens
  4. ipmo terminal-icons as a regular user and as admin
  5. Sea of red but at admin prompt, i had a bunch of empty GCI, plus sea of red

Your Environment

  • Module version used: Current on in PS Gallery - 0.1.0

image

Name                           Value
----                           -----
PSVersion                      5.1.17763.503
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17763.503
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
@iricigor
Copy link

Similar issue here, with these two differences in steps to reproduce
2. module installed with scope CurrentUser
3. Installed one nerd font

Steps 4 and 5 give the same results, the sea of red

@kort3x
Copy link

kort3x commented Jun 10, 2019

same here

win 1809 - PoSh 5.1

@kort3x
Copy link

kort3x commented Jun 10, 2019

Jsut found this on Twitter; https://gist.github.com/markwragg/6301bfcd56ce86c3de2bd7e2f09a8839

@potatoqualitee
Copy link
Author

Thanks! that, combined with changing the directory seems to have helped. before changing dir, was still getting sea of red.

image

@potatoqualitee
Copy link
Author

aw doh, not yet, actually

image

@kort3x
Copy link

kort3x commented Jun 10, 2019

yeah, name isn't showing at all.

@kort3x
Copy link

kort3x commented Jun 10, 2019

It only works in PoSh 6 for me

@Gobiman
Copy link

Gobiman commented Jun 11, 2019

I get the same issue, sea of red

@devblackops
Copy link
Owner

@potatoqualitee @iricigor @kort3x @Gobiman @mwallner
v0.1.1 has been released to the gallery that should fix Windows PowerShell compatibility! Please install that version and let me know if you still are having issues.

@potatoqualitee
Copy link
Author

sweet, it worked! now to install a nerd font 😅

@kort3x
Copy link

kort3x commented Jun 12, 2019

works great now! thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants