question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

switching branch triggers an error

See original GitHub issue

Every time I switch to another branch using ‘cmd + b’ within a local repo, I get the following error modal:

A lock file already exists in the repository, which blocks this operation from completing.

I am using a mbp with high sierra 10.13.5 and github desktop 1.2.3

The error can be dismissed without consequence, I just thought you might want to know about it.

The error does not appear when changing branches with point and click in the menus.

I have looked this error up and various sources suggest creating a lock file, then deleting it, but this did not fix the error.

Leon

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
leonsegalcommented, Jul 9, 2018

screen shot 2018-07-09 at 08 40 37 I am new to this - did you want me to reproduce it? Am I the reviewer?

Should I take a screen shot?

2reactions
leonsegalcommented, Jun 18, 2018

No, this is the weird thing (and why I posted it).

I do use phpstorm, which has git integration, but this a new bug since a recent update.

I will investigate if it is phpstorm causing the error.

UPDATE This bug still appears even when phpstorm is closed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Switching branch causes compiler error and red filename in ...
No, I added it to the new branch. I have to add it to the master branch as well? Even if it's not...
Read more >
A lot of errors after switching branches : RIDER-17479
When switching branches with a lot of changed code, lots of resolving errors occur. Here are examples. 1. Ambiguous reference between the same...
Read more >
Visual Studio Hangs When Switching Branch
We ask that if you are still seeing performance issues while switching branches in VS to open a new issue and include: 1)...
Read more >
Solving “Fatal: Not A Git Repository” (Or Any Of The Parent ...
In this article, we will explore what causes, how to prevent, and how to solve ... Can't switch between branches; What causes Git...
Read more >
VS2022 Performance Enhancements: Git Branch Switching
Users who are switching between branches inside Visual Studio by utilizing the built in Git tooling will experience both performance gains; ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found