djsegal
1
I’m trying to debug JLD2, but can’t find the line that breaks.
I think it’s somewhere in a @generated
function, but adding println’s to it breaks everything.
i.e. I get this error message:
task switch not allowed from inside staged nor pure functions
The function in question is:
And a relevant gif is:
![](https://global.discourse-cdn.com/julialang/original/3X/7/6/7640f2b2ba5a49be8b8d5afc3b25c742db0f9483.gif)
djsegal
3
Thanks @kristoffer.carlsson!
Do you know why Core.println
doesn’t work anymore?
// gonna link to this on the relevant github issue for future lost souls
edit: ignore this. had a typo that prevented a revise reload
It should.
julia> @generated function f(a)
Core.println(a)
nothing
end
f (generic function with 1 method)
julia> f(1)
Int64
1 Like