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

Git status stopped working for one repo #1325

Closed
Mellbourn opened this issue Mar 27, 2021 · 6 comments
Closed

Git status stopped working for one repo #1325

Mellbourn opened this issue Mar 27, 2021 · 6 comments

Comments

@Mellbourn
Copy link
Contributor

Mellbourn commented Mar 27, 2021

I had been running the powerlevel10k successfully in several git repos for a couple of hours, when one of the repos (a very large monorepo) stopped showing any git status in the prompt whatsoever.

I set up GITSTATUS_LOG_LEVEL=DEBUG and got the following logs:

│[2021-03-27 22:18:24 000000010e5d3e00 INFO src/gitstatus.cc:195] Successfully processed request: "1616879904.8603138924 _p9k_vcs_resume 1" for "/Users/klas.mellbourn/code/private/zabb"                                                                                                                                                                                  │
│[2021-03-27 22:18:24 0000700005209000 INFO src/check_dir_mtime.cc:149] All mtime checks have passes. Enabling untracked cache: "/Users/klas.mellbourn/code/private/zabb/.git/"                                                                                                                                                                                            │
│[2021-03-27 22:18:25 000000010e5d3e00 INFO src/gitstatus.cc:192] Processing request: "1616879905.6307339668 _p9k_vcs_resume 0" for "/Users/klas.mellbourn" [no-diff]                                                                                                                                                                                                      │
│[2021-03-27 22:18:25 000000010e5d3e00 INFO src/response.cc:69] Replying without git status                                                                                                                                                                                                                                                                                │
│[2021-03-27 22:18:25 000000010e5d3e00 INFO src/timer.cc:64] Timing for: request: 0.185ms cpu                                                                                                                                                                                                                                                                              │
│[2021-03-27 22:18:25 000000010e5d3e00 INFO src/gitstatus.cc:195] Successfully processed request: "1616879905.6307339668 _p9k_vcs_resume 0" for "/Users/klas.mellbourn" [no-diff]                                                                                                                                                                                          │
│[2021-03-27 22:18:29 000000010e5d3e00 INFO src/gitstatus.cc:192] Processing request: "1616879909.2493720055 _p9k_vcs_resume 0" for "/Users/klas.mellbourn/code/company/company-app" [no-diff]                                                                                                                                                                               │
│[2021-03-27 22:18:29 000000010e5d3e00 ERROR src/repo_cache.cc:66] git_repository_open_ext: "/Users/klas.mellbourn/code/company/company-app/.git/": unsupported extension name extensions.worktreeconfig                                                                                                                                                                     │
│[2021-03-27 22:18:29 000000010e5d3e00 INFO src/response.cc:69] Replying without git status                                                                                                                                                                                                                                                                                │
│[2021-03-27 22:18:29 000000010e5d3e00 INFO src/timer.cc:64] Timing for: request: 1.866ms cpu                                                                                                                                                                                                                                                                              │
│[2021-03-27 22:18:29 000000010e5d3e00 ERROR src/gitstatus.cc:197] Error processing request: "1616879909.2493720055 _p9k_vcs_resume 0" for "/Users/klas.mellbourn/code/company/company-app" [no-diff]                                                                                                                                                                        │
│[2021-03-27 22:18:37 000000010e5d3e00 INFO src/gitstatus.cc:192] Processing request: "1616879917.6484880447 _p9k_vcs_resume 0" for "/Users/klas.mellbourn/code/company/company-app" [no-diff]                                                                                                                                                                               │
│[2021-03-27 22:18:37 000000010e5d3e00 ERROR src/repo_cache.cc:66] git_repository_open_ext: "/Users/klas.mellbourn/code/company/company-app/.git/": unsupported extension name extensions.worktreeconfig                                                                                                                                                                     │
│[2021-03-27 22:18:37 000000010e5d3e00 INFO src/response.cc:69] Replying without git status                                                                                                                                                                                                                                                                                │
│[2021-03-27 22:18:37 000000010e5d3e00 INFO src/timer.cc:64] Timing for: request: 1.558ms cpu                                                                                                                                                                                                                                                                              │
│[2021-03-27 22:18:37 000000010e5d3e00 ERROR src/gitstatus.cc:197] Error processing request: "1616879917.6484880447 _p9k_vcs_resume 0" for "/Users/klas.mellbourn/code/company/company-app" [no-diff]      

To get this log I first changed to a repo folder that works fine code/private/zabb, then changed directory to home, and then changed directory to company-app where it did not work.

The git part of the prompt has previously worked in company-app. Ordinary git commands work fine (though slow).

company-app is a large monorepo (it is the same that I previously used sparse-checkout for, see #1322, but I have now stopped using sparse checkout, since I want to use the full features of powerlevel10k)

@romkatv
Copy link
Owner

romkatv commented Mar 27, 2021

See #816 (comment)

@Mellbourn
Copy link
Contributor Author

Mellbourn commented Mar 27, 2021

Thanks for the immediate response :)
It is a bit strange since I specifically disabled sparse-checkout, and that made the git prompt work fine for a while. But I'll investigate further to see if there is some remnant of sparse-checkout somehow.

@romkatv
Copy link
Owner

romkatv commented Mar 27, 2021

The ERROR messages in the logs are quite clear. Your repo has extensions.worktreeconfig extension. Once you remove it and restart zsh, gitstatusd should work.

@romkatv
Copy link
Owner

romkatv commented Mar 27, 2021

Closing as Won’t Fix.

@romkatv romkatv closed this as completed Mar 27, 2021
@Mellbourn
Copy link
Contributor Author

I've made a new clone and there things work fine, gonna go with that instead. ¯_(ツ)_/¯

@romkatv
Copy link
Owner

romkatv commented Mar 27, 2021

This means the new clone doesn’t have the extension. I don’t think there is any mystery here.

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