datagrok-ai / public

Public package repository for the Datagrok.ai platform
MIT License
43 stars 26 forks source link

#3009: Calculated column hints break with round bracket + curly bracket #3009

Closed ptosco closed 2 weeks ago

ptosco commented 1 month ago
  1. Load qnum.csv into native DG
  2. Open browser dev console
  3. From the menu, pick Edit->Add New Column
  4. Call the column test
  5. Start typing if(${I, then pick the Id hint: the dev console fills with errors: image
  6. Now type comma, and then space: when you hit space, the ${Id} parameter disappears (see #2981)
  7. From this point, it is impossible to type anything unless you reposition the cursor after each keystroke.

The only way to recover is to cancel the dialog and restart from scratch without adding the curly bracket after the $.

Note that the trigger of the bug is the presence of an open round bracket and an open curly bracket. The open round bracket alone does not cause problems if $ is not followed by open curly bracket. Similarly, the open curly bracket after $ does not cause problems unless it is preceded by an open round bracket.

It looks like the problem lies in the bookkeeping of brackets, as in #2981.

dnillovna commented 1 month ago

This issue has been mirrored in Jira: https://reddata.atlassian.net/browse/GROK-16525

MariaDolotova commented 1 month ago

Fixed in PowerPack 1.1.13

LesiaPavlenko commented 2 weeks ago

v. 1.21.1 PowerPack v.1.2.0