Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Newbie
    Join Date
    Mar 2019
    Posts
    3

    Default

    Thanks for making this script, WebFool, but I get the following error when running it.

    Code:
    → ~\OneDrive\Desktop› .\easylist2untangle.ps1
    At C:\Users\mrhan\OneDrive\Desktop\easylist2untangle.ps1:74 char:97
    + ... e a few $filenamejson with $numberoflines lines from $easylistsource"
    +                                                                         ~
    The string is missing the terminator: ".
    At C:\Users\mrhan\OneDrive\Desktop\easylist2untangle.ps1:74 char:98
    + ... e a few $filenamejson with $numberoflines lines from $easylistsource"
    +                                                                          ~
    Missing closing ')' in expression.
        + CategoryInfo          : ParserError: (:) [], ParseException
        + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
    I'm not familiar with PS scripts. I tried adding a # and ) at the end, but then it gives a different error.

    Code:
    Measure-Object : A positional parameter cannot be found that accepts argument 'now'.
    At C:\Users\mrhan\OneDrive\Desktop\easylist2untangle.ps1:9 char:35
    + $easylistsourcecount=($EasyList | Measure-Object €“Line).Lines
    +                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (:) [Measure-Object], ParameterBindingException
        + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.MeasureObjectCommand
    Weirdly, it works if I run it line by line. At least, it generates the files, but I still can't import them. It hangs for a few minutes after clicking save, then all the user added filters are blank.
    Last edited by mrhanman; 02-03-2021 at 10:38 PM.

  2. #12
    Untangle Ninja
    WebFooL's Avatar
    Join Date
    Jan 2009
    Location
    Sweden (Eskilstuna)
    Posts
    5,207

    Default

    Looks like you have some Copy-Paste error and missing a ".

    I'll see if i have the time to commit my changes to git tomorrow and you can download the script from there.

  3. #13
    Master Untangler
    Join Date
    Jul 2018
    Posts
    132

    Default

    Same here. Tried importing but on hitting save it just hangs.....

  4. #14
    Untangle Ninja
    WebFooL's Avatar
    Join Date
    Jan 2009
    Location
    Sweden (Eskilstuna)
    Posts
    5,207

    Default

    What if you modify the 5000 to a lower number?

  5. #15
    Master Untangler
    Join Date
    Jul 2018
    Posts
    132

    Default

    I have changed 5000 in the script to 2000 and am running it now.
    Let's see.

  6. #16
    Master Untangler
    Join Date
    Jul 2018
    Posts
    132

    Default

    Before importing I try to make an export of the current filters. I get a 2 byte file!!!
    I think something in this app is broken.....

  7. #17
    Master Untangler
    Join Date
    Jul 2018
    Posts
    132

    Default

    Tried. Same thing. Freezes upon hitting save.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO 3.6.0 PL2