Giter VIP home page Giter VIP logo

Comments (2)

earthlng avatar earthlng commented on May 23, 2024

bitching? bitch puhlease! it was simply a friendly FYI :)

this one still works: 38e7f34#diff-cab29a3f8309044c0459f253c305fb54

commit that broke it for me: 342bb47#diff-cab29a3f8309044c0459f253c305fb54

from compare-userjs.

claustromaniac avatar claustromaniac commented on May 23, 2024

I have some bad news for you: you have .NET installed. Otherwise, no version of the script (or PowerShell itself) would work on your end at all.

Try adding System. before Collections. in EDIT: I did that myself in 658519f

$matching_prefs = New-Object Collections.Generic.Hashset[string] # matching values
$differences = New-Object Collections.Generic.Hashset[string] # different values
$missing_in_A = New-Object Collections.Generic.Hashset[string] # not declared
$missing_in_B = New-Object Collections.Generic.Hashset[string]
$inactive_in_A = New-Object Collections.Generic.Hashset[string] # matching value but mismatching state
$inactive_in_B = New-Object Collections.Generic.Hashset[string]
$fully_mismatching = New-Object Collections.Generic.Hashset[string] # mismatching states and values
$bad_syntax_A = New-Object Collections.ArrayList # possible syntax errors
$bad_syntax_B = New-Object Collections.ArrayList
$dups_in_A = New-Object Collections.ArrayList # duplicates
$dups_in_B = New-Object Collections.ArrayList

If that doesn't work, type this in the PowerShell CLI:

$PSVersionTable.CLRVersion

It will return the value of that variable. If it is the following (or older)...

Major  Minor  Build  Revision
-----  -----  -----  --------
2      0      50727  8762

... then you must have disabled .NET 3.5 as a Windows component, or its assemblies aren't loading on your end for some other reason. Before you keep giving me friendly FYI (criticizing me for no good reason in the process): .NET 3.5 is a standard Windows 7 component, and the classes used in this script also exist in .NET Core (which is newer, and is the version of .NET available for Linux). The README explicitly states that this script requires PowerShell v2 and, guess what, the earliest version of Windows that comes with PS v2 installed is Win 7. So, adding .NET 3.5 as a dependency is no big deal (if you have Win 7, you have both requirements). I will still edit the README and state that this requires .NET 3.5, just in case.

from compare-userjs.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.