I am trying to open Visual Studio Code from Cypress on my Mac by clicking on a file in the Cypress Test Runner, but I am encountering the following error message in VSC:
"Could not open myfirstspec.cy.js in the editor. The editor process exited with an error: spawn EACCES."
This is my first time using Cypress, and I have already tried changing the file permissions, running Visual Studio Code as an administrator using the sudo command in Terminal, and reinstalling both Cypress and Visual Studio Code, but the error persists.
Terminal Input
File Permission: chmod +x myfirstspec.cy.js
Visual Studio Code: sudo /Applications/Visual\ Studio\ Code.app/Contents/MacOS/Electron
What could be causing this error, and how can I fix it?