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

ftl dev can go haywire if types.ftl.go does not exist #4287

Closed
stuartwdouglas opened this issue Feb 4, 2025 · 2 comments
Closed

ftl dev can go haywire if types.ftl.go does not exist #4287

stuartwdouglas opened this issue Feb 4, 2025 · 2 comments

Comments

@stuartwdouglas
Copy link
Collaborator

Reproducer:

  • find examples/go -name types.ftl.go -exec rm {} \;
  • ftl dev examples/go

Everything goes haywire

@github-actions github-actions bot added the triage Issue needs triaging label Feb 4, 2025
@alecthomas alecthomas mentioned this issue Feb 4, 2025
@matt2e matt2e self-assigned this Feb 4, 2025
@github-actions github-actions bot removed the triage Issue needs triaging label Feb 4, 2025
@matt2e
Copy link
Collaborator

matt2e commented Feb 6, 2025

@stuartwdouglas works for me! What kind of "haywire" were you seeing?

ftl🐚 mtoohey ~/Code/ftl [matt2e/build-without-types] $ find examples/go -name types.ftl.go -exec rm {} \;
ftl🐚 mtoohey ~/Code/ftl [matt2e/build-without-types] $ ftl dev examples/go                               
info:console: Building console...
info:http-ingress: HTTP ingress server listening on: http://127.0.0.1:8891
info:console: Web console available at: http://127.0.0.1:8899
info: Controller started in 0.05s
info:http-ingress: FTL startup command ⚡️
info:time:build: Building module
info:cron:build: Building module
info:mysql:build: Building module
info:http:build: Building module
info:postgres:build: Building module
info:pubsub:build: Building module
info:postgres:build: Module built (5.10s)
info:cron:build: Module built (5.11s)
info:pubsub:build: Module built (5.11s)
info:http:build: Module built (5.12s)
info:time:build: Module built (5.91s)
info:mysql:build: Module built (3.07s)
info:echo:build: Building module
info:echo:build: Module built (2.71s)
info:provisioner0: Provisioning postgres database: postgres_testdb
info:provisioner0: Provisioning mysql database: mysql_testdb
info:provisioner0: Provisioning subscription for verb: cookPizza
info:provisioner0: Provisioning subscription for verb: deliverPizza
info:provisioner0: Provisioning topic: pubsub.pizzaReadyTopic
info:provisioner0: Provisioning topic: pubsub.newOrderTopic
info:provisioner0: Provisioned SQL migration for: dpl-postgres-3k90zxgh8x9twsni.testdb
info:provisioner0: Provisioned SQL migration for: dpl-mysql-1m0ktu5s3bgpnk3f.testdb
info:build-engine: Changeset chs-52g82kkd5xftnhw4 deployed and ready
info:build-engine: All modules deployed in 22.57s, watching for changes...
info:cron: Frequent cron job triggered.
✔[cron]      ✔[echo]      ✔[http]      ✔[mysql]     ✔[postgres]  ✔[pubsub]    ✔[time]  
>  

@matt2e matt2e removed their assignment Feb 6, 2025
@wesbillman
Copy link
Collaborator

Oh yeah! I tried this yesterday as well and it worked ok for me too, but I forgot to add a comment here 🤦

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

3 participants