Skip to content

Commit 0fe1590

Browse files
authored
Merge pull request #145 from serenity4/call-on-backend-fix
Adjust `print_response` workaround to minor REPL refactor
2 parents 65db85a + cfadddb commit 0fe1590

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "Infiltrator"
22
uuid = "5903a43b-9cc3-4c30-8d17-598619ec4e9b"
3-
version = "1.9.0"
3+
version = "1.9.1"
44

55
[deps]
66
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"

src/Infiltrator.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,8 +861,10 @@ end
861861
# on the REPL backend already, so that would cause a deadlock. Luckily we can pass
862862
# nothing instead of the actual REPL backend to work around that.
863863
@static if hasmethod(REPL.print_response, (IO, Any, Nothing, Bool, Bool, Union{AbstractDisplay,Nothing})) &&
864-
isdefined(REPL, :eval_with_backend) &&
865-
hasmethod(REPL.eval_with_backend, (Any, Nothing))
864+
(isdefined(REPL, :eval_with_backend) &&
865+
hasmethod(REPL.eval_with_backend, (Any, Nothing)) ||
866+
(isdefined(REPL, :call_on_backend) &&
867+
hasmethod(REPL.call_on_backend, (Any, Nothing))))
866868

867869
function print_response(repl, response, show_value, have_color)
868870
repl.waserror = response[2]

0 commit comments

Comments
 (0)