-
Notifications
You must be signed in to change notification settings - Fork 30k
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
ENOENT error message inconsistencies #12351
Comments
I think it is worth unification. |
Hi @targos , Is this being worked upon? Can I take it? |
@aastikta28 I don't think it's being actively worked on. To summary:
Either way the C++ side of things must be updated, so I am not sure if this is a good first issue, if you are comfortable with C++ and the bindings then it certainly could be. I guess the |
Ah, also just realized this is a breaking change since it changes the error messages that are likely to be matched by the users, I am not sure if there are any popular modules that special-case for these errors. The fixes would need CITGM runs. |
@joyeecheung Thanks for the wonderful explanation. It looks way more complicated than I thought. But, I can definitely get started on the trivial part of just updating the c++ code for process.chdir without any migration. How can I get started on that? |
@aastikta28 You can check out the contributing guide on general guidance for building Node, committing and submitting PRs. To fix the error message, replace this: Line 1625 in feaf6ac
with
You can learn more about how the error message is constructed by reading the code of |
Would like to take a shot at this, if no one else's taking it up. |
@SirR4T Heads up: I am currently working on |
BTW, I wrote a file name wrong in #12351 (comment) , to fix |
Cool, thanks! was about to look into
Could you elaborate a bit here? or point to your changes in |
Also, forget about the second part of #12351 (comment), it turns out that the particular errors in |
Hi @joyeecheung , still trying to understand what "take a context" would mean here. In #19089, I see that in C++ land, an |
are there work still pending on this? |
I can see that |
I cannot think of another way than just iterating over all appropriate |
I will close this issue for now, but let us know if you find any more inconsistencies. |
Currently, most of the ENOENT error messages have a similar signature:
Error: ENOENT: no such file or directory, [call] '/full/path/to/filename'
For example:
I've stumbled upon 2 cases that have different and somehow confusing signatures:
Are these cases worth unification? Can they be addressed in Node.js or they are libuv features?
The text was updated successfully, but these errors were encountered: