Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: avoid panic when drive path is empty #1078

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

vigoux
Copy link
Contributor

@vigoux vigoux commented Apr 15, 2024

I had texlab crash reproducibly lately when commenting/uncommenting lines within my neovim setup.

It turns out the root problem is an invalid array acces in a utility function.

I feel like the problem is that neovim is sendly weirdly formed events, but in any case, it is better to gracefully handle such problems rather than erroring out hard like the previous behavior.

This solved my problem.

I am not sure about how to add tests for such cases, but I can try to add one if needed, given guidance.

@pfoerster
Copy link
Member

@vigoux Thanks!

@pfoerster pfoerster merged commit 76837fe into latex-lsp:master Apr 15, 2024
4 checks passed
@vigoux vigoux deleted the fix/panic-empty-path branch April 15, 2024 18:12
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