Text insertion is lagging
Answered
Text insertion is lagging for me. I'll type and then take my fingers off the keys and the editor plays catch-up.
I've seen that you guys will most likely ask for a CPU snapshot. If you could also direct on how to do that, that would be awesome.
Please sign in to leave a comment.
Please see https://intellij-support.jetbrains.com/hc/articles/207241235. Report directly at https://youtrack.jetbrains.com/issues/IDEA with the CPU snapshot and the logs (https://intellij-support.jetbrains.com/hc/articles/207241085) attached.
I'll start on that right away.
So I have created a copy of the idea.vmoptions file called idea.vmoptions.copy in the same directory. Will the IDE load my copy automatically?
Also just to be clear this is happening in the text editor and not any terminal input prompts
No, see https://intellij-support.jetbrains.com/hc/articles/206544869. Use Help | Edit Custom VM Options.
Okay I get it now. I added the profiler line to the idea.vmoptions file, but now I can't open idea. When I try to run idea from the command line, I get this error: `LSOpenURLsWithRole() failed with error -10810 for the file /Applications/IntelliJ IDEA CE.app.`
See the note about the Community Edition in the article describing how to enable profiler. Since the profiler agent is not bundled with the CE, the easiest way would be to install and use UE trial with the agent bundled.
Currently downloading the UE. Do I have to enable the profiler again or is it in the Help menu already?
You have to enable it as described in the document since CE and UE are not sharing the settings.
The text input lag is nonexistent in the UE. I have enabled the profiler and everything.
Probably some third-party plug-in you have installed in CE is causing it.
I have installed no 3rd party plugins. The only plugins that are enabled are the plugins that come default.
Unfortunately, without the CPU snapshot it's hard to tell what's the problem.
What is the plugin directory for the Community Edition (Mac OSX). Maybe the profiler didn't install correctly.
Profiler agent for CE has to be copied manually and profiling started from YourKit trial edition, not from the IDE. It's complicated.
Is there an article with the steps on how to do this?
No, except this:
IntelliJ IDEA and PyCharm Community Editions do not include a YourKit profiler agent, because the YourKit agent library is not open-source. To take a CPU or memory snapshot with the Community Edition, you can download an evaluation version of YourKit Java Profiler, copy the yjpagent library to the IDE bin directory, add it to the .vmoptions as described above, and connect to the running IDE instance from the standalone YourKit Profiler UI.
I'll just switch over to the UE. I have a license for school anyways. Why this problem exists in the CE and not the UE is perplexing.