New queries can't reference other components

When I create a new JS query, the query editor is unable to reference/intellisense any other components, variables, queries etc.

If I save and close the editor, then reopen the query, referencing works.

It's no biggie, just slows up dev flow.
Any thoughts?

2 Likes

The linter is saying it isn't defined, but at runtime it should still work, have you tried running the code anyway? It can be annoying to see the warning, but at least if it works you can put off refreshing until you've finished making changes(?)

@bobthebear it still works, yes - but that wasn't the concern I was raising.

That you don't get the intellisense functions (autocomplete, introspection, parameter definitions, etc) in a new query slows up dev workflow. So I was just bringing this to Retool's attention.

oooohhhhhhhhhh, my bad! People worried about the warning preventing things from working is pretty common so I def jumped to a conclusion there... ya sorry :laughing:.

:upside_down_face: It use to show a linter error while still working, hopefully the next step is the warning which would fix intellisense. On a random side note, I had a teacher that preferred to use notepad++ for everything.... it was NUTS watching him go at it w hotkeys lookin like a Fortnite pro all without intellisense :rofl:

2 Likes