Community
    • Login

    File "doesn't exist. Create it?" wrong extension when opening file

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 1.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.
    • Patrick CullenP
      Patrick Cullen
      last edited by

      I primarily use notepad++ for writing html. When I am editing an HTML document and then try to open a *.txt file I get the error: file.html doesn’t exist. Create it? I am trying to open file.txt, I know that file.html doesn’t exist. I usually have to close notepad++ and re-open it to open a txt file (or any other extension for that matter) I was hoping someone could shed some light on this situation for me.

      Am I doing something wrong or is this a bug?

      Thank you for any input!

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

        @Patrick-Cullen

        You didn’t give 100% detail, so I tried to recreate your problem as best I could.

        I created t.html file and put it on my desktop; I then opened it in Notepad++. I also created a.txt and put it on the desktop so I would have an existing .txt file to open while editing t.html.

        I click the File Open button on the toolbar and I am shown this:

        63f21a2d-5b9f-4992-a4b7-74c5827a94b8-image.png

        I then type a so that it appears like this:

        6134219a-73e9-4103-a178-2b38a9e5e961-image.png

        And then I press the Open button.

        I get this:

        e816f0f0-6e81-4771-8327-b642f00bbb49-image.png

        Is that the same as your experience?

        If so, the cure might be to type this instead:

        55be414b-1363-4ce3-9b4a-6c22fa2130fa-image.png

        When I do it and follow it with pressing the Open button, I see:

        fe19ecab-f88d-47b7-ae5b-c023bd55b9d8-image.png

        1 Reply Last reply Reply Quote 1
        • PeterJonesP
          PeterJones
          last edited by PeterJones

          My guess is that @Patrick-Cullen has Settings > Preferences > Default Directory > ☐ Use new style dialog disabled, so the old-style dialog is auto-appending an extension that wasn’t typed, thus showing yet another reason why the old-style dialog is just evil.

          Alan KilbornA 1 Reply Last reply Reply Quote 2
          • Alan KilbornA
            Alan Kilborn @PeterJones
            last edited by

            @PeterJones said in File "doesn't exist. Create it?" wrong extension when opening file:

            the old-style dialog is just evil

            LOL

            In my posting with the screenshots above, I also had the new-style-dialog setting unticked.

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