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

Fix non-Windows Import Errors #9158

Merged
merged 2 commits into from
Nov 5, 2023
Merged

Fix non-Windows Import Errors #9158

merged 2 commits into from
Nov 5, 2023

Conversation

potatoqualitee
Copy link
Member

Fixed all this. One of the errors involved colors. We never used the color features as well as the advanced "Developer Mode" so I took that out too in hopes that it could improve import time by a petite.

Set-DbatoolsConfig: 
Line |
 183 |  …             Set-DbatoolsConfig -FullName $value.FullName -Value $valu …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Input string was not in a correct format.

InvalidOperation: 
Line |
  12 |          if ($Value.GetType().FullName -ne "System.Boolean") {
     |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | You cannot call a method on a null-valued expression.

Set-DbatoolsConfig: 
Line |
 183 |  …             Set-DbatoolsConfig -FullName $value.FullName -Value $valu …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Input string was not in a correct format.

Set-DbatoolsConfig: 
Line |
 183 |  …             Set-DbatoolsConfig -FullName $value.FullName -Value $valu …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Input string was not in a correct format.

Set-DbatoolsConfig: 
Line |
 183 |  …             Set-DbatoolsConfig -FullName $value.FullName -Value $valu …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Input string was not in a correct format.

Set-DbatoolsConfig: 
Line |
 183 |  …             Set-DbatoolsConfig -FullName $value.FullName -Value $valu …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Input string was not in a correct format.

InvalidOperation: 
Line |
  12 |          if ($Value.GetType().FullName -ne "System.Security.SecureStri …
     |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | You cannot call a method on a null-valued expression.

Set-DbatoolsConfig: 
Line |
 183 |  …             Set-DbatoolsConfig -FullName $value.FullName -Value $valu …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Input string was not in a correct format.

InvalidOperation: 
Line |
   8 |          [Dataplat.Dbatools.Runspace.RunspaceHost]::Runspaces["dbatool …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | You cannot call a method on a null-valued expression.

Set-DbatoolsConfig: 
Line |
 183 |  …             Set-DbatoolsConfig -FullName $value.FullName -Value $valu …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Input string was not in a correct format.

InvalidArgument: 
Line |
  12 |      try { [System.ConsoleColor]$color = $Value }
     |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot convert value "Grey" to type "System.ConsoleColor". Error: "Unable to match the identifier name Grey to a valid enumerator name. Specify one of the following enumerator names and try again:
Black, DarkBlue, DarkGreen, DarkCyan, DarkRed, DarkMagenta, DarkYellow, Gray, DarkGray, Blue, Green, Cyan, Red, Magenta, Yellow, White"

Set-DbatoolsConfig: 
Line |
 183 |  …             Set-DbatoolsConfig -FullName $value.FullName -Value $valu …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Input string was not in a correct format.

Set-DbatoolsConfig: 
Line |
 183 |  …             Set-DbatoolsConfig -FullName $value.FullName -Value $valu …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Input string was not in a correct format.

Set-DbatoolsConfig: 
Line |
 183 |  …             Set-DbatoolsConfig -FullName $value.FullName -Value $valu …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Input string was not in a correct format.

Set-DbatoolsConfig: 
Line |
 183 |  …             Set-DbatoolsConfig -FullName $value.FullName -Value $valu …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Input string was not in a correct format.

Set-DbatoolsConfig: 
Line |
 183 |  …             Set-DbatoolsConfig -FullName $value.FullName -Value $valu …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Input string was not in a correct format.

InvalidOperation: 
Line |
   8 |          [Dataplat.Dbatools.Runspace.RunspaceHost]::Runspaces["dbatool …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | You cannot call a method on a null-valued expression.

Set-DbatoolsConfig: 
Line |
 183 |  …             Set-DbatoolsConfig -FullName $value.FullName -Value $valu …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Input string was not in a correct format.

@potatoqualitee potatoqualitee merged commit 7edecc8 into development Nov 5, 2023
13 checks passed
@potatoqualitee potatoqualitee deleted the fixerror branch November 5, 2023 17:35
@potatoqualitee potatoqualitee restored the fixerror branch November 5, 2023 17:36
@potatoqualitee potatoqualitee deleted the fixerror branch November 5, 2023 17:36
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

Successfully merging this pull request may close these issues.

None yet

1 participant