This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 157237 [details] JSHint is having issues when 'Generate JsHint global directive' JSHint is having issues when 'Generate JsHint global directive' It does not take into account that /* global */ already exists. The file is a new file, copied from an existing other (a unit test). In a single file, there were two "global" variables. Both variables are "added" to the global directive, using the menu on the light bulb. The file is not saved between adding one and the other. A profile is attached.
Created attachment 157238 [details] Another Profile.
Created attachment 157239 [details] Video of what I see happening
I found out that if I wait, the global hint is detected. May be it has to do with my other issue, about formatting being slow (#256057). Looks like something is making everything be slow.
Created attachment 157240 [details] Same thing does not happen in 8.0.2 Same thing does not happen in 8.0.2. Check second video
Thanks for reporting. I'm going to look at this. Just strange thing is that probably nobody touch the between 8.0.2 and 8.1 and the behavior is different. I will evaluate.
Thank you. It became really unusable on my side, and just reverted back to 8.0
I cannot reproduce this in either trunk neither in NB 8.1. Anyway I have improved the possible fix description to be clear global variable will be added to the global directive. This change is here: http://hg.netbeans.org/web-main/rev/e0c4c367620d Both attached snapshot shows that the ide spend significant time to recognize prototype chain. From the video it looks like the file is not parsed, when the file is changed. And from your comment #3 it really looks like the parsing is not finished yet. I need to look at the method ModelUtils.findPrototypeChain
http://hg.netbeans.org/web-main/rev/5e7f30c40904 These change the golden test files to reflect the last change in description. and this http://hg.netbeans.org/web-main/rev/069741e89d68 should speed up the counting prototype chain. It will not work correctly if there will be many types. Then the another fix should be added. Because I'm not able to reproduce it, could I ask to verify the fixes in dev build? You can try it to download from NetBeans.org. Thanks
OK, I'll give it a try, thanks
Wow, it is Much faster. Thank you!
Integrated into 'main-silver', will be available in build *201512290002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/e0c4c367620d User: Petr Pisl <ppisl@netbeans.org> Log: #256471 - JSHint is having issues when 'Generate JsHint global directive'
Luis, can we consider the fix verified by you? Thanks!
Yes, I've checked it and verified it's been fixed. Thank you!
Transplanted to the releases / release81: http://hg.netbeans.org/releases/rev/c8c62ac67540 http://hg.netbeans.org/releases/rev/a812cefbb167