简体   繁体   中英

Can't debug intellij plugin - invalid initial heap size

I'm developing an intellij plugin and when i'm trying to run the plugin (or debug it) i keep getting the following error:

Could not create the Java virtual machine. Invalid initial heap size: -Xms128m

The JVM parameters in the Run\\Debug configurations are (by default):

-Xms128m -Xmx512m -XX:MaxPermSize=250m -XX:ReservedCodeCacheSize=64m -XX:+UseCodeCacheFlushing -ea -Dsun.io.useCanonCaches=false

So eventually I can't debug or run my code.

JVM is unhappy because there are newline characters between options. You can confirm this by copy-pasting VM Options into a text editor.

I met the same problem today. I solved this problem by making the checked and select the IDEA Plugin Sdk。My Idea version is 11.1.5. you can try it..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM