Closed tsandall closed 7 years ago
Sorry for the slow reply. I was away when your bug report came in, and I forgot about it when I got back.
I wasn't able to reproduce this bug, but I think I see how it happens. I just pushed a change that should fix it. Could you please test bf27d3ba8e1d9899d45a457ffac16c953eb2d647 and let me know? Thanks.
Updated to bf27d3b and did not see the problem. LGTM.
Great! Thanks for testing.
Hello! First of all, thanks for making a great library. I've been happily building a REPL on top of it for a little while now.
Description
Recently, I noticed an issue when pasting text containing newlines into the REPL. Specifically, liner doesn't display the pasted text, however, it seems that liner has received the text and passed it to the REPL.
I only noticed this after recently updating to the tip of master. I manually bisected the history and found that the behaviour changed with 2d7c636d2e41b3bdb8850667c7c977c97870bfbf (which fixed #81).
Steps to reproduce
It may be a bit tricky to reproduce this bug in isolation. The key (in my case) seems to be pasting text containing newlines. If the text doesn't contain a newline, it displays fine.
I can offer you a working example (on Mac):
Note: the paste happens on the first non-empty line after "Run 'help' to see [...]", i.e., "> p :- true".
When I do the same with openpolicyagent/opa:0.2.2, I only see an empty line:
In v0.2.1 OPA is using 8975875355a81d612fafb9f5a6037bdcc2d9b073 and in v0.2.2 OPA is using 3c5f577f62ec95a012ea48a58dd4de3c48222a35. This is what I get for not pinning dependencies with Glide.
Additional Info