Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows: Include repositories from WSL #2

Closed
MrLuje opened this issue Aug 1, 2022 · 7 comments
Closed

Windows: Include repositories from WSL #2

MrLuje opened this issue Aug 1, 2022 · 7 comments

Comments

@MrLuje
Copy link

MrLuje commented Aug 1, 2022

I am using vscode on windows 10 but mainly using WSL2 so 90% of my repositories are in WSL.
By default, the extension shows windows' repository but not the WSL ones, but is would be nice to display both windows & WSL repositories.

Workaround :

  • go to %userprofile%\.vscode\extensions\mohitsingh.repo-0.2.2-win32-x64\bin
  • run repo.exe init
  • edit %APPDATA%\repo.yml and add the following
roots: 
  # host paths
  - path: c:\users\xxxxx  # put your home directory here
  # wsl paths
  - path: \\wsl$\YOUR_WSL_DISTRIB_NAME\home\YOUR_USERNAME\
  • now it should properly show both windows & wsl repositories
@mohitsinghs
Copy link
Owner

Hi @MrLuje, Thanks for the details. I don't use Windows, but I definitely want to improve Windows support. I think we should add this workaround to README as of now. ( Maybe a PR ? ) Meanwhile, I'll be adding ability to detect and scan WSL home in the binary.

I am also in process of moving some calculations from extension to binary and making paths configurable through extension itself.

@MrLuje
Copy link
Author

MrLuje commented Aug 2, 2022

Sure, I'll have a PR for the Readme by the weekend

@MrLuje
Copy link
Author

MrLuje commented Aug 8, 2022

In fact, the workaround is not fully working.
It properly builds the tree view, but fails to open repositories on click

image

@mohitsinghs
Copy link
Owner

mohitsinghs commented Aug 8, 2022

Those seems to be valid wsl paths.
I guess, I'll have to arrange a Windows Machine to debug and verify this. Hopefully, It will be fixed then. I don't have any ETA as of now but I'm on it.

Update
I just quickly tested it on a windows computer and your workaround works great, so maybe something else is going on there. I'll look further into it once I merge tree building for our binary.

@MrLuje
Copy link
Author

MrLuje commented Aug 8, 2022

Looks like the first \ disappeared
The working path if \\wsl$\Ubuntu\home\vince\src\github\rancher\charts (starting with \\)

@mohitsinghs
Copy link
Owner

mohitsinghs commented Aug 9, 2022

I just published v0.3.0 of extension that supports tree view on Windows and is slightly faster.

Unfortunately, WSL support is still unsolved because scanning WSL from Windows is really slow for some reasons. I've added notes in README for limited support of WSL.

@mohitsinghs
Copy link
Owner

Closing this in favor of #4 where we'll be tracking support for scanning remote environments including WSL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants