aws-cloudformation / aws-cloudformation/cfn-lint-visual-studio-code

A memory leak in Python when opening the Git Diff view

Open
#222 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
289
Forks
170
PR merge metrics
No merged PRs in 30d

Description

If you make changes to a CF template then view differences in VS code via the git diff view then a memory leak occurs. The problem disappears if the linter extension is disabled.

![image](https://user-images.githubusercontent.com/1904424/170624610-5e030b4f-a06b-4da5-9d19-4f848653be15.png)

Version: 1.67.2 (system setup)
Commit: c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5
Date: 2022-05-17T18:15:52.058Z
Electron: 17.4.1
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: 9.8.177.13-electron.0
OS: Windows_NT x64 10.0.18363

Extensions
CloudFormation v0.0.24
CloudFormation Linter v0.21.0

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the leak with the listed VS Code, CloudFormation, and CloudFormation Linter versions on Windows, comparing Git Diff with the linter extension enabled and disabled. Trace the interaction between the extension and Git Diff, then verify that opening the view after editing a CF template no longer causes memory growth.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.