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

encore.gen.go not being generated #1499

Open
echarrod opened this issue Oct 18, 2024 · 1 comment
Open

encore.gen.go not being generated #1499

echarrod opened this issue Oct 18, 2024 · 1 comment

Comments

@echarrod
Copy link
Contributor

Hey team 👋

Backgounrd

  • I started on a new project that someone else created. I think I ended up running encore run before they did (don't know if this is relevant).
  • My app runs successfully, and I can see the endpoints on the developer dashboard.

Problem

  • My encore.gen.go is not being generated for any service (I've checked I'm not hiding hidden files either)
  • Thus I'm not able to call a service's endpoints from another service (as I'm using service structs)

Info

  • I was on encoredev/tap/encore 1.41.11, upgraded to 1.42.0, but still having the issue
@echarrod
Copy link
Contributor Author

Realised this was because I had:

export ENCORE_RUNTIMES_PATH=/Users/ed/dev/other/encore/runtimes
export ENCORE_GOROOT=/opt/homebrew/Cellar/encore/1.41.11/libexec/encore-go

declared from when I was trying to run encore locally (from these instructions). After I commented them out, this went away!

Wondering how the encore devs got round this issue though! And whether it might be possible to error in this scenario, since it fails silently

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

1 participant