-
Notifications
You must be signed in to change notification settings - Fork 16
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
Invalid call to sandbox
in Julia 1.11-beta
#86
Comments
it would be useful to have a MWE for this that can be run just in the REPL. |
I can reproduce this with the following: using TestEnv
pkg = "Sunny" # Replace this with something in your environment
TestEnv.activate(pkg) do
()
end Reduced from the original code: https://github.com/julia-vscode/julia-vscode/blob/9b009459727161f9292d2890d6c5433ec6932960/scripts/packages/VSCodeTestServer/src/VSCodeTestServer.jl#L226-L228 Thanks! |
The new TestEnv.jl/src/julia-1.7/activate_do.jl Lines 17 to 20 in 621a776
Could be modified (for Julia 1.11) to become: return sandbox(ctx, pkgspec, joinpath(path, "test"), test_project_override) do
flush(stdout)
f()
end As a reference, see how |
I encountered the following error when trying to use TestItemRunner in combination with Julia 1.11-beta:
The text was updated successfully, but these errors were encountered: