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](https://cdn.answeroverflow.com/1238403421325885480/Screenshot_2024-05-10_133955.png)
21 Replies
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?Hey @|•°•|, did you follow the guide the bot linked? https://wasp-lang.dev/blog/2023/11/21/guide-windows-development-wasp-wsl
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
@kapa.ai What do you know about the
wasp-bin: no such file or directory
error when using WSL?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?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?
@Boris is also a great guy to ask about Windows related stuff
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)
check if you actually have wasp-bin at that location, then we can check the other things
![No description](https://cdn.answeroverflow.com/1238536343412543589/image.png)
@|•°•| 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.I will do both of them once I reach home
Sorry for making you guys wait tho
![No description](https://cdn.answeroverflow.com/1238684918746185759/image.png)
@Boris, only data is present
![No description](https://cdn.answeroverflow.com/1238685221587779635/image.png)
my .profile file
![No description](https://cdn.answeroverflow.com/1238685699532652565/image.png)