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 language server crash when it encounters a file that is not UTF-8 #258

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

AaronAsAChimp
Copy link

This PR fixes the crash by ignoring any file that throws an encoding exception while its being read.

This PR fixes the crash by ignoring any file that throws an encoding
exception while its being read.
@georgewfraser
Copy link
Owner

Can you add a test?

@AaronAsAChimp
Copy link
Author

Sure, I added the test.

@georgewfraser
Copy link
Owner

Tests are failing @AaronAsAChimp can you check that out?

…es that are carried over from previous tests.
@AaronAsAChimp
Copy link
Author

Yes, so this appears to be because FileStore doesn't get reset between tests. I've added a method to reset it, and reset it when the language server is reset in the test fixture.

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