5261 Issues and Requirements (Memory Bug and JS Bug/Feature Request)

Internal Bug
There is (at least on my MacBookPro) an issue where when viewing a JSP with some JavaScript in it a huge memory problem. The application starts allocating memory and goes into constant garbage collection mode unless I constantly do a manual GC until I can change the settings to those seen in the screenshot below.

JavaScript Bug
The internal JavaScript parser and index builder needs to be smart enough when reading JavaScript to overcome blocks such as

. Now that being said I have issues with this code as

should be replaced with

since it is not clear if the var should exist only within that block.

Nonetheless many new JS frameworks do this style of detection to determine if a variable of their scope exists already, so as to not overwrite it. The fact that IDEA cannot see this variable ensures that I have thousands of warnings and when including dojo.js.

Opinions?



Attachment(s):
Picture 1.png
1 comment
Comment actions Permalink

Hi,

These are bugs, please, provide cpu snapshot for first issue. I will
take care of nonscoped vars (second issue)

Gabriel Harrison wrote:

Internal Bug
There is (at least on my MacBookPro) an issue where when viewing a JSP with some JavaScript in it a huge memory problem. The application starts allocating memory and goes into constant garbage collection mode unless I constantly do a manual GC until I can change the settings to those seen in the screenshot below.

JavaScript Bug
The internal JavaScript parser and index builder needs to be smart enough when reading JavaScript to overcome blocks such as


. Now that being said I have issues with this code as


should be replaced with


since it is not clear if the var should exist only within that block.

Nonetheless many new JS frameworks do this style of detection to determine if a variable of their scope exists already, so as to not overwrite it. The fact that IDEA cannot see this variable ensures that I have thousands of warnings and when including dojo.js.

Opinions?


------------------------------------------------------------------------



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.