Showing no such file or directory when I do wasp db migrate-dev

I copied my folder to WSL, and then opened that folder in WSL, and ran the command
No description
21 Replies
kapa.ai
kapa.ai5mo ago
Hi @|•°•|. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Based on the knowledge sources, it seems like you might be encountering an issue with the path of your project directory. If your project directory's path contains white spaces, the wasp db migrate-dev command might fail because it breaks on that white space. This issue was reported in a Github issue (https://github.com/wasp-lang/wasp/issues/1486) where the Wasp CLI command was not handling white spaces in the path while running the app. To resolve this issue, you could try moving your project to a directory path that does not contain white spaces. If the issue persists, it might be helpful to check if you have the necessary permissions set up properly, especially if you're using Docker. You can follow this Docker guide (https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user) to manage Docker as a non-root user. If you're using WSL, you might find this guide (https://wasp-lang.dev/blog/2023/11/21/guide-windows-development-wasp-wsl) helpful. It provides step-by-step instructions for developing with Wasp on Windows using WSL. Remember to always run the wasp db migrate-dev command from the correct project directory. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @|•°•|, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
Filip
Filip5mo ago
Hey @|•°•|, did you follow the guide the bot linked? https://wasp-lang.dev/blog/2023/11/21/guide-windows-development-wasp-wsl
|•°•|
|•°•|5mo ago
I had referred to that link before I posted here, yet it didn't happen For context, I am building that websockets-react & wasp voting
Filip
Filip5mo ago
@kapa.ai What do you know about the wasp-bin: no such file or directory error when using WSL?
kapa.ai
kapa.ai5mo ago
Let me check the knowledge base for you. One moment! :books: ---------------------- The wasp-bin: no such file or directory error might occur due to a few reasons: 1. File changes not detected by wasp start in WSL2 when using the Windows filesystem: This is a known issue with WSL2 where wasp start does not automatically recompile and hot-reload the web page when making changes if the project is on a Windows file system. The recommended solution is to keep your source files of your Wasp project on the Linux file system, not the Windows file system. This issue has been documented in a Github issue (https://github.com/wasp-lang/wasp/issues/603). 2. Temporary files causing crashes: In some cases, certain editors like Webstorm or other IntelliJ editors create a temporary file on edit that wasp start picks up and then crashes when the buffer is saved. This issue was reported in a Github issue (https://github.com/wasp-lang/wasp/issues/187) and has been fixed. 3. Whitespace in the project directory path: If your project directory's path contains white spaces, the Wasp CLI command might fail because it breaks on that white space. This issue was reported in a Github issue (https://github.com/wasp-lang/wasp/issues/1486). If you're encountering this error, ensure that your project files are on the Linux file system if you're using WSL2, avoid having white spaces in your project directory path, and ensure that your editor isn't creating temporary files that could interfere with wasp start. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @sodic, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
Filip
Filip5mo ago
Ok, that's definitely not right 😄 I don't have a windows system to test this out. @martinsos Does the error look familiar to you?
miho
miho5mo ago
@Boris is also a great guy to ask about Windows related stuff
Boris
Boris5mo ago
I'll verify if 0.13.2 works on my Windows machine and if it does, I'll suggest couple of steps to try out (IIRC it does normally, but I will verify soon)
Boris
Boris5mo ago
check if you actually have wasp-bin at that location, then we can check the other things
No description
martinsos
martinsos5mo ago
@|•°•| another thing we can try: run curl -sSL https://get.wasp-lang.dev/installer.sh | sh in your WSL again. This should (re)install Wasp on your system. It will also tell you where it installed wasp -> please copy those paths and paste them here, so we can confirm where it got installed. Finally, make sure to follow the instructions for adding wasp to PATH. Then we can see from here.
|•°•|
|•°•|4mo ago
I will do both of them once I reach home Sorry for making you guys wait tho
|•°•|
|•°•|4mo ago
No description
|•°•|
|•°•|4mo ago
@Boris, only data is present
|•°•|
|•°•|4mo ago
No description
|•°•|
|•°•|4mo ago
my .profile file
No description
Want results from more Discord servers?
Add your server