Fix UTF-8 validation and file IO error checking#588
Conversation
Codecov Report
@@ Coverage Diff @@
## master #588 +/- ##
==========================================
- Coverage 29.12% 29.08% -0.04%
==========================================
Files 23 23
Lines 1686 1688 +2
==========================================
Hits 491 491
- Misses 1195 1197 +2
Continue to review full report at Codecov.
|
ZacLN
left a comment
There was a problem hiding this comment.
Could we not re-throw here? This is part of the speculative parent search, if it not a valid file lets just ignore it
I missed this first time around but have just been bitten by it.
|
Not quite sure if those comments are clear: could we avoid rethrowing the error on lines 408 and 427 of textdocument.jl |
So that is the idea: it will not rethrow for |
|
Ah got you! ignore me.. |
|
:) can you approve? |
When I added the more specific error handlers, I forgot to also adjust the validation phase accordingly. Fixes a bug from crash reporting.
I added some stuff, namely it is now also handling
SystemErrorproperly, because those can also happen from file IO problems.