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

Executing the Rename action on some files causes severe freeze #160

Open
zzJinux opened this issue Aug 4, 2023 · 0 comments
Open

Executing the Rename action on some files causes severe freeze #160

zzJinux opened this issue Aug 4, 2023 · 0 comments

Comments

@zzJinux
Copy link

zzJinux commented Aug 4, 2023

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?

  1. Open a project that has many Go files. My project has 292 Go source files.
  2. Select a file in Project Tool window
  3. 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.

@zzJinux zzJinux changed the title Execute the Rename action on some files causes severe freeze Executing the Rename action on some files causes severe freeze Aug 4, 2023
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