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

GinBranch fails when there are branches that don't exist in remote. #29

Closed
matsui54 opened this issue Mar 14, 2022 · 0 comments · Fixed by #30
Closed

GinBranch fails when there are branches that don't exist in remote. #29

matsui54 opened this issue Mar 14, 2022 · 0 comments · Fixed by #30
Labels
bug Something isn't working command Something for commands

Comments

@matsui54
Copy link

When there are branchs which only exists in local, GinBranch throws error like this.

Error detected while processing function denops#request[1]..denops#server#request[6]..<SNR>53_request:
line    1:
Error invoking 'invoke' on channel 4:
Error: Failed to call 'branch:read' with []: Error: Failed to parse 'git branch' record '  ddc      123fa8e update'
    at file:///home/denjo/.cache/dein/repos/github.com/lambdalisue/gin.vim/denops/gin/feat/branch/parser.ts:92:11
    at Array.map (<anonymous>)
    at parse (file:///home/denjo/.cache/dein/repos/github.com/lambdalisue/gin.vim/denops/gin/feat/branch/parser.ts:55:38)
    at read (file:///home/denjo/.cache/dein/repos/github.com/lambdalisue/gin.vim/denops/gin/feat/branch/command.ts:84:18)
    at async Session.dispatch (https://deno.land/x/msgpack_rpc@v3.1.4/session.ts:99:12)
    at async https://deno.land/x/msgpack_rpc@v3.1.4/session.ts:108:18
    at async Session.handleRequest (https://deno.land/x/msgpack_rpc@v3.1.4/session.ts:104:29)
    at Session.call (https://deno.land/x/msgpack_rpc@v3.1.4/session.ts:207:13)
    at async Service.dispatch (file:///home/denjo/.cache/dein/.cache/init.vim/.dein/denops/@denops-private/service.ts:101:14)
    at async Session.invoke (file:///home/denjo/.cache/dein/.cache/init.vim/.dein/denops/@denops-private/host/nvim.ts:48:16)
    at async Session.dispatch (https://deno.land/x/msgpack_rpc@v3.1.4/session.ts:99:12)
    at async https://deno.land/x/msgpack_rpc@v3.1.4/session.ts:108:18
    at async Session.handleRequest (https://deno.land/x/msgpack_rpc@v3.1.4/session.ts:104:29)

It seems that this pattern doesn't match with the output of git branch --list -vv, which shows the result like ddc 123fa8e update.

ginbranch_bug

@lambdalisue lambdalisue added bug Something isn't working command Something for commands labels Mar 14, 2022
lambdalisue added a commit that referenced this issue Mar 14, 2022
lambdalisue added a commit that referenced this issue Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working command Something for commands
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants