curriculum icon indicating copy to clipboard operation
curriculum copied to clipboard

HTML Foundations: Links and Images: Update WSL2 Instructions

Open NobleValerian opened this issue 1 year ago • 10 comments

Checks

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.

NobleValerian avatar Aug 09 '24 03:08 NobleValerian

@xandora Any input on this?

CouchofTomato avatar Aug 10 '24 14:08 CouchofTomato

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: image

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: image

xandora avatar Aug 12 '24 04:08 xandora

@xandora Do you think we can just close this then?

CouchofTomato avatar Aug 12 '24 11:08 CouchofTomato

@CouchofTomato we should probably chuck a step into the WSL instructions to rename the file.

xandora avatar Aug 12 '24 12:08 xandora

I'm downloading the image directly from the lesson page. Isn't everyone getting the same image file?

NobleValerian avatar Aug 12 '24 14:08 NobleValerian

Everyone should be getting the same image file

CouchofTomato avatar Aug 13 '24 14:08 CouchofTomato

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.

NobleValerian avatar Aug 13 '24 14:08 NobleValerian

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.

joayo13 avatar Aug 14 '24 14:08 joayo13

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.

NobleValerian avatar Aug 14 '24 14:08 NobleValerian

@joayo13 Sorry for the delay. All yours if you still want it

CouchofTomato avatar Aug 26 '24 12:08 CouchofTomato