IntelliJ-EmmyLua icon indicating copy to clipboard operation
IntelliJ-EmmyLua copied to clipboard

PyCharm freezes when using a live template with a colon

Open BiterUnion opened this issue 2 years ago • 1 comments

Environment(环境)

name version
IDEA version PyCharm 2023.3 (233.11799.259)
EmmyLua version v1.4.9
OS Windows 10

What are the steps to reproduce this issue?(重现步骤?)

  1. In a LUA file, start typing a live template, e.g., func
  2. Press enter to insert template (boxes appear for the function name and parameters)
  3. Type a function name with a colon, e.g., "Helper:test"
  4. Press Tab

What happens?(出现什么问题?)

The IDE freezes.

What were you expecting to happen?(期望?)

The cursor should leave the first box (for function name) and jump to the second one (for the parameters).

Any logs, error output, etc?(有没有什么log, error输出?)

Let me know if you need any specific logs.

Any other comments?(其它说明)

This issue seems to be the colon. Live templates work fine when enetering a name without a colon, e.g., just "test".

BiterUnion avatar Dec 07 '23 12:12 BiterUnion

Not reproduced on IDEA

CppCXY avatar Dec 08 '23 03:12 CppCXY