-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
@src.file
file name collisions
#20963
Comments
Related discussion in #19570 , somewhat related also #20864 and #20941. |
One of the use cases of With different files receiving the same path not only would tracy conflate traces from different source files it also has no way of locating the file from that path alone making it useless. Although the zig compiler does not encounter an issue as it does not have imports of other modules with overlapping relative path names, its tracy bindings are susceptible to this issue: Line 70 in f9f8942
|
I've made some comments in #20864 about this issue as well, which I'm linking to mostly because @andrewrk said the same thing there as in the screenshot. To state what ohsnap needs in a goal-oriented way, it's the ability to use the output of |
Just commenting here to say I was the one who initiated this discussion on the discord as I also have a use case for this. Any instrumentation library will need this (like tracy) and most immediate mode uis will use this as well. The usefulness of |
Play with that a little and let me know what you think. |
Will do, having some trouble with the build (not a request for help, working the Discord angle there), but I'll try it out as soon as I can. |
Zig Version
0.14.0-dev.850+ddcb7b1c1
Steps to Reproduce and Observed Behavior
Files from different modules with the same relative path names from their respective root files have the same value for
@src().file
and therefore cannot be distinguished.Expected Behavior
In the context of a single compilation each file should have a unique
@src().file
.The text was updated successfully, but these errors were encountered: