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

Request textDocument/codeAction failed #693

Closed
ylazy opened this issue Jun 23, 2023 · 4 comments
Closed

Request textDocument/codeAction failed #693

ylazy opened this issue Jun 23, 2023 · 4 comments

Comments

@ylazy
Copy link

ylazy commented Jun 23, 2023

I'm using the latest build (bundled-compiler + bin).

image

log.txt

@joshtynjala
Copy link
Member

java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space

It appears that you may need to increase the maximum memory used by the extension using the as3mxml.languageServer.jvmargs setting. I believe you would do this by specifying Java's -Xmx argument. The example below sets it to 2 GB.

"as3mxml.languageServer.jvmargs": "-Xmx2g"

@ylazy
Copy link
Author

ylazy commented Jun 30, 2023

Increasing the maximum memory used by the extension seems to fix the issue but it leads to another issue.

image

High CPU + RAM usage when I edit a large .as file.

@ylazy
Copy link
Author

ylazy commented Jul 10, 2023

Workaround: Restarting VSCode sometimes did, sometimes did not fix the high memory & cpu usage issue. But terminating the java se process always fixes the issue. My memory usage reduced from ~2gb to ~700mb and cpu reduced from ~100% to ~0%.

@joshtynjala
Copy link
Member

I'm guessing that this may have been caused by the linter, which I determined is pretty expensive to run, so I turned it off. Let me know if it still happens, but I'm closing for now.

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