"Transferring Maven repository index" takes over 20 minutes on my computer. Granted, this doesn't happen often but it is extremely painful. Every time I install a new dev build I wipe my userdir and then I'm out of commission for at least 30 minutes where I can't do any work.
This applies (but to a lesser degree) for the "indexing local maven repository" task which also takes a long time (5+ minutes).
Expected behavior: Use the existing repository index (or an empty set) until the new index is ready. It isn't reasonable to block code-complete for more than 10 seconds at a time.
(In reply to comment #0)
> "Transferring Maven repository index" takes over 20 minutes on my computer.
Are you using a local/nearby mirror? If not, you should be. For example: http://wiki.netbeans.org/FaqNexus
> Every time I install a new dev build I wipe my userdir
Probably better to leave var/cache/mavenindex/ at least.
> Use the existing repository index (or an empty set) until
> the new index is ready.
The question is what should be shown that would indicate that the results are incomplete. For example, if you invoke CC on project/build/plugins/plugin/artifactId with groupId already set to org.apache.maven.plugins, and the Central index is not ready, it would be misleading to show an empty list.
A related question is what _should_ trigger indexing. Probably the explicit search dialogs such as for Add Dependency ought to. It may also be feasible for CC in a POM to trigger indexing but not wait for it to finish, so that the same CC a few minutes later would give full results.
> Are you using a local/nearby mirror? If not, you should be. For example:
At last check I am already getting 100k/s so I don't think using mirrors will help much. The process is slow. It probably always will be (again, I am expecting 10 seconds or less).
> The question is what should be shown that would indicate that the results are
The status bar already provides a some indication of stale data. For example, I know that if there is any ongoing indexing operation (whether Maven or "checking external file changes") my search results are likely out of date.
I suggest that if the cache is older than the time Netbeans was launched then simply add the following notice the bottom of code-complete windows: "WARNING: Netbeans is in the process of updating the index."
make all queries into repository indexes non blocking. CC and other UIs will show when results are not complete. No effort is made to eventually return the complete results eventually, leaving it to the user to retry the UI gesture.
only QueryRequest-based code will currently show nothing, I'm not entirely sure if we should
1. enhance the UI to show info about partial results
2. make these queries blocking and wait for the finish of indexing
3. remove the class entirely and use the same non-blocking queries as elsewhere.
Integrated into 'main-golden', will be available in build *201203170400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Milos Kleint <firstname.lastname@example.org>
Log: #200263 make all queries into index non blocking when the index is being updated. just skip the given index, show in various UIs.
*** Bug 192628 has been marked as a duplicate of this bug. ***
*** Bug 184278 has been marked as a duplicate of this bug. ***
*** Bug 205174 has been marked as a duplicate of this bug. ***
*** Bug 205153 has been marked as a duplicate of this bug. ***
*** Bug 201835 has been marked as a duplicate of this bug. ***
Is this now FIXED?
I suppose it is.
I encountered this with build 201206150001.
I've started with empty userdir and this task has been running for at least 15 minutes (20% right now)
Created attachment 120896 [details]
vanob: the stacktrace attached is not from the IDE, but most likely grizzly. You also haven't mentioned if just the task is taking long (which is more than likely and not inherently incorrect) or if code complete is blocked by the task.
No, there is a checkbox for Passive mode in the dialog. In https://abc2xyz.co/asdfghj your screenshot it is not visible, you must scroll down. Attaching screenshot of the FTP configuration.