• Login
Community
  • Login

Cannot open a file from WSL2 share with Notepad++

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
7 Posts 5 Posters 1.3k 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.
  • R
    Raigo Tingas
    last edited by Jan 26, 2021, 11:22 AM

    Hi,

    I have a WSL 2 drive mounted in Windows 10:

    b844c038-9c2b-4645-a022-8077e3476963-image.png

    Te problem is that if i try to open any file with Npp then i get the following error:
    0af3723c-2ec9-450b-908b-3ae8447bc101-image.png

    The same file opens just fine with other editors. Is there a way to make this work with Npp?

    Regards

    P 1 Reply Last reply Jan 26, 2021, 3:16 PM Reply Quote 0
    • P
      PeterJones @Raigo Tingas
      last edited by Jan 26, 2021, 3:16 PM

      @Raigo-Tingas ,

      I don’t know the specific WSL2 technology for network drives.

      However, I use Notepad++ on a daily basis to edit files throughout my network at work, including mounts from other windows machines and mounts from Linux samba servers. I usually use the full UNC path (\machine\path\to\file.txt) rather than mapping to a drive letter (like your Z:), but I can also use a mapped network drive without difficulty.

      As far as I know, if Windows can see then file, then Notepad++ should be able to see the file.

      R 1 Reply Last reply Jan 27, 2021, 10:44 AM Reply Quote 1
      • R
        Raigo Tingas @PeterJones
        last edited by Jan 27, 2021, 10:44 AM

        @PeterJones

        I also have no problems with regular network drives. This only seems to occur with WSL2 mounts.

        A colleague of mine is having the exact same problem on his setup so its not just me. Strange thing is that this only affects Npp, regular Notepad and all other editors are able to open and edit the files just fine.

        1 Reply Last reply Reply Quote 1
        • G
          gstavi
          last edited by Jan 27, 2021, 11:32 AM

          Note that the message refers to Folder and not File. I tried to lookup it up in the code. Didn’t reverse engineer the entire mess but it seems to be related to snapshot and/or backups.

          Try disable them both and see if the file opens.
          If so try to find the which setting exactly cause the failure.

          1 Reply Last reply Reply Quote 3
          • W
            WinterSilence
            last edited by WinterSilence Sep 15, 2021, 1:55 PM Sep 15, 2021, 1:52 PM

            same problem - notepad don’t found wsl disc and files. windows notepad open wsl files without any problems

            On screen explorer and npp file > open.
            e8c616a3-6b7d-4b3d-9cfa-884b3ce9272e-изображение.png

            M 1 Reply Last reply Sep 15, 2021, 2:03 PM Reply Quote 0
            • M
              Michael Vincent @WinterSilence
              last edited by Sep 15, 2021, 2:03 PM

              @WinterSilence
              @Raigo-Tingas

              Works fine for me with Notepad++ 8.1.4 64-bit using the network drive approach:

              b4a241a3-9164-40e7-9e58-cfb0e6832881-image.png

              as well as the net use drive letter approach:

              1bf7ab3c-31fd-498c-8ba9-bfd7ba26c3fd-image.png

              Cheers.

              W 1 Reply Last reply Sep 15, 2021, 2:25 PM Reply Quote 0
              • W
                WinterSilence @Michael Vincent
                last edited by Sep 15, 2021, 2:25 PM

                @Michael-Vincent i found problem - i open NPP before add disc and it’s not displayed

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