-
-
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
@__DIR__ and @__FILE__ don't expand abspath in run. #26323
Comments
I believe this is caused by #3150. Since the parser can't see inside the command string, it is not able to insert source location information for the macro call. We can partially work around it by having the |
Why doesn't the problem occur on v0.6? |
The way that |
I understand. Thank you! |
This is still a bug. We only intended to change the implementation of |
Just noticed that this particular issue should be fixed by #37007 as well. |
In Julia v0.7,
@__DIR__
(@__FILE__
) doesn't expand to a string with the absolute path to the directory (file) inrun
.For example, package
MyModule
with following structure:MyModule.jl
I think above behavior is non-intuitive. It is more consistent in v0.6.
Tested on ArchLinux.
The text was updated successfully, but these errors were encountered: