Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Still hangs when typing in long strings #123

Open
LoganDark opened this issue Apr 11, 2022 · 1 comment
Open

Still hangs when typing in long strings #123

LoganDark opened this issue Apr 11, 2022 · 1 comment

Comments

@LoganDark
Copy link

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: EmmyLua/IntelliJ-EmmyLua#403

@LoganDark
Copy link
Author

A potential fix for this was just made:

EmmyLua/IntelliJ-EmmyLua@6590fd7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant