sublime-import-helper icon indicating copy to clipboard operation
sublime-import-helper copied to clipboard

JavaScript heap out of memory

Open aashish108 opened this issue 2 years ago • 1 comments

Hey there, is there a solution for this? I keep getting this dialog box on starting Sublime Text or creating new files and saving them.

Import Helper
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

I tried to add `"--max-old-space-size=8192" option to the node_bin path but I don't think that works!

Thanks.

aashish108 avatar Apr 04 '23 07:04 aashish108

Try set NODE_OPTIONS env https://nodejs.org/api/cli.html#node_optionsoptions

set NODE_OPTIONS=--max_old_space_size=8192

It's not good, because it should be global and it will affect other node instances if no override NODE_OPTIONS there

I'll add option node bin in next release

unlight avatar Apr 05 '23 20:04 unlight