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

Resolving "Infiltrator.jl needs a fully-functional Julia REPL." #129

Closed
arch-dawson opened this issue Nov 17, 2024 · 2 comments
Closed

Resolving "Infiltrator.jl needs a fully-functional Julia REPL." #129

arch-dawson opened this issue Nov 17, 2024 · 2 comments

Comments

@arch-dawson
Copy link

I am receiving this error but I am unsure what a "fully-functional Julia REPL" is.

Contents of startup.jl

using Infiltrator
using Revise

Contents of basic.jl

#!/usr/bin/env -S julia --color=yes --startup-file=yes -i

function add_two(x)
    Main.@infiltrate
    x + 2
end

add_two(2)

From the command line I run ./basic.jl, but I receive the error Infiltrator.jl needs a fully-functional Julia REPL.. Is the Julia REPL running in a shell terminal not "fully functional"? Would you mind clarifying what the error message is intending to convey, or what is incorrect in my setup?

@pfitzseb
Copy link
Member

The issue here is that -i does not start the REPL before running the code in basic.jl (or that given in -e, if applicable). Infiltrator needs all REPL setup to be completed to be functional though. The solution here is to start a REPL and then include() your file manually.

@arch-dawson
Copy link
Author

That worked, thank you!

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

No branches or pull requests

2 participants