-
Notifications
You must be signed in to change notification settings - Fork 220
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: no such file or directory, realpath '...' #2783
Comments
Not really reproducing this error, I get a different one if I run from the root because it the compiler loaded is different from the one used to compile the file which is kinda expected if you don't have a compiler there. If I run from the typespec-go directory it works fine. |
On Windows? I reran my repro steps using the compiler from
|
ah no I am testing on OSX(missed your message :)) , is this happening for anything else or just that spec? What version of node are you using too? |
It's all the ones under client/structure. Likely due to |
It is very weird because it does say it cannot find that path but you clearly have it. Could it be related to this issue on node? nodejs/node#39721 could you try a different node version? |
I was on |
I'm also seeing this in a separate Rush repo I set up for the Liftr team. For some reason the
The weird thing is that the file definitely exists, but even PowerShell gets tripped up on it:
Is pnpm somehow creating some files with weird attributes that cause this issue? |
Interesting, what version of Pnpm are you using and with rush do you use the workspace setting? |
Was on pnpm |
This appears to be a |
Where would I check for the workspace setting? |
I think David the issue is just long path on windows there seems to be a recent fix in node that hasn’t been released |
Weird that PowerShell hits the same issue outside of Node, though. Will the fix prevent pnpm from creating such a long path? |
Well it seems like Pnpm is working fine, windows on the other hand still can’t get that working correctly so not surprised powershell neither and this only happens with the promise version, works with the sync and the |
For powershell this seems to explain it https://igorpuhalo.wordpress.com/2019/08/29/overcoming-long-path-problem-in-powershell/ |
See also: pnpm/pnpm#7355 I also tried using the pnpm setting |
Note that this might be Windows-specific as the issue didn't repro on macOS (haven't tried Linux).
Execute the following command (fix up directories as required).
Produced error.
The text was updated successfully, but these errors were encountered: