You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "mbien (via GitHub)" <gi...@apache.org> on 2024/01/06 00:02:08 UTC

[I] Suspicious indexing with dev build from master (NB 21) [netbeans]

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

   ### Body
   
   Was testing something else when I noticed that NB is indexing JDK zips for almost 40s, repeating the test on NB 20 worked fine so it must be a recent change.
   
   1. start with fresh config, don't import config
   2. create maven project, open java file
   3. check log after a while (or observe the background process indicator)
   
   ```
   INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: jar:file:/usr/lib/jvm/default/lib/src.zip!/java.base/ took: 36,619 ms (New or modified files: 3,037, Deleted files: 0) [Adding listeners took: 0 ms]
   INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 1 source roots took: 36,619 ms (New or modified files: 3,037, Deleted files: 0) [Adding listeners took: 0 ms]
   INFO [org.netbeans.ui.indexing]: Indexing finished, indexing took 39,407 ms.
   ```
   
   
   
   ### Committer
   
   - [X] I acknowledge that I am a maintainer/committer in the Apache NetBeans project.


-- 
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


Re: [I] Suspicious indexing with dev build from master (NB 21) [netbeans]

Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing commented on issue #6921:
URL: https://github.com/apache/netbeans/issues/6921#issuecomment-1879703578

   The `dom-stubs.zip` and `core-stubs.zip` files come from the javascript support. Both zips contain JS method stubs, that encode common JS API (the built-in functions and the DOM API). For JS there is a classpath provider, that provides these and they are indexed once when they are first used. They provide the base for JS code completion. I hope that clears this. I suspect at some point JS files were being indexed and thus the CP for these is initialized.


-- 
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


Re: [I] Suspicious indexing with dev build from master (NB 21) [netbeans]

Posted by "mbien (via GitHub)" <gi...@apache.org>.
mbien commented on issue #6921:
URL: https://github.com/apache/netbeans/issues/6921#issuecomment-1879766715

   @matthiasblaesing thanks for elaborating, this clears up why NB is indexing content of those particular zip files, but not quite why the NB thinks it is important to index them while the user is looking at a hello world maven project. E.g I would understand it if I would copy them into a project or maybe open the folder in the favorites view - but I didn't do that.
   
   The multi-file PR must trigger scanning in some way by adding to the paths NB is interested in (or something equivalent).


-- 
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


Re: [I] Suspicious indexing with dev build from master (NB 21) [netbeans]

Posted by "lahodaj (via GitHub)" <gi...@apache.org>.
lahodaj closed issue #6921: Suspicious indexing with dev build from master (NB 21)
URL: https://github.com/apache/netbeans/issues/6921


-- 
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