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

New .as files take a long time to get code completion #797

Closed
ylazy opened this issue Mar 3, 2025 · 2 comments
Closed

New .as files take a long time to get code completion #797

ylazy opened this issue Mar 3, 2025 · 2 comments

Comments

@ylazy
Copy link

ylazy commented Mar 3, 2025

Hi!

Whenever I create a new .as file, I have to wait ~30s until code completion starts working.

Please view this video for more info:

Video_250303142519.mp4
@ylazy
Copy link
Author

ylazy commented Mar 3, 2025

If I create files via the EXPLORER dialog, I only have to wait ~15 seconds instead of 30 seconds. But can it be faster?

@joshtynjala
Copy link
Member

The compiler must be having a difficult time parsing one or more of the AS3 files in your project. There must be something uncommon inside those files.

In the past, I have observed that Arrays initialized with hundreds of items between [ and ] could be noticeably slow to parse. However, I seem to recall that it affected the file that contained the array only, and other files were unaffected. It's been several years since I saw that behavior, though, so it might be something different.

Unfortunately, the only way that this can be solved is if you first narrow down which file (or files) is causing the issue.

@ylazy ylazy closed this as completed Mar 4, 2025
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

2 participants