keskiju / autocomplete-java

Java autocompletion for Atom editor
https://atom.io/packages/autocomplete-java
MIT License
40 stars 9 forks source link

Uncaught RangeError: Maximun call stack size exceeded, when saving files. #29

Closed diegonz closed 8 years ago

diegonz commented 8 years ago

I have the following error when saving simple java files (arround 30 lines):

screenshot

stacktrace.txt

My working system setup is:

keskiju commented 8 years ago

It seems that this occurs if you execute save again before previous save has ended (e.g. you press cmd-s multiple times in a row). If this bothers you, disable the 'organize imports on save' feature for now. The feature is actually quite useless anyway, because autocomplete-java organizes all imports also while importing a class.

btw. your file is missing a package declaration. Currently organize imports assumes that first line of a java source file contains a package declaration.

keskiju commented 8 years ago

I removed the organize imports on save feature from the latest version, since it is quite useless at the moment.

diegonz commented 8 years ago

Thanks, i can check error has gone. Keep on rockin´!