Closed tkindy closed 3 years ago
Is there a recommended way to start the server and client apps at once now? Should I just manually use npx shadow-cljs watch app
for the CLJS compilation alongside lein run
for the service?
Yeah, looks like Calva settings need to be updated for the change as well. Using npx shadow-cljs watch app
is the way to go now. Pinging @PEZ regarding Calva settings update. :)
Hello,
@tkindy, I haven't looked in to it yet. But from what I read in this conversation I think your hunch is correct. Now you will no longer be able to work with both the server and the client from the same VS Code window. Try this:
shadow-cljs
project typeLeiningen
project typePlease let me know if this doesn't work.
@yogthos, I'll have a look at this and see what needs to be changed in configuration and documentation. It would be nice if we could save the ability to work with the server and client from the same VS Code window. That was pretty sweet. 😄
Thanks for the confirmation @PEZ! I agree, it'd be great to have both client and server running from the same VS Code window if possible. Let me know if I can help in any way!
@tkindy I still can run and hack on both the server and the client using shadow-cljs only jack-in. Like so:
shadow-cljs
and the app
and test
builds.ctrl+alt+space space
)You probably should change :lein true
in shadow-cljs.edn
to :lein {:profile "+dev"}
in order for the server dev dependencies to be satisfied.
@yogthos, I'll fiddle around a bit with the Calva configuration and will PR an update when I've figured out something that works.
In 4.10, the
lein-shadow
plugin was removed from the+shadow-cljs
template. However, it's still referenced as part of the custom Calva commands in.vscode/settings.json
. This command now fails since thelein-shadow
plugin is no longer available.