finos / kdb-studio

Studio for kdb+ / Rapid execution environment for q
Apache License 2.0
18 stars 12 forks source link

error hint for 'limit is out of date #145

Open adavies42 opened 12 months ago

adavies42 commented 12 months ago

the remote end throwing 'limit results in the following being printed:

An error occurred during execution of the query.
The server sent the response:
limit
Studio Hint: Possibly this error refers to tried to generate a list longer than 2,000,000,000

this is out of date for modern q; for current meanings, see https://code.kx.com/q/basics/errors/#runtime-errors

gyorokpeter commented 11 months ago

How about the other errors that changed meanings between versions like branch or locals?

If the user is still connecting to a 2.x instance, this can be confusing because they see that the error message says "110 max" but they are getting it for a function with only 25 locals.

We could complicate things by requesting .z.K from the server, and adjusting the error hints depending on what version is returned, but that assumes that the .z.K query is not blocked by a security check.