Debugging hanging build - "Analyzing source code..."
Hey all,
I have a NextJS project with Convex.
I am using the
RAG
and Agent
components, other then that nothing special in my setup.
Not quite sure why but when I run my dev
command the process hands on "Analyzing source code..."
I have no idea why it hangs, probably an error somewhere.
Is there a way to run the command with some "debug" or "verbose" flag?
Any help would be appreciated š
Thanks6 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
UPDATE:
After some time I got this error:
UPDATE 2:
Running
convex codegen --debug
hangs as well.
It outputs what seems to be an empty implementation of the generated files and is stuck on "Analizing source code..."GitHub
convex-js/src/cli/lib/deploy2.ts at main Ā· get-convex/convex-js
TypeScript/JavaScript client library for Convex. Contribute to get-convex/convex-js development by creating an account on GitHub.
Running with
CONVEX_VERBOSE=1
I see this error:Just spitballing a random thought...
Any chance you might have a circular dependency reference in your Convex functions? I would think that the devs would have designed a way to detect this and alert users, but maybe not.
Hey @Clever Tagline thanks!
Yeah thats what I thought too.. but can't find any - of course I could have missed it.
The issue was resolved after I moved some code around so I assume it was actually related to some circular dep thing I'm just not sure what.