I'm currently working on the bookbot project in the boot.dev course, using CLI and VS Code, which is connected to my GitHub. I've run into a problem where Ubuntu isn't updating VS Code as expected. When I create a new file using the command `touch main.py` in the root of my workspace on Ubuntu, it shows up when I run `ls`, but it doesn't appear in the VS Code editor. Conversely, if I create a file directly in VS Code, it doesn't show up in the terminal when I run `ls`. How can I get these two to sync up? According to the course, they should be compatible, but something seems off. Thanks!
UPDATE: I discovered I can open the terminal within VS Code and run commands from there, but I still wonder why using the Ubuntu app separately wouldn't reflect the new file in VS Code. It's not a major issue, but I'm curious about how everything interacts.
UPDATE 2: The course requires using the external Ubuntu app since we need to run commands in the terminal for auto-grading tasks. I created the new file in the VS Code terminal, but when I ran the script for auto-grading, it returned "bash: bootdev: command not found." I'm back to square one with the sync issue!
1 Answer
It sounds like we might need to troubleshoot a bit here. The file viewer in VS Code just reflects the Ubuntu file system, so it should definitely show your files. It shouldn't matter if you're using the terminal directly from Ubuntu or the one in VS Code—they're doing the same thing. Have you checked if you’re in the correct folder in VS Code? It’s easy to overlook. If you can share a screenshot, that would really help too!
Thanks for the quick response! I just figured it out—there's something about typing out the problem that helps clarify things. I usually just abandon posts like this, but this time I had to reach out!