kitlangton / zio-app

Quickly create and develop full-stack Scala apps with ZIO and Laminar.
124 stars 33 forks source link

Starting with zio-app dev seems to call incorrect sbt commands #3

Closed stevewillcock closed 3 years ago

stevewillcock commented 3 years ago

Hi,

Running zio-app dev in the generated directory starts the two pane UI (which is nice!) but the sbt commands seem to fail - see screenshot:

image

Manually running

sbt "~backend/reStart"
sbt "~frontend/fastLinkJS"

in two terminals (and yarn run vite in another) seems to get everything working ok and the app appears and live-reloading works on code changes - this all looks great by the way (I'm new to laminar but it definitely looks interesting!)

I also tried running

sbt ~ frontend/fastLinkJS

with no quotes and a space between the tilde and the project name (this is what appears in the terminal when I run `zio-app dev' and at first I thought the lack of quotes and/or space was the problem but I'm not sure this is what's actually running under the covers). Anyway that gives a similar but slightly different error (I also tried the backend call with the same results):

image

I'm on MacOS Big Sur 11.2.3 in case that makes a difference. I'm running zsh but I also tried with bash and got the same results.

Thanks!

stevewillcock commented 3 years ago

On further investigation, running sbt -no-colors in a terminal fails in my environment with the above error for some reason - just trying to work out if that's specific to my sbt install

stevewillcock commented 3 years ago

So I think this is my (very basic) recent clean sbt install (1.5.0 installed using coursier) which doesn't support -no-colors

stevewillcock commented 3 years ago

Thanks for fixing :)