• Login
Community
  • Login

Notepad++ stucks on start

Scheduled Pinned Locked Moved General Discussion
8 Posts 3 Posters 4.2k 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.
  • A
    Alex Trefilov
    last edited by Alex Trefilov Mar 16, 2022, 2:04 PM Mar 16, 2022, 2:03 PM

    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!

    A 1 Reply Last reply Mar 16, 2022, 2:16 PM Reply Quote 0
    • A
      Alan Kilborn @Alex Trefilov
      last edited by Mar 16, 2022, 2:16 PM

      @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.

      A 1 Reply Last reply Mar 16, 2022, 2:19 PM Reply Quote 0
      • A
        Alex Trefilov @Alan Kilborn
        last edited by Alex Trefilov Mar 16, 2022, 2:21 PM Mar 16, 2022, 2:19 PM

        @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.

        A 1 Reply Last reply Mar 16, 2022, 2:23 PM Reply Quote 0
        • A
          Alan Kilborn @Alex Trefilov
          last edited by Mar 16, 2022, 2:23 PM

          @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.

          A 1 Reply Last reply Mar 16, 2022, 2:25 PM Reply Quote 0
          • A
            Alex Trefilov @Alan Kilborn
            last edited by Mar 16, 2022, 2:25 PM

            @alan-kilborn I have other expreince now.

            Do you need video proof?

            A 1 Reply Last reply Mar 16, 2022, 2:52 PM Reply Quote 0
            • A
              Alan Kilborn @Alex Trefilov
              last edited by Mar 16, 2022, 2:52 PM

              @alex-trefilov

              Nope.

              1 Reply Last reply Reply Quote 0
              • A
                Alex Trefilov
                last edited by Mar 16, 2022, 2:54 PM

                Well. How to fix that problem then?

                G 1 Reply Last reply Mar 20, 2022, 8:18 AM Reply Quote 0
                • G
                  gstavi @Alex Trefilov
                  last edited by Mar 20, 2022, 8:18 AM

                  @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
                  2 out of 8
                  • First post
                    2/8
                    Last post
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors