HTML Foundations: Links and Images: Update WSL2 Instructions
Checks
- [X] This is not a duplicate of an existing issue (please have a look through our open issues list to make sure)
- [X] I have thoroughly read and understand The Odin Project Contributing Guide
- [ ] Would you like to work on this issue?
Describe your suggestion
The first suggestion is to make the file name for the downloaded image consistent with the provided instructions. The instructions state the file name should be "dog.jpg", but the actual downloaded file name is "charlesdeluvio-Mv9hjnEUHR4-unsplash.jpg".
Secondly, following the instructions to drag and drop the file from Windows Explorer to the Terminal Window results in an error: "cp: cannot stat '[directory/filename]': No such file or directory".
Error presented on a Windows 11 machine and using WSL2 with VS Code. The error also presented in the standalone terminal.
Path
Foundations
Lesson Url
https://www.theodinproject.com/lessons/foundations-links-and-images
(Optional) Discord Name
LegacyUnbound
(Optional) Additional Comments
Thanks for your time. I appreciate the time and effort dedicated to this website.
@xandora Any input on this?
Yea, we don't seem to recommend renaming the downloaded the image in the WSL section, it's part of the Linux section immediately before:
Dragging and dropping files into the terminal only works if you're using the Microsoft provided profile (the one with the Tux icon). If you use the Canonical profile, you get incorrect path translation:
@xandora Do you think we can just close this then?
@CouchofTomato we should probably chuck a step into the WSL instructions to rename the file.
I'm downloading the image directly from the lesson page. Isn't everyone getting the same image file?
Everyone should be getting the same image file
Everyone should be getting the same image file
Oh, I wasn't paying close enough attention to the attachments above. I'm using the terminal with the Ubuntu logo. I don't remember choosing between the two. I think that's just what I ended up with after following the steps to setup WSL.
Hey, I'd like to be assigned this issue. I think just adding the instruction to rename to dog.jpg could be added to the end of step 3.
Hey, I'd like to be assigned this issue. I think just adding the instruction to rename to dog.jpg could be added to the end of step 3.
I agree something like, "3.2. Rename the downloaded image to dog.jpg", solves the first part with the name consistency.
It doesn't solve the issue that I'm following along with WSL2 and get a path error as I follow along.
Manually moving an image to a new directory is a pretty simple task in Windows, and I imagine particularly easy for someone actively taking a course to become a full stack web developer.
The way it is now, it would make more sense for the instruction to just say, "move the renamed image file to the new 'images' directory" instead of adding an unnecessary, overly complicated step that causes an error.
@joayo13 Sorry for the delay. All yours if you still want it