Community
    • Login

    Npp with WSL UNC Path

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 3 Posters 327 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.
    • Siddharth KaulS
      Siddharth Kaul
      last edited by

      So i use Notepad++ on windows host and my development environment is usually a wsl system where all the source code is checked out.
      I load the workspace in the notepad++ using the UNC path that looks like below:

      \\wsl.localhost\<os_name>\home\<username>\<repo_name>
      

      This works well most of the time. Except for when a new folder addition or a new file addition is performed in the original location.

      It looks like somehow it caches the files and does not show the new folder or file unless and until the workspace is reloaded or the notepad++ is rebooted. For example here is current snapshot of my workspace that shows a missing folder named vDVT.
      eebc2eb0-85a9-450c-b822-96f20ab7d997-image.png

      If one goes in the location as shown below one can see the vdvt folder being there.
      80008719-5472-4c34-835f-24b3f6147205-image.png

      The rebooting of the workspace is quite annoying and wondering is there a way to “referesh” the workspace instead of removing the folder and adding it back?

      xomxX 1 Reply Last reply Reply Quote 2
      • xomxX
        xomx @Siddharth Kaul
        last edited by

        @Siddharth-Kaul said in Npp with WSL UNC Path:

        Except for when a new folder addition or a new file addition is performed in the original location.

        I have found the same problem with WSL as you, while fixing a N++ FAW-treeview initial network storage sorting bug.

        Looks like the N++ FAW-changes watchdog is currently working only for the local Windows drives (I saw also other users reports on the N++ GitHub about that). Meanwhile for the network ones (WSL, WebDAV, Samba, etc…) a manual FAW reset (Remove/Add FAW-root) workaround is needed.

        It will probably be necessary to update the way/WINAPIs the N++ uses for detection of these changes so that the WinOS also reports changes for these network storage.

        PeterJonesP 1 Reply Last reply Reply Quote 3
        • PeterJonesP
          PeterJones @xomx
          last edited by

          @xomx said in Npp with WSL UNC Path:

          a manual FAW reset (Remove/Add FAW-root) workaround is needed.

          Would it be technically feasible to have a “Refresh” button in the FaW interface, which does a sequence similar to that, so you could do a manual refresh without having to remove/add manually?

          Even without the massive rework to improve auto-detection on non-local drives, that would at least be a more-reasonable workaround than the manual remove/add.

          xomxX 1 Reply Last reply Reply Quote 1
          • xomxX
            xomx @PeterJones
            last edited by

            @PeterJones said in Npp with WSL UNC Path:

            Would it be technically feasible to have a “Refresh” button in the FaW interface

            It should be, at least I can’t think of any such problems now.
            But it is not a “one line change” as it touches the GUI…

            Also - users would like to add sorting commands there.

            PeterJonesP 1 Reply Last reply Reply Quote 3
            • PeterJonesP
              PeterJones @xomx
              last edited by

              I looked up the various FaW refresh requests, including #9209 and #11004.

              In February, Don said that he’d look into #9209, and self-assigned it, but it doesn’t appear he’s worked on it. I pinged both open requests; maybe he’ll be able to look into either the GUI refresh button or the better UNC-directory change detection.

              Siddharth KaulS 1 Reply Last reply Reply Quote 2
              • Siddharth KaulS
                Siddharth Kaul @PeterJones
                last edited by

                Thanks @PeterJones @xomx for responding i have subscribed to both the #9209 and #1104. Thanks for pointing me out to those existing issues.

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