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

Still hangs when typing in long strings

Open LoganDark opened this issue 2 years ago • 1 comments

Environment

Name Version
IDEA version IntelliJ IDEA 2021.2.3
Luanalysis version 1.3.0
OS Windows 10 2004 build 19041.928 x86_64

Preferences

image

Lua

Name Setting
Language level Lua 5.1

Type Safety

Name Setting
Strict nil checks ☑️
Unknown type (any) is indexable
Unknown type (any) is callabale

What are the steps to reproduce this issue?

  1. start a long string function call like so:

    print([[
    
    ]])
    
  2. start typing right before the closing brackets of the long string. keep typing, few newlines, etc.

  3. the autocomplete will keep popping up and getting gradually more annoying until eventually it completely freezes the IDE

What were you expecting to happen?

I don't expect autocomplete for anything longer than a single word or a short string, but here it's trying to autocomplete literally the thing I'm typing in all of its multiline glory, and apparently once things get too complicated, the IDE implodes

Any logs, error output, etc?

nope. the IDE freezes but there are no errors

Any other comments?

same issue in EmmyLua: https://github.com/EmmyLua/IntelliJ-EmmyLua/issues/403

LoganDark avatar Apr 11 '22 03:04 LoganDark