Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows install stalling #39

Open
mmeroberts opened this issue Mar 5, 2024 · 1 comment
Open

Windows install stalling #39

mmeroberts opened this issue Mar 5, 2024 · 1 comment

Comments

@mmeroberts
Copy link

mmeroberts commented Mar 5, 2024

I started a Powershell in Admin mode:

I ran this npm init sitefox-shadow-fullstack myapp

followed by npm install
On windows I found no make so installed it using choco install make

Than ran make watch and I only see part of the environment set up:

make watch
make -j2 watcher server
make[1]: Entering directory 'C:/Users/.../Documents/projects/myapp'
npx shadow-cljs watch server app
"waiting for devserver.js to appear."
process_begin: CreateProcess(NULL, rm -f devserver.js; until [ -f devserver.js -a -d .shadow-cljs ]; do sleep 1; done; echo "devserver.js appeared. starting.", ...) failed.
make (e=2): The system cannot find the file specified.
make[1]: *** [Makefile:23: server] Error 2
make[1]: *** Waiting for unfinished jobs....
shadow-cljs - config: C:\Users\...\Documents\projects\myapp\shadow-cljs.edn
shadow-cljs - socket connect failed, server process dead?
shadow-cljs - server version: 2.27.5 running at http://localhost:9630
shadow-cljs - nREPL server started on port 49538
shadow-cljs - watching build :server
shadow-cljs - watching build :app
[:server] Configuring build.
[:app] Configuring build.
[:app] Compiling ...
[:server] Compiling ...
[:server] Build completed. (133 files, 0 compiled, 0 warnings, 5.45s)
[:app] Build completed. (142 files, 0 compiled, 0 warnings, 5.71s)

It seems to be stuck at this point

@chr15m
Copy link
Owner

chr15m commented Mar 5, 2024

Hey, thanks for reporting this bug. It looks like the Makefile is failing at this step, which waits for devserver.js to appear and then runs it:

CreateProcess(NULL, rm -f devserver.js; until [ -f devserver.js -a -d .shadow-cljs ]; do sleep 1; done; echo "devserver.js appeared. starting.", ...)

Do you know of an equivalent translation to Windows shell? Or maybe I need to build a small nbb script to do this part. 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants