intellisense not working
I'm using intellij (although this also seemed to be true in VSCode), and intellisense on my latest project doesn't seem to be working for convex functions (e.g. I can't ctrl click on api.x.y to jump to definition). Intellisense works fine for none convex typescript types.
The confusing thing is that it is working for another project of mine. The only difference I can see is the convex version 1.11.0 vs 1.3.1. Downgrading didn't seem to help though.
Are there any other settings I should be taking a look at?
Thanks!
4 Replies
Hey @yarrichar, I would check any tsconfigs between the two projects.
If all else fails I'd start with a working project and then copy over the code, checking along the way that the types still work.
Hey @Michal Srb - thanks for the response.
So I'm not sure exactly what the issue is, but it looks like it was getting confused when returning an unknown type from one of my actions. This seemed to call all convex based types to break.
E.g. this didnt work:
But this did:
There may be something else going on though - I haven't been able to do a simple reproduction yet.
The error I was getting on my action was:
Ah, that's a common issue, see the docs: https://docs.convex.dev/functions/actions#dealing-with-circular-type-inference
Actions | Convex Developer Hub
Actions can call third party services to do things such as processing a payment
Ok, cool. Glad I came up with the right approach - I guess all I would say is that it would be nice if it didn't break all types. But I guess that's hard to avoid.