Skip to content
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

Create New Codespace fails if the current repo was cloned using SSH #159287

Closed
Tracked by #160047
lramos15 opened this issue Aug 26, 2022 · 5 comments
Closed
Tracked by #160047

Create New Codespace fails if the current repo was cloned using SSH #159287

lramos15 opened this issue Aug 26, 2022 · 5 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded

Comments

@lramos15
Copy link
Member

lramos15 commented Aug 26, 2022

Was trying to verify #158384

  1. I installed the github remote repos, and the remote repos extension as I did not have those on desktop
  2. I tried to find Edit Sessions but couldn't. However, with Edit sessions disabled there is a sign into edit sessions entry (first confusion)
  3. I found the setting and enabled edit sessions and tried to create an edit session inside a codespace and was prompted with this
    image git status reported no issues finding the repo name or owner. Nothing was really special about this repository (second confusion).
  4. Figured it might need a reload because this is my first time enabling this settings. So I reload and am prompted with
    image which is extra bizarre because I was just told in step 3 that my edit session failed to create. This is a scary message but clicking yes seems to not do anything (third confusion).
  5. So codespaces doesn't seem to work with edit sessions, so just for exploration I try insiders.vscode.dev it opens at least with the correct repo, but I'm shown this sign in prompt
    image not sure why it thinks I'm signed in with my Microsoft.com email as on desktop I signed in with GitHub and I've only ever signed into vscode.dev with GitHub to view GitHub repositories (fourth confusion).
  6. I choose sign in with GitHub and 🥁 🥁.... my changes aren't there ☹️. Not really sure what to do at this point or if I missed a step in using this feature, I just enabled edit sessions made a local change without staging or committing it and tried to open it somewhere else. (fifth confusion).

Hope this issue helps in some way let me know if I can collect any further diagnostics or if I'm missing a big step in this feature as this is my first time using it

@joyceerhl
Copy link
Contributor

In step 3, are you inside a Codespaces window or inside a GitHub Repositories window? (Either way should work) Which repo is it and are there any Codespaces or Edit Sessions logs from the output channels?

  1. is a bug--we should never attempt to resume an edit session on the machine it was created on, and also should not have a dialog if the changes are identical to the ones we already have locally

  2. also looks like a bug, have you ever used edit sessions before with Microsoft auth?

it opens at least with the correct repo
Not sure I follow this, can you elaborate?

I just enabled edit sessions made a local change without staging or committing it and tried to open it somewhere else. (fifth confusion).

That's not the scenario for edit sessions, the steps for #158384 are (with more details)

  1. start in insiders.vscode.dev/github/<some>/<repo>
  2. make some uncommitted change
  3. execute the Continue Working On command
  4. sign into edit sessions when prompted
  5. pick Create New Codespace
  6. verify that the created codespace preserves your branch checkout and that the uncommitted changes that you had in insiders.vscode.dev were transferred, without you needing to sign in on the Codespaces end

@joyceerhl joyceerhl added the info-needed Issue requires more information from poster label Aug 26, 2022
@lramos15
Copy link
Member Author

This was with the hex editor repo, sorry I didn't collect any logs as I was trying to document the experience. I can try again and collect logs if not.

In step 3 I was attempting to go from desktop to codespaces

For number 5, this was my first time enabling and signing into edit sessions and I never signed in to edit sesisons.

For opening the correct repo, what I mean is edit sessions onto vscode.dev opened the repository (unlike codespaces which failed) but did not apply any changes.

For the scenario is that not what I did? I have a saved change in a repository that isn't committed or staged locally but it is tracked as a changed file by my local git instance. If this isn't the correct scenario we should probably prompt that edit sessions isn't going to work as the scenario seems to try and work but fails

@joyceerhl
Copy link
Contributor

OK, it sounds like you tried

  1. desktop -> codespaces (was it RemoteHub -> codespaces or a local clone of your repo?)
  2. desktop -> vscode.dev

tried to open it somewhere else

Just to clarify, did this happen through the Continue Working On command or something else?

If you have time to jump on a call or can share the Edit Sessions output logs from those transitions, that would be awesome.

@lramos15
Copy link
Member Author

OK, it sounds like you tried

  1. desktop -> codespaces (was it RemoteHub -> codespaces or a local clone of your repo?)
  2. desktop -> vscode.dev

tried to open it somewhere else

Just to clarify, did this happen through the Continue Working On command or something else?

If you have time to jump on a call or can share the Edit Sessions output logs from those transitions, that would be awesome.

Local clone, used Edit Sessions: Continue Edit Session...

I can jump on a call if you like, I feel like I must be using the feature incorrectly (if I am though it probably should be prevented :) )

@joyceerhl joyceerhl changed the title Weird first time edit session flow Create New Codespace fails if the current repo was cloned using SSH Aug 31, 2022
@joyceerhl joyceerhl added bug Issue identified by VS Code Team member as probable bug and removed info-needed Issue requires more information from poster labels Aug 31, 2022
@joyceerhl joyceerhl added this to the September 2022 milestone Aug 31, 2022
@joyceerhl
Copy link
Contributor

joyceerhl commented Sep 2, 2022

Will be fixed with v1.10.5 of the GitHub Codespaces extension.

Verification:

  1. Have your local clone of microsoft/vscode
  2. git remote set-url origin git@github.com:microsoft/vscode.git
  3. Run Continue Edit Session > Create New Codespace
  4. Verify that codespace creation succeeds

@lramos15 lramos15 added the verified Verification succeeded label Sep 29, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Oct 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

2 participants