You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Dave Power (Jira)" <ji...@apache.org> on 2021/07/06 10:24:00 UTC

[jira] [Comment Edited] (NETBEANS-5836) Editor unable to parse Javascript file

    [ https://issues.apache.org/jira/browse/NETBEANS-5836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17375440#comment-17375440 ] 

Dave Power edited comment on NETBEANS-5836 at 7/6/21, 10:23 AM:
----------------------------------------------------------------

Christian.  The failure occurs with a PHP project holding a custom wordpress theme which includes a Node project as well as javascript and HTML.

Yesterday, I removed NetBeans and JDK and reinstalled both NetBeans and JDK 16 in a windows 10 environment.  I also removed the contents NetBeans holds in the user Local and Remote folders in the AppData area.  I've then added my "wordpress" project to NetBeans and left it to rescan the entire project, with the result that the cache in APPData/Local/NetBeans is now 7.6GB and the APPData/Roaming/NetBeans is now 4.6GB.  I am still getting errors about running out of heap space.

[NB, The wordpress theme includes a Guttenberg development block which uses Node JS so it has dragged in a massive number of javascript files.]

My problem is that I'm not sure where to start to look as to the cause.  I tried chopping down a script library which appears to be the cause of the problem yesterday and I could reproduce the problem consistently which I reported yesterday, but I don't know whether there is some underlying corruption in the cache which is the source of the problem.

Please can you provide some suggestions on the best steps to try to isolate the problem.  e.g. How do I reset the netbeans cache/environment?  Are there some Java settings that could be adjusted.  Is there some debug mode to understand what is going wrong?  (e.g. get confirmation of which line / file is being processed when the error occurs)


was (Author: davewp196):
Christian.  The failure occurs with a PHP project holding a custom wordpress theme which includes a Node project as well as javascript and HTML.

Yesterday, I removed NetBeans and JDK and reinstalled both NetBeans and JDK 16 on a windows 10 environment.  I also removed the contents on the NetBeans holds in the user Local and Remote folders in the AppData area.  I've then added my "wordpress" project to NetBeans and left it to rescan the entire project, with the result that the cache in APPData/Local/NetBeans is now 7.6GB and the APPData/Roaming/NetBeans is now 4.6GB

My problem is that I'm not sure where to start to look as to the cause.  I tried chopping down a script library which appears to be the cause of the problem yesterday and I could reproduce the problem consistently, but I don't know whether there is some underlying corruption in the cache which is the source of the problem.

Please can you provide some suggestions on the best steps to try to isolate the problem.  e.g. How do I reset the netbeans cache/environment?  Are there some Java script settings that could be increased.

> Editor unable to parse Javascript file
> --------------------------------------
>
>                 Key: NETBEANS-5836
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5836
>             Project: NetBeans
>          Issue Type: Bug
>          Components: javascript - Editor
>    Affects Versions: 12.4
>         Environment: Windows 10 (with latest patches)
> NetBeans 12.4
>            Reporter: Dave Power
>            Priority: Critical
>         Attachments: IDE.log, UI.log, scripts.js
>
>
> Attempting to open the javascript file scripts.js causes a parsing error.
> NullPointerException: The content parameter cannot be null
> It is a cut down version of a much larger file, but this file seems to trigger the error everytime I attempt to open it and set it to be the active window.
> The navigator window does appear to show the correct results, but in the complete version of the file, the navigator window stops working and NetBeans just goes into an endless loop.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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