-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
@__FILE__
not available on workers
#17500
Comments
A workaround for this is
The expression I am inclined to close this issue as a wont-fix |
could at least use a note in |
could also mention |
@amitmurthy Thanks a lot for the work around! :) I'll be using it. |
fixed by #21746 |
likely to regress if it doesn't get tested |
Hi all,
it seems that the
@__FILE__
macro doesn't not return the expected result when evaluated by workers.To illustrate this issue you can create a
test.jl
script containing the following code:Which, when running
julia test.jl
printsAny["/tmp/test.jl"]
as expected. However withjulia -p2
the result isAny["",""]
, which leads to some issues when trying to reliably access files across workers.The tests were ran with:
and
The text was updated successfully, but these errors were encountered: