method_source icon indicating copy to clipboard operation
method_source copied to clipboard

EncodingError is raised when checking code strings containing symbol literals with invalid UTF-8 chars for completeness

Open egwspiti opened this issue 9 years ago • 2 comments

> MethodSource.complete_expression?('x = :"\xC3"')
 => EncodingError: invalid encoding symbol

Although this code string has invalid utf-8 chars, it is complete, and thus true should be returned.

egwspiti avatar Feb 06 '16 18:02 egwspiti

I don't think it's possible to fix this easily given the mechanism this (and even my (fast_method_source)) library works.

kyrylo avatar Feb 06 '16 20:02 kyrylo

Then I guess pry/pry#1516 should be reopened.

egwspiti avatar Feb 08 '16 17:02 egwspiti