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

'e.replace is not a function' Error in New Version(14.9.0) #3181

Closed
sanghyun-qesg opened this issue Mar 11, 2024 · 2 comments
Closed

'e.replace is not a function' Error in New Version(14.9.0) #3181

sanghyun-qesg opened this issue Mar 11, 2024 · 2 comments
Labels
not-bug Either not a bug or not related to the project

Comments

@sanghyun-qesg
Copy link

Description

After updating GitLens, I noticed that the line blame feature wasn't functioning properly. Additionally, when clicking on branches within the extension, while some showed no issues, others failed to expand and resulted in an error where no related commits were displayed.

I was able to check logs via the Extension Host and have currently resolved the issue by downgrading GitLens to an earlier version.

GitLens Version

14.9.0

VS Code Version

Version: 1.87.1 (user setup)
Commit: 1e790d77f81672c49be070e04474901747115651
Date: 2024-03-06T00:21:36.258Z
Electron: 27.3.2
ElectronBuildId: 26836302
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Windows_NT x64 10.0.19045

Git Version

git version 2.36.1.windows.1

Logs, Screenshots, Screen Captures, etc

2024-03-08 11:24:13.807 [error] TypeError: e.replace is not a function
	at String.replaceAll (c:\****\****\.vscode\extensions\ms-python.python-2022.8.0\out\client\extension.js:2:148792)
	at m (c:\****\****\.vscode\extensions\eamodio.gitlens-14.9.0\dist\gitlens.js:1083:7445)
	at U (c:\****\****\.vscode\extensions\eamodio.gitlens-14.9.0\dist\gitlens.js:1083:10274)
	at CommitFormatter._padOrTruncate (c:\****\****\.vscode\extensions\eamodio.gitlens-14.9.0\dist\gitlens.js:1054:3641)
	at get message [as message] (c:\****\****\.vscode\extensions\eamodio.gitlens-14.9.0\dist\gitlens.js:1049:236)
	at q (c:\****\****\.vscode\extensions\eamodio.gitlens-14.9.0\dist\gitlens.js:1083:11709)
	at CommitFormatter.fromTemplateCore (c:\****\****\.vscode\extensions\eamodio.gitlens-14.9.0\dist\gitlens.js:1054:4313)
	at CommitFormatter.fromTemplate (c:\****\****\.vscode\extensions\eamodio.gitlens-14.9.0\dist\gitlens.js:1054:2383)
	at C (c:\****\****\.vscode\extensions\eamodio.gitlens-14.9.0\dist\gitlens.js:650:23871)
	at p (c:\****\****\.vscode\extensions\eamodio.gitlens-14.9.0\dist\gitlens.js:750:5251)
	at LineAnnotationController.refresh (c:\****\****\.vscode\extensions\eamodio.gitlens-14.9.0\dist\gitlens.js:750:6233)
@sanghyun-qesg sanghyun-qesg added bug Something isn't working triage Needs to be looked at labels Mar 11, 2024
@d13
Copy link
Member

d13 commented Mar 11, 2024

I was able to reproduce the issue after installing the Python extension at version 2022.8.0, which appears to have been fixed with microsoft/vscode-python#20626 and released with https://github.com/microsoft/vscode-python/releases/tag/2023.4.0. Please update your Python extension and you should be all set.

@d13 d13 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 11, 2024
@d13 d13 added not-bug Either not a bug or not related to the project and removed bug Something isn't working triage Needs to be looked at labels Mar 11, 2024
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 Apr 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
not-bug Either not a bug or not related to the project
Projects
None yet
Development

No branches or pull requests

2 participants