Community
    • Login

    "Compare" adds an empty line

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 654 Views
    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.
    • M
      mrde50ae
      last edited by

      Hey,

      i have a problem in Notepad++ v7.9.1

      When i use the Compare plugin 1.5.6.2, it adds always an empty line in ohne of the text files and the comparison doesn’t work.

      Is there a fix/workaround?
      I can’t update Notepad++ to the actual version.

      PeterJonesP 2 Replies Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @mrde50ae
        last edited by

        @mrde50ae ,

        I just unzipped a copy of Notepad++ v7.9.1 64bit.

        When I ran Plugins Admin, it showed that the Compare Plugin was at v2.0.1. So your “Compare plugin 1.5.6.2” is out of date, even for the older Notepad++ you are using.

        5bdc982c-8383-4b7e-a1a9-fc1a0e01644a-image.png

        You should be able to use Plugins Admin to update the plugin (using Plugins > Plugins Admin > Updates)

        I don’t know if this is similar to what you’re seeing, but if I start the files like:
        fdf9bfbe-7b22-47f7-ac8c-6bb49a903124-image.png
        then run Compare:
        d1eed2a9-7fe9-465a-8cb5-985a31e294b4-image.png
        There are really 4 lines each, but Compare has to show 5 lines each, so that it can line up all the lines and account for added lines.

        It will be even more pronounced when adding more lines, so new1 has 8 lines and new2 has 16 in reality:
        0f3762fa-b0b7-458a-8235-4084c1d7620e-image.png
        now both show 20 lines when comparing, to account for the 12 extra lines in new2 and the four extra lines in new1:
        95776de9-0363-4ca2-8aec-d09239806406-image.png

        This is working as designed. There isn’t another way to get the comparison to line up. Basically, line number during the Compare mode is meaningless, so don’t pay attention to it.

        When you disable the comparison, both go back to the right number of lines.

        1 Reply Last reply Reply Quote 3
        • PeterJonesP
          PeterJones @mrde50ae
          last edited by PeterJones

          @mrde50ae said in "Compare" adds an empty line:

          Compare plugin 1.5.6.2,

          I’m not even sure where you got that version.
          The current repo, https://github.com/pnedev/compare-plugin/releases, shows v2.0.0 and v2.0.1.

          The older repo, under the previous developer, https://github.com/jsleroy/compare-plugin/tags, has v1.5.4, v1.5.5, and v2.0.0

          Please note : Notepad++ v7.7 from 2019 included a major upgrade to “Scintilla”, the underlying code for the text editor panes correction: to the API that plugins use to communicate with the Notepad++ application; that update meant that some plugins had to update their code to be compatible with those changes. “Compare v2.0.0 for Notepad++ 7.7” was the release of the plugin for Notepad++ v7.7 and newer; no version of Compare plugin released before that special v2.0.0-release are expected to work with Notepad++ v7.7 or newer.

          So if any version of Compare Plugin prior to that special v2.0.0 work at all with your Notepad++ 7.9.1, it’s by chance, not by design. And really, you should be using the newest v2.0.1 for the best compatibility with Notepad++.

          1 Reply Last reply Reply Quote 3
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors