codesandbox-client icon indicating copy to clipboard operation
codesandbox-client copied to clipboard

Unable to run codesandbox.io workspace on local VSCode with extension

Open deCodeIt opened this issue 2 years ago • 7 comments

🐛 bug report

Preflight Checklist

  • [x] I have read the Contributing Guidelines for this project.
  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Description of the problem

Unable to run codesandbox.io cloud workspace on my local machine via vscode. I've got the VSCode Codesandbox extension installed and logged in but it gets stuck at the following output whenever I try creating a sandbox locally or via cloud.

Opening sandbox in VSCode, sandbox 6vzdsm
Fetching sandbox...
Installing SSH keys...

There is no output after this line in codesandbox terminal.
I can see ssh keys at ~/.ssh/csb/* and the same included as the following in my ~/.ssh/config.

# CodeSandbox SSH Integration
Include "csb/config"
# End of CodeSandbox SSH Integration

How has this issue affected you? What are you trying to accomplish?

I'm trying to run the cloud ( web ) codesandbox.io workspace on my local mac laptop using vscode so that I can install recommended extensions and work natively as I'm used to developing in vscode. Due to the issue, I'm unable to use vscode and am forced to use the web version of codesandbox while working.

Platform Details:

VSCode: 1.84.2

In case the following helps:
~/.ssh/config - 600 permission
~/.ssh/csb/config - 644 permission
~/.ssh/csb - 755 permission

To Reproduce

Link to sandbox: link (optional)

Your Environment

Software Name/Version
Сodesandbox v0.2.105
Browser Chrome Version 119.0.6045.159 (Official Build) (x86_64)
Operating System Mac 12.4 (Intel)

deCodeIt avatar Nov 20 '23 03:11 deCodeIt

Hello @deCodeIt

Please could we ask you to disable other extensions, then try this again?

JamesACS avatar Nov 20 '23 13:11 JamesACS

Have the same issue exactly. VSCode is hanging on the installing SSH keys. It happens randomly, but most of the time it's not working.

flashlabs avatar Mar 07 '24 16:03 flashlabs

me2 :(

spookyuser avatar Mar 30 '24 18:03 spookyuser

I am also having the same issue here and It's happening at multiple occasions, and I think it needs to be thourugly addressed, the CodeSandbox VS code extension is very unstable CSB You can see in the photo that the branch doesn't connect but the terminal runs from the codesandbox in the browser I even tried to unistall and install vscode it doesn't work, please address this issue it's slowing down progress

Malewooo16 avatar May 25 '24 14:05 Malewooo16

Hi @Malewooo16! Could you check that both VS Code and the CodeSandbox extension are on the latest version? And please also check the extension environment is set to 'production' rather than 'staging' in the settings.

filipelima18 avatar May 28 '24 15:05 filipelima18

Seems like there's no solution for that problem. I'm also facing the same issue

mrssm97 avatar Jul 03 '24 11:07 mrssm97