Community
    • Login

    Notepad++ lags when text files are on FTP

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 3 Posters 17 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.
    • Alexander AnisimovA
      Alexander Anisimov
      last edited by

      I’m editing text files stored on an FTP server using Notepad++. The problem is Notepad++ “pings” the server every time the window regains focus, causing momentary stutters.

      Is there a way to configure Notepad++ to only sync with the FTP server when I save a file (Ctrl+S)? I want to avoid the constant background syncing and only upload changes on demand, in other words.

      May be there is a settings that when files are in Notepad++ and in use, it could create separate local temp files for those, or something like that.

      PeterJonesP CoisesC 2 Replies Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Alexander Anisimov
        last edited by PeterJones

        [[update: my answer assumes the NppFTP plugin is being used; if it’s a different circumstance, like @Coises describes below, then my answer won’t be helpful.]]

        @Alexander-Anisimov said in Notepad++ lags when text files are on FTP:

        I’m editing text files stored on an FTP server using Notepad++. The problem is Notepad++ “pings” the server every time the window regains focus, causing momentary stutters.

        Technically, it’s the NppFTP plugin, not Notepad++ itself, that is doing the pinging.

        Is there a way to configure Notepad++ to only sync with the FTP server when I save a file (Ctrl+S)? I want to avoid the constant background syncing and only upload changes on demand, in other words.

        Hmm… I cannot actually replicate your problem with constant “pinging” – whether by “window regains focus” you mean the main N++ application window regains focus, or the NppFTP tree-view or queue or message/output window. I am not seeing any unexpected traffic anywhere except when I intentionally open or save.

        May be there is a settings that when files are in Notepad++ and in use, it could create separate local temp files for those, or something like that.

        It’s up to the NppFTP plugin, not Notepad++ itself. And NppFTP plugin does use local “temp files” (what it calls its “cache”) – and in fact, you can edit the local cache file even when NppFTP isn’t connected, and when you hit save, it will re-connect so that it uploads the file. I cannot find any “extra”/unexpected traffic (“pings” or similar) caused by that plugin. (In fact, one of the longest-lived complaints about the NppFTP plugin is that it doesn’t have a keepalive function, unlike many FTP programs like FileZilla, so users are losing their connection, and it has to reconnect in order to save. Yours is rather the opposite complaint, since they are begging for pings to be added to the plugin.)

        If you can come up with an exact set of circumstances, and the exact way you can tell that the plugin “pings” the server (other than a “stutter”, which might be hard for someone to reproduce), then if another user can reproduce the same circumstances, it might be worth filing a bug report with the plugin – but again, there is nothing that the core Notepad++ app can do about it, and right now, I cannot replicate your problem with the plugin.

        1 Reply Last reply Reply Quote 0
        • CoisesC
          Coises @Alexander Anisimov
          last edited by

          @Alexander-Anisimov said in Notepad++ lags when text files are on FTP:

          I’m editing text files stored on an FTP server using Notepad++.

          How are you accessing the FTP server? There is a Notepad++ plugin that does that, but you might mean that you are using some other program, like MountainDuck, to make the FTP server’s content available on your computer.

          Either way, best to click the question mark at the right end of the menu bar, select Debug Info…, then click Copy debug info to clipboard and paste the result into a reply here, so we know details like what version and plugins you are using.

          The problem is Notepad++ “pings” the server every time the window regains focus, causing momentary stutters.

          I don’t know about this, but I wonder if Settings | Preferences… | MISC. | File Status Auto Detection might affect this. Looking at the code, I wasn’t able to work out for certain how Notepad++ detects changes, but I’m thinking whatever it does might cause whatever software mirrors the server to a local cache to check the server to see if anything changed. See if changing that setting to Disabled makes any difference.

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