-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Missing detection of __findFile
usages.
#622
Comments
Why not? Is it gonna hurt users with other implementations? Because now it hurts people with cppnix, which are the majority. Also this might only mean that nixd could use another configuration parameter being the nix implementation used. People without cppnix would not use this thing in their codebase anyway. And this thing is quite popular. |
Please note that the language reference only states that
But it never said So I don't think it is correct to treat this syntax as a user of
It is not a consideration about implementations, but about what is "exposed" from a language's specification. |
Do you mean this is about usability vs correctness? |
This is the first time, I hear of |
Actually nix does allow overriding many base "internal implementation". For example,
will be expanded into
And in fact users can redefine
|
Oh. We shouldn't users encourage to do that I suppose. It's ok for debugging tools to show these internals, but endusers should not write their code in this way. If it would help to resolve the issue, maybe it could be turned into a warning that an internal symbol is used? |
Agreed. Hi @voronind-com, would you like to accept this solution? i.e. let nixd mark warnings at internal symbols usages. |
I'm unsure. The I still vote that Should warnings be added on top of that or not is another question. |
Well probably fair. I am just not sure how hard to special case it is nice. |
Describe the bug
Right now nixd reports
__findFile
as unused even when there are<>
references.Expected behavior
Using
<path>
references marks__findFile
arg as used.Screenshots
The text was updated successfully, but these errors were encountered: