Skip to content

Conversation

@lahodaj
Copy link
Member

@lahodaj lahodaj commented Mar 12, 2025

This (NetBeans) patch:
apache/netbeans@0d6fb1a
introduced a new feature, where errors for all files are reported from the LSP server to the client when indexing finishes.

But, it does so by taking the list of files with errors, and re-running the diagnostic task on them. When there are many files with errors, this may get very slow.

This PR speeds the process significantly, by reusing errors collected during indexing:
apache/netbeans#8206

but that patch could use some baking time, to see if there are any issues with it.

Hence here, I propose to disable the error publication after indexing for now. Note that if the file is opened in the editor, the errors should be published normally as before. The effect of this PR is that the behavior should be the same as in previous versions of this extension (before the NetBeans 25 upgrade).

@lahodaj lahodaj added the bug Something isn't working label Mar 12, 2025
@lahodaj lahodaj added this to the JVSC 24.0.0 milestone Mar 12, 2025
@lahodaj lahodaj requested a review from Achal1607 March 12, 2025 16:38
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Mar 12, 2025
Copy link
Member

@Achal1607 Achal1607 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@Achal1607 Achal1607 merged commit 5521708 into oracle:main Mar 13, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants