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

Can't do courses from Windows #60

Open
a21stCenturyPeon opened this issue Sep 24, 2024 · 2 comments
Open

Can't do courses from Windows #60

a21stCenturyPeon opened this issue Sep 24, 2024 · 2 comments

Comments

@a21stCenturyPeon
Copy link

Path: /cli/installation
also /cli/usage

A WSL image can't see the host machine, and any IDE you install in the host Windows can't see inside the WSL image, so if you're doing the work from an IDE in Windows, you can't use the codecrafters command, or any of the pipe commands in the course instructions.

@rohitpaulk
Copy link
Member

@a21stCenturyPeon could you try this? https://code.visualstudio.com/docs/remote/wsl

Will see how we can improve the docs here.

@a21stCenturyPeon
Copy link
Author

a21stCenturyPeon commented Sep 24, 2024

Thanks for the quick reply.

I had some joy with doing almost everything except code editing from within the WSL image:
(I'm doing the grep course)

  1. After installing WSL, open a session: wsl --install Ubuntu
  2. From the Ubuntu prompt, run udo apt-get update then run sudo apt-get install -y dotnet-sdk-8.0
  3. Still in the Ubuntu prompt, Go to the folder where you want to clone the project repo into, and follow the project steps.
  4. Back in Windows, open Visual Studio Code and install the WSL extension, and open the project folder that's in the image (as detailed in your link)
  5. In VS Code, do your edits.

Running the command-line execution commands from either the terminal window, or a WSL terminal window inside VS Code, gives a successful build, but that's the end of my success so far.

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