• Login
Community
  • Login

Npp with WSL UNC Path

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
6 Posts 3 Posters 332 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.
  • S
    Siddharth Kaul
    last edited by Nov 4, 2024, 12:51 PM

    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?

    X 1 Reply Last reply Nov 4, 2024, 6:55 PM Reply Quote 2
    • X
      xomx @Siddharth Kaul
      last edited by Nov 4, 2024, 6:55 PM

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

      P 1 Reply Last reply Nov 4, 2024, 7:13 PM Reply Quote 3
      • P
        PeterJones @xomx
        last edited by Nov 4, 2024, 7:13 PM

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

        X 1 Reply Last reply Nov 4, 2024, 7:25 PM Reply Quote 1
        • X
          xomx @PeterJones
          last edited by Nov 4, 2024, 7:25 PM

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

          P 1 Reply Last reply Nov 4, 2024, 7:48 PM Reply Quote 3
          • P
            PeterJones @xomx
            last edited by Nov 4, 2024, 7:48 PM

            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.

            S 1 Reply Last reply Nov 5, 2024, 3:31 PM Reply Quote 2
            • S
              Siddharth Kaul @PeterJones
              last edited by Nov 5, 2024, 3:31 PM

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