qmegas opened a new issue, #4825: URL: https://github.com/apache/netbeans/issues/4825
### Apache NetBeans version Apache NetBeans 15 ### What happened Since version 15 global variables like `window` and `document` were removed from the list of known global variables (PR #4252). So once upgrading to version 15 we got that confusing situation: <img src="https://user-images.githubusercontent.com/2444896/196906099-4274d0e8-8008-4edc-810e-7261d3f672f5.PNG"> Variables which are really well known as global variables are flagged as "not declared", but at the same time variables like `jQuery` and `$` which are still in the list, but at the same time not necessarily present in the project, are not flagged. ### How to reproduce Example code: ```js function demo() { window.confirm("Really search?"); document.querySelectorAll("textarea"); console.log('Test'); jQuery('#test'); $('#test2'); } ``` ### Did this work correctly in an earlier version? Apache NetBeans 14 ### Operating System Windows 10 ### JDK 16.0.1 ### Apache NetBeans packaging Apache NetBeans provided installer ### Anything else I'm not java developer, but I guess that change that caused that done here https://github.com/apache/netbeans/pull/4252/files#diff-8c9ba7db442e02c9ff8534e66cc66c1ce317ed3f3dd8375657d579c4cc2728b4L62 ### Are you willing to submit a pull request? No ### 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
