You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/11/29 10:19:49 UTC

[GitHub] [netbeans] qmegas opened a new issue, #5032: [JS] StackOverflowError when trying to see function declaration

qmegas opened a new issue, #5032:
URL: https://github.com/apache/netbeans/issues/5032

   ### Apache NetBeans version
   
   Apache NetBeans 15
   
   ### What happened
   
   That is a general error that happens to me frequently when trying to navigate to declaration while working on JS code. I can't provide exact code to reproduce, but here is the stack:
   
   ```
   java.lang.StackOverflowError
   	at java.base/java.util.HashMap.hash(HashMap.java:340)
   	at java.base/java.util.HashMap.getNode(HashMap.java:570)
   	at java.base/java.util.LinkedHashMap.get(LinkedHashMap.java:441)
   	at org.netbeans.modules.javascript2.model.api.Index.getCachedValue(Index.java:246)
   	at org.netbeans.modules.javascript2.model.api.Index.query(Index.java:185)
   	at org.netbeans.modules.javascript2.model.api.Index.findByFqn(Index.java:412)
   	at org.netbeans.modules.javascript2.editor.navigation.DeclarationFinderImpl.findPropertyOfType(DeclarationFinderImpl.java:301)
   	at org.netbeans.modules.javascript2.editor.navigation.DeclarationFinderImpl.findPropertyOfType(DeclarationFinderImpl.java:311)
   	at org.netbeans.modules.javascript2.editor.navigation.DeclarationFinderImpl.findPropertyOfType(DeclarationFinderImpl.java:311)
   	at org.netbeans.modules.javascript2.editor.navigation.DeclarationFinderImpl.findPropertyOfType(DeclarationFinderImpl.java:311)
   	.... and so on many times
   ```
   
   ### How to reproduce
   
   _No response_
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Windows 10
   
   ### JDK
   
   16.0.1
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   Yes
   
   ### Code of Conduct
   
   Yes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] qmegas commented on issue #5032: [JS] StackOverflowError when trying to see function declaration

Posted by GitBox <gi...@apache.org>.
qmegas commented on issue #5032:
URL: https://github.com/apache/netbeans/issues/5032#issuecomment-1336427998

   Another, slightly different call stack for same error:
   
   ```
   java.lang.StackOverflowError
   	at org.netbeans.modules.javascript2.model.api.Index.getCachedValue(Index.java:264)
   	at org.netbeans.modules.javascript2.model.api.Index.query(Index.java:185)
   	at org.netbeans.modules.javascript2.model.api.Index.findByFqn(Index.java:412)
   	at org.netbeans.modules.javascript2.editor.navigation.DeclarationFinderImpl.findPropertyOfType(DeclarationFinderImpl.java:301)
   	at org.netbeans.modules.javascript2.editor.navigation.DeclarationFinderImpl.findPropertyOfType(DeclarationFinderImpl.java:311)
   	at org.netbeans.modules.javascript2.editor.navigation.DeclarationFinderImpl.findPropertyOfType(DeclarationFinderImpl.java:311)
   	at org.netbeans.modules.javascript2.editor.navigation.DeclarationFinderImpl.findPropertyOfType(DeclarationFinderImpl.java:311)
   	at org.netbeans.modules.javascript2.editor.navigation.DeclarationFinderImpl.findPropertyOfType(DeclarationFinderImpl.java:311)
   	at org.netbeans.modules.javascript2.editor.navigation.DeclarationFinderImpl.findPropertyOfType(DeclarationFinderImpl.java:311)
   	at org.netbeans.modules.javascript2.editor.navigation.DeclarationFinderImpl.findPropertyOfType(DeclarationFinderImpl.java:311)
   	.... and so on many times
   ```
   
   After that error a navigation window and variable highlighting stops working completely.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


[GitHub] [netbeans] qmegas commented on issue #5032: [JS] StackOverflowError when trying to see function declaration

Posted by GitBox <gi...@apache.org>.
qmegas commented on issue #5032:
URL: https://github.com/apache/netbeans/issues/5032#issuecomment-1370995433

   Confirm that error exists on Netbeans 16.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists