IntelliJ-Luanalysis
IntelliJ-Luanalysis copied to clipboard
Executing the Rename action on some files causes severe freeze
Environment
Name | Version |
---|---|
IDEA version | GoLand 2023.2 |
Luanalysis version | v1.4.0 |
OS | macOS 13.4.1 |
Preferences
(Preferences -> Languages & Frameworks > Luanalysis)
Lua
Name | Setting |
---|---|
Language level | Lua 5.3 |
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?
- Open a project that has many Go files. My project has 292 Go source files.
- Select a file in Project Tool window
- Execute "Rename" action, expecting the Rename Popup
What happens?
GoLand freezes for up to 10s while its CPU usage tops 900% before the Rename Popup appears.
What were you expecting to happen?
The Rename Popup appears instantly.
Any logs, error output, etc?
Nope
Any other comments?
Depending on the file I choose, the time it takes for the popup to appear varies, but I couldn't find out what factors contribute how much to the freeze time. Even files with identical path depth, identical file extension, identical file name length and similar file content show significantly different outcomes.