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

scm: unable to discard changes for a newly created file #11531

Closed
vince-fugnitto opened this issue Aug 4, 2022 · 0 comments · Fixed by #11532
Closed

scm: unable to discard changes for a newly created file #11531

vince-fugnitto opened this issue Aug 4, 2022 · 0 comments · Fixed by #11532
Labels
bug bugs found in the application git issues related to git scm issues related to the source control manager

Comments

@vince-fugnitto
Copy link
Member

Bug Description:

There is a bug when attempting to discard changes in the scm-view for a file that is newly created.

command.ts:340 Uncaught (in promise) Error: The command 'file.delete' cannot be executed. There are no active handlers available for the command.
    at CommandRegistry.executeCommand (command.ts:340:29)
    at discardSingle (git-scm-provider.ts:401:45)
    at git-scm-provider.ts:404:24
    at Array.map (<anonymous>)
    at GitScmProvider.discard (git-scm-provider.ts:392:19)
    at async ProgressService.withProgress (progress-service.ts:77:20)
    at async CommandRegistry.executeCommand (command.ts:336:28)

Steps to Reproduce:

  1. start the application with a workspace under version control (ex: theia)
  2. create a new file (ex: touch a.txt)
  3. open the scm-view and attempt to discard the file using the discard changes toolbar item
@vince-fugnitto vince-fugnitto added bug bugs found in the application git issues related to git scm issues related to the source control manager labels Aug 4, 2022
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 scm issues related to the source control manager
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant