vtst / ow

Various Eclipse plugins for web development
http://www.normalesup.org/~simonet/soft/
74 stars 29 forks source link

JS: Eclipse hangs on code completion #64

Open deno opened 12 years ago

deno commented 12 years ago

New project, fresh Eclipse for JS developers (Indigo), OW 0.2.4 is only plugin besides JSDT.

Only file is hello.js

hello = function() {
  var tmp = ["foo".«»]
};

«» marks code completion site.

Attempting any kind of code completion within array literal causes Eclipse to hang, utilizing 100% CPU for single core. UI is not responsive.

Reproducible: Always.

deno commented 12 years ago

This didn’t happen with 0.2.2 AFAIK.

vtst commented 12 years ago

Thanks for the bug report. I was able to reproduce the problem. I'll try to fix it in the next version.

vtst commented 12 years ago

It seems that the problem comes from the JavaScript parser from Closure Compiler.