Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    [Bug] 0 equals 1???

    Plugin Development
    4
    4
    3209
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Dinesh J Prakash
      Dinesh J Prakash last edited by

      Please paste these into 2 different files and compare them :

      File1----->11111111111111111111111111111111

      File2----->00000000000000000000000000000000

      They both match

      Claudia Frank 1 Reply Last reply Reply Quote 1
      • Claudia Frank
        Claudia Frank @Dinesh J Prakash last edited by Claudia Frank

        @Dinesh-J-Prakash

        are you using the latest compare plugin version?
        Which npp and os version?
        And it is probably better to report it at https://github.com/pnedev/compare-plugin/issues
        Although @pnedev, from time to time visits this community.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 1
        • guy038
          guy038 last edited by guy038

          Hello, @dinesh-j-prakash, @claudia-frank and All,

          You’re quite right. I’ve just tried with the last Compare v2.0.0 plugin, and N++ v7.5.1, on my Win XP SP3 laptop. Indeed, there a (small) bug !

          I noticed that 3 conditions are mandatory to reproduce this bug :

          • Each line must have a same amount of characters, whatever they are

          • The length, of each line, must be a multiple of 32 ( so length must be 32, 64, 96,… ) !! ??

          • All characters, of each line, must be identical

          I do hope, @pnedev that you’ll be able to sort it out, easily ;-))

          Best Regards,

          guy038

          1 Reply Last reply Reply Quote 2
          • pnedev
            pnedev last edited by pnedev

            Hello all,

            @Dinesh-J-Prakash , thank you for reporting this.
            @Claudia-Frank , thank you for commenting.
            @guy038 , thank you for the detailed investigation.

            This problem has already been reported in the GitHub project page (https://github.com/pnedev/compare-plugin/issues/128)
            and I have already fixed it in the development branch. I’m preparing a new release but since it is a major plugin rework and I’m quite busy these days it is taking longer than I thought. I hope I’ll be able to release the new version in month or two.
            Just FYI the problem was with the hashing function used in the compare process.

            BR

            1 Reply Last reply Reply Quote 1
            • First post
              Last post
            Copyright © 2014 NodeBB Forums | Contributors