Skip to content

fix: Abort completion computations when encountering a BadLocationException#1486

Merged
rubenporras merged 1 commit into
eclipse-lsp4e:mainfrom
FlorianKroiss:abort-on-badlocation
Jan 28, 2026
Merged

fix: Abort completion computations when encountering a BadLocationException#1486
rubenporras merged 1 commit into
eclipse-lsp4e:mainfrom
FlorianKroiss:abort-on-badlocation

Conversation

@FlorianKroiss
Copy link
Copy Markdown
Contributor

@FlorianKroiss FlorianKroiss commented Jan 19, 2026

Stop computations when a BadLocationException happens at certain points, because should only happen when the user modified the document while we were computing the completions. The changes made to the document make our completions invalid and thus they will be discarded anyway.

Previously we would log the exception but I don't think that this is necessary.

@FlorianKroiss
Copy link
Copy Markdown
Contributor Author

Draft for #1480

@FlorianKroiss FlorianKroiss marked this pull request as ready for review January 20, 2026 10:44
Copy link
Copy Markdown
Contributor

@rubenporras rubenporras left a comment

Choose a reason for hiding this comment

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

Hi @FlorianKroiss ,

you have convinced me that it is the most pragmatic solution to ignore the BadLocationExceptions for the time being.

could you take a look at my comments?

@FlorianKroiss FlorianKroiss force-pushed the abort-on-badlocation branch 2 times, most recently from 6d2b310 to c30715b Compare January 28, 2026 08:29
@rubenporras
Copy link
Copy Markdown
Contributor

thanks

@rubenporras rubenporras merged commit 1dbc271 into eclipse-lsp4e:main Jan 28, 2026
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants