Community
    • Login

    Notepad++ stucks on start

    Scheduled Pinned Locked Moved General Discussion
    8 Posts 3 Posters 4.1k 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.
    • Alex TrefilovA
      Alex Trefilov
      last edited by Alex Trefilov

      Hello!

      Notepad++ freezes on start. I guess it happens due to unavailable files previously opened.
      Is there an option of some timeout trying open files?

      Thank you!

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Alex Trefilov
        last edited by

        @alex-trefilov said in Notepad++ stucks on start:

        I guess it happens due to unavailable files previously opened.

        Why is that your assessment?
        Perhaps there is another reason for it – plugins (i.e., preventing them from running) is a good place to start debugging.

        Alex TrefilovA 1 Reply Last reply Reply Quote 0
        • Alex TrefilovA
          Alex Trefilov @Alan Kilborn
          last edited by Alex Trefilov

          @alan-kilborn because some files was opened via a network and it’s unavailable now.

          If I delete that file from %AppData%\Notepad++\session.xml the problem instantly disappears.

          So Notepad++ needs timeout option that will check availability of files for estimated time.

          Alan KilbornA 1 Reply Last reply Reply Quote 0
          • Alan KilbornA
            Alan Kilborn @Alex Trefilov
            last edited by

            @alex-trefilov

            In my experience, unavailable files from the last session will not prevent N++ from opening after a “reasonable” amount of time. However, the files will be removed from the session that is opened.

            Alex TrefilovA 1 Reply Last reply Reply Quote 0
            • Alex TrefilovA
              Alex Trefilov @Alan Kilborn
              last edited by

              @alan-kilborn I have other expreince now.

              Do you need video proof?

              Alan KilbornA 1 Reply Last reply Reply Quote 0
              • Alan KilbornA
                Alan Kilborn @Alex Trefilov
                last edited by

                @alex-trefilov

                Nope.

                1 Reply Last reply Reply Quote 0
                • Alex TrefilovA
                  Alex Trefilov
                  last edited by

                  Well. How to fix that problem then?

                  gstaviG 1 Reply Last reply Reply Quote 0
                  • gstaviG
                    gstavi @Alex Trefilov
                    last edited by

                    @alex-trefilov
                    The problem is probably for files in network shares.
                    Notepad++ tries to open a file which its path refers to a network share, Windows tries to reconnect with the shared folder and if the shared server is not accessible, the networking timeout is long until the file open fails. Since Notepad++ is single threaded timeouts for multiple files (mainly on different shares) can accumulate into a very long delay.

                    Notepad++ does not know if a path refers to a local file or to a network share so it can’t really do anything about it.

                    The only solution I am aware of is to give up the “Remember current session” and let Notepad++ open empty every time.

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