-
Notifications
You must be signed in to change notification settings - Fork 342
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 exists, but ENOENT: no such file or directory...
reported.
#1229
Comments
@ruffin-- a workaround is to specify your installed node version as the runtime using the Let me know if that helps. |
Update: Gave it a shot. Yep, adding Out of curiosity, what's causing it to blow up? The paths of things that work seem as long or longer than some that fail. Is it b/c they start with |
VS Code updated to v1.55.0 and now I'm receiving Output says...
I no longer receive the above error after removing That is, I'm not 100% confident this is a sure fix. I'm in another project now; will try with the one that was giving the original errors when I return. |
@ruffin-- you need to set the runtime setting to a node executable (e.g. node.exe). In addition you need to confirm. The reason why this will address the issue is that it looks like you are using JS constructs which aren't support in the node runtime VS Code ships. |
@dbaeumer I'm experiencing the same issue, changing node runtime doesn't help; tried 14, 15, 16.
|
@Niaro this could be the old Windows path limitation of 256 characters. Your path is 271 characters long. Need to see if this is a problem with realpath. |
That was my assumption too, I changed the registry setting to support long paths and nothing has changed. Although I didn't restart the machine... Could be it |
I am actually not very familiar with the workaround of the long path name issues in Windows. |
I get this error when I create a new file. To fix it I have to restart the LSP workspace. Closing and re-opening the file doesn't fix it. |
I have the same problem, someone knows how to solve it, at the moment the solution is to upload that component a subfolder before, and there it reads, but when many subfolders eslint does not support it.
|
I am also seeing this issue on a Windows machine with the registry setting to allow for long file paths turned on. No visible errors but files with a path over 256 are not showing the linter errors. |
@thomaswdean I had to move the files because I did not find suddenly someone has managed to solve it |
@luis-cosillo Thank you. I am considering doing the same. I just wanted to post here to see if anything is being done to address this issue. |
@thomaswdean Yes, I still hope to have it because it may be later on, depending on the project, but hopefully they will fix it. |
I do not think this has been fixed yet... Same issue |
Follow the only solution is to rename files |
This is an actual issue which might be hard to fix. |
For me error looks like this:
This file existed in different branch. |
Same issue here (Windows 11), occurs when filepath length is greater than Windows MAX_PATH length, even though long paths are enabled both in policies and registry. In my case, filepath length is 302. Manually using Looking forward for a fix. Log:
UPD: Seems like it's Windows issue rather than plugin. |
They still haven't fixed it, I think we will die without a solution |
I've done some research and probably it's related to a node version VS Code is using. My VS Code setup: There was an issue (nodejs/node#44536) with Sadly, we cannot do anything until VS Code starts using a newer version of Node. |
@tryonelove actually you can. You can use |
I'm receiving the following error for some, but not most, files in my project.
Note that failure is silent. I have to open the Output tab to see that anything's wrong. I would not have known except that I noticed issues eslint should have caught.
(Actual user name in paths changed to protect the innocent.)
Files with this error (not necessarily exhaustive, but all I can find atm):
Works from the same parent folder:
The "no such file or directory" makes me suspect it's not the contents of the files that's the issue, which is why I'm giving paths here.
But additionally note that If I move a file that won't lint to, eg,
c:\temp\composite-permissions.service.js
, it lints as expected. Another piece of evidence that it's not content?If I execute
eslint C:\workspaces\WebProduct\Features\MF-QBvN2\Source\Instructor\QuestionBuilder\QuestionBuilder.Web\Scripts\QuestionBuilder\Bank\Models\composite-permissions.service.js
from a command prompt in theC:\Users\usernam
directory, the file lints as expected.Is there a limit to the characters in a file path specific to the extension? Anything else I can send?
The text was updated successfully, but these errors were encountered: