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] Error message when discarding all changes #9327

Closed
kittaakos opened this issue Apr 12, 2021 · 1 comment · Fixed by #11445
Closed

[git] Error message when discarding all changes #9327

kittaakos opened this issue Apr 12, 2021 · 1 comment · Fixed by #11445
Labels
bug bugs found in the application git issues related to git

Comments

@kittaakos
Copy link
Contributor

kittaakos commented Apr 12, 2021

Bug Description:

Steps to Reproduce:

  1. Change a file,
  2. Select Discard All Changes, confirm the dialog.
  3. See the error message.

Screen Shot 2021-04-12 at 09 34 55

Screen Shot 2021-04-12 at 09 35 12

I found this when I was reviewing #9324.

Error from the backend:

root ERROR The command `git checkout-index -f -u HEAD -- CHANGELOG.md` exited with an unexpected code: 1. The caller should either handle this error, or expect that exit code.
root ERROR git checkout-index: HEAD is not in the cache

root ERROR Request unstage failed with error: git checkout-index: HEAD is not in the cache
 GitError: git checkout-index: HEAD is not in the cache

    at new GitError (/workspace/theia/node_modules/dugite-extra/lib/core/git.js:87:28)
    at Object.<anonymous> (/workspace/theia/node_modules/dugite-extra/lib/core/git.js:262:27)
    at step (/workspace/theia/node_modules/dugite-extra/lib/core/git.js:56:23)
    at Object.next (/workspace/theia/node_modules/dugite-extra/lib/core/git.js:37:53)
    at fulfilled (/workspace/theia/node_modules/dugite-extra/lib/core/git.js:28:58)
    at processTicksAndRejections (internal/process/task_queues.js:94:5)

Additional Information

  • Operating System:
  • Theia Version:
@vince-fugnitto vince-fugnitto added bug bugs found in the application git issues related to git labels Apr 12, 2021
@FinnChen
Copy link
Contributor

I submitted a PR to fix this issue. Anyone can help to review the PR? eclipse-theia/dugite-extra#57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application git issues related to git
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants