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

Branch selector Not Working #1310

Closed
toneware opened this issue Oct 6, 2020 · 2 comments
Closed

Branch selector Not Working #1310

toneware opened this issue Oct 6, 2020 · 2 comments

Comments

@toneware
Copy link

toneware commented Oct 6, 2020

I created a private Angular project in StackBlitz (SB) (https://stackblitz.com/edit/macs-dashboard) using the following git flow:
master -> dev -> feature/ip-auth

I did the dev in SB using the feature/ip-auth branch.
I pushed to the branch from SB. Github updated properly.
I created a PR in Github to merge feature/ip-auth -> dev.
I did a squash & merge of feature/ip-auth -> dev.
I let Github delete the feature/ip-auth branch.
So far, so good.

Now, however, I cannot get SB to change branches -- it consistently stays on the feature/ip-auth branch. This was the current branch when I did the merge.
2020-10-06 10_22_07-macs-dashboard - StackBlitz

If I click on the dropdown, it does show the proper branches available (dev & master), and it allows me to select either option. It will not, however, toggle to the selected branch.
2020-10-06 10_22_22-macs-dashboard - StackBlitz

It gets even weirder, because it actually loads a working branch, and my app runs as designed. I can't tell which branch it has loaded, as dev and feature/ip-auth have the same code (the merge was successful). I tried selecting master, and it says that it's loading/compiling the branch, but the app that gets loaded has the dev|feature/ip-auth changes, and the branch dropdown still says feature/ip-auth.

I tried the following, to no avail:

  • Close & re-open Chrome, nav to SB,
  • Close & re-open Chrome, nav to Github , click on the "edit w/ SB" link.
  • Close Chrome, open incognito (Chrome) window.

I don't have Firefox loaded on this box, and IE won't even load SB, so I didn't try either of those.

Edit: When I refresh the project, I see this pop up:

2020_10_06_10_48_51_macs_dashboard_StackBlitz

Once again, the selector still shows feature/ip-auth

@toneware
Copy link
Author

toneware commented Oct 6, 2020

I found a workaround:

  • Delete the StackBlitz project.
  • Create a new SB project (of the same type, blah-blah-bah)
  • Import the GitHub repo (in my case, I imported a new branch that I had created off of dev).

This is far from ideal, but I am able to get back to work.

Edit: This does not rename the SB project, FWIW.

@kc0tlh
Copy link
Collaborator

kc0tlh commented Aug 23, 2023

This issue is now resolved in our new VS Code editor! Full writeup in Github issue #2473

@kc0tlh kc0tlh closed this as completed Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants