EmmyLua / IntelliJ-EmmyLua

Lua IDE/Debugger Plugin for IntelliJ IDEA
https://emmylua.github.io
Apache License 2.0
1.72k stars 285 forks source link

PyCharm freezes when using a live template with a colon #570

Open BiterUnion opened 7 months ago

BiterUnion commented 7 months ago

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".

CppCXY commented 7 months ago

Not reproduced on IDEA