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

Unrecognized git state "DA" #1904

Closed
IllustratedMan-code opened this issue Jan 9, 2023 · 6 comments · Fixed by #1905
Closed

Unrecognized git state "DA" #1904

IllustratedMan-code opened this issue Jan 9, 2023 · 6 comments · Fixed by #1905
Assignees
Labels
bug Something isn't working

Comments

@IllustratedMan-code
Copy link

IllustratedMan-code commented Jan 9, 2023

Description

I just ran into this issue and was directed here. When opening nvim-tree, I get the following error:

[NvimTree] 'Unrecognized git state "DA". Please open up an issue on https://github.com/nvim-tree/nvim-tree.lua/issues with this message.' 

Neovim version

NVIM v0.8.2
Build type: Release
LuaJIT 2.1.0-beta3

Operating system and version

NixOS (unstable)

nvim-tree version

b2ba6de

Minimal config

Not really sure what to do for this as I use nix, will try to get something together if needed.

Steps to reproduce

I can't seem to reliably reproduce all the time, but when I can here are the steps:

  1. open neovim with nvim
  2. run :NvimTreeOpen

Expected behavior

No response

Actual behavior

No response

@IllustratedMan-code IllustratedMan-code added the bug Something isn't working label Jan 9, 2023
@gegoune
Copy link
Collaborator

gegoune commented Jan 9, 2023

Could you provide output of git status for that repository?

@IllustratedMan-code
Copy link
Author

Your branch is up to date with 'origin/main'.

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
	deleted:    flake.lock
	modified:   flake.nix
	modified:   personal/default.nix
	new file:   personal/hardware-configuration.nix

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	new file:   flake.lock
	modified:   users/programs/nvim/default.nix
	modified:   users/users.nix

@gegoune
Copy link
Collaborator

gegoune commented Jan 9, 2023

@alex-courtis looks like

  • file removed and staged
  • unstaged file with the same name readded
    How do we want to highlight that?

@IllustratedMan-code do you mind checking out linked PR? Does highlighting/icon feel correct?

@IllustratedMan-code
Copy link
Author

Looks good to me!

@gegoune gegoune self-assigned this Jan 10, 2023
@gegoune
Copy link
Collaborator

gegoune commented Jan 10, 2023

Thanks for confirming. Will merge in once master history issue is resolved (#1906).

@alex-courtis
Copy link
Member

  • How do we want to highlight that?

Dirty works for me. You can only have so many icons/highlights.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants