-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Circular symlink detected error #22052
Comments
Edit: I added a desired behavior, because i forgot to type something there. |
@yCaetano7, thanks for logging this issue. I was able to reproduce your issue by running |
Thanks for the response, but i need some explanation. What do you mean by |
The |
Oh, i see. Me and a colleague of mine managed to fix this. Thanks for the replies! |
This seems to only affect linux (and presumably windows) users - we run predominantly on macos and most of our devs have not been affected. We have a symlink in a folder not part of our spec pattern, e.g.
|
Can confirm; making an new folder in C:/USERNAME/cypress fixes the issue... I had it too... So the folders; fixtures, support and a newly created folder (already init Cypress before, using Windows 11) |
Same here and resolved. Thx. |
Thanks this worked for me as well. |
also same, thanks! v12.13.0 on Windows 10 Pro |
Had the Same Issue. Fixing it with switching out of the %USER% Folder fixed it (v13.1.0). |
I had the same issue with Cypress 13.6.0 on Windows 10 I use NVM-windows to manage my nodejs versions and this solution relies on symlinks for globally installed npm packages. I could solve it by installing Cypress in a specific folder ( |
Experiencing this problem cypress is installed via yarn globally in PowerShell 7.4.1
PS C:\Users\Madni\cypress> yarn cypress open
yarn run v1.22.19
warning package.json: No license field
$ C:\Users\Madni\node_modules\.bin\cypress open
DevTools listening on ws://127.0.0.1:63131/devtools/browser/b9987347-6da5-4569-83c2-50fc8f378916
Circular symlink detected: "C:\Users\Madni\AppData\Local\Programdata" points to "C:\Users\Madni\AppData\Local"
Error: Circular symlink detected: "C:\Users\Madni\AppData\Local\Programdata" points to "C:\Users\Madni\AppData\Local"
at E._getEntryType (<embedded>:3932:7466)
at async E._read (<embedded>:3932:6206)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. This issue occur each time i run yarn open on a new project. Refereed symlink folderThis directory is super odd and just reference its parent directory PS C:\Users\Madni\AppData\Local> ls programdata
Get-ChildItem: Access to the path 'C:\Users\Madni\AppData\Local\Programdata' is denied.
PS C:\Users\Madni\AppData\Local> cd programdata
PS C:\Users\Madni\AppData\Local\Programdata> ls
Get-ChildItem: Access to the path 'C:\Users\Madni\AppData\Local\Programdata' is denied.
PS C:\Users\Madni\AppData\Local\Programdata> cd programdata
PS C:\Users\Madni\AppData\Local\Programdata\Programdata> cd temp
PS C:\Users\Madni\AppData\Local\Programdata\Programdata\temp> On my home PC it does not exist: Set-Location: Cannot find path 'C:\Users\andre\AppData\Local\Programdata' because it does not exist. Don't know what this directory is and why it is needed and why it refer to its parent directory. Resolve the issue (Workaround)Removing the symlink Unsure what this actually brakes down the line.
|
Current behavior
Greetings, i'm having a problem with Cypress since i updated it to version 10.0.0, where Cypress doesn't work properly.
Excuse my lack of knowledge, but i really need to use Cypress for work.
I've always used "./node_modules/.bin/cypress open" to open Cypress via Windows PowerShell for my tests, and as of right now, it still works, but the moment i click on "E2E Testing", an error message shows up in Windows PowerShell and Cypress closes.
This is Cypress opening just fine:
![image](https://user-images.githubusercontent.com/106766198/171684360-caee93ce-3934-4e7b-b94a-91dce60be791.png)
And this is what shows up after i click on "E2E Testing":
![image](https://user-images.githubusercontent.com/106766198/171684559-3e1afdb5-cfe0-4e9e-978a-8fc77df9f43b.png)
The error seems to be caused by a "circular symlink", but i'm not sure if that's the problem nor what that means. I'm not really knowledgeable with these things, but i can't seems to find anything or anyone talking about this! I did try to get help in the official Discord server, but no one seem to know what this means.
I would really like to understand what a circular symlink means, and why is this happening.
Thanks in advance, for anyone who may understand and help me with this issue.
Desired behavior
Cypress should be opening just fine, but for some reason, it closes and an error shows up in PowerShell.
Test code to reproduce
I don't know what to put here since the error is outside of the actual coding within Cypress, so all i have to say is that i use this line of command to open Cypress with Windows PowerShell:
./node_modules/.bin/cypress open
Cypress Version
10.0.1
Other
Just to make sure, i'm using Windows 10 Pro.
The text was updated successfully, but these errors were encountered: