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

Uncommitted changes cause an error when gitlens.defaultDateSource is "committed" #3057

Closed
LucasOe opened this issue Dec 14, 2023 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@LucasOe
Copy link

LucasOe commented Dec 14, 2023

Description

If you have uncommitted changes it throws an RangeError: Invalid time value error. It is not possible to open the file blame annotation because of this.

GitLens Version

14.6.0

VS Code Version

Version: 1.85.1
Commit: 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2
Date: 2023-12-13T09:49:37.021Z (19 hrs ago)
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Code/1.85.1 Chrome/114.0.5735.289 Electron/25.9.7 Safari/537.36

Git Version

git version 2.43.0.windows.1

Logs, Screenshots, Screen Captures, etc

rejected promise not handled within 1 second: RangeError: Invalid time value
extensionHostProcess.js:147
stack trace: RangeError: Invalid time value
	at DateTimeFormat.formatToParts (<anonymous>)
	at m (C:\Users\lucas\scoop\persist\vscode\data\extensions\eamodio.gitlens-14.6.0\dist\gitlens.js:1077:48864)
	at GitCommitIdentity.formatDate (C:\Users\lucas\scoop\persist\vscode\data\extensions\eamodio.gitlens-14.6.0\dist\gitlens.js:1050:25855)
	at s.<computed> (C:\Users\lucas\scoop\persist\vscode\data\extensions\eamodio.gitlens-14.6.0\dist\gitlens.js:1077:53262)
	at _GitCommit.formatDate (C:\Users\lucas\scoop\persist\vscode\data\extensions\eamodio.gitlens-14.6.0\dist\gitlens.js:1050:21491)
	at get _date [as _date] (C:\Users\lucas\scoop\persist\vscode\data\extensions\eamodio.gitlens-14.6.0\dist\gitlens.js:1039:14894)
	at get date [as date] (C:\Users\lucas\scoop\persist\vscode\data\extensions\eamodio.gitlens-14.6.0\dist\gitlens.js:1044:2010)
	at x (C:\Users\lucas\scoop\persist\vscode\data\extensions\eamodio.gitlens-14.6.0\dist\gitlens.js:1079:5238)
	at CommitFormatter.fromTemplateCoreAsync (C:\Users\lucas\scoop\persist\vscode\data\extensions\eamodio.gitlens-14.6.0\dist\gitlens.js:1050:4501)
	at CommitFormatter.fromTemplateAsync (C:\Users\lucas\scoop\persist\vscode\data\extensions\eamodio.gitlens-14.6.0\dist\gitlens.js:1050:2586)
	at f (C:\Users\lucas\scoop\persist\vscode\data\extensions\eamodio.gitlens-14.6.0\dist\gitlens.js:1064:1353)
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
	at async StatusBarController.updateBlame (C:\Users\lucas\scoop\persist\vscode\data\extensions\eamodio.gitlens-14.6.0\dist\gitlens.js:959:146)
@LucasOe LucasOe added bug Something isn't working triage Needs to be looked at labels Dec 14, 2023
@eamodio eamodio removed the triage Needs to be looked at label Dec 14, 2023
@eamodio eamodio self-assigned this Dec 14, 2023
@eamodio eamodio added this to the 14.6-patch milestone Dec 14, 2023
@eamodio eamodio changed the title Uncommitted changes cause an error Uncommitted changes cause an error when gitlens.defaultDateSource is "committed" Dec 14, 2023
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants