Skip to content

update docs to clarify that users would be better off not relying on SetFinalizer #182

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

timruffles
Copy link

as noted in #181, the comment stating "parser.Close() will be called by Go's garbage collector and users would not have to call this manually" is too optimistic.

jbedard added a commit to aspect-build/aspect-cli that referenced this pull request Apr 1, 2025
Fix #818

See also:
 smacker/go-tree-sitter#183
 smacker/go-tree-sitter#182

---

### Changes are visible to end-users: yes

- Searched for relevant documentation and updated as needed: yes
- Breaking change (forces users to change their own code or config): no
- Suggested release notes appear below: yes

Ensure `configure` tree-sitter resources are explicitly cleaned up.

### Test plan

- Covered by existing test cases

GitOrigin-RevId: 35c3509f084f0d7c2e01a9d11faa2519462dc46b
jbedard added a commit to aspect-build/aspect-cli that referenced this pull request Apr 1, 2025
Fix #818

See also:
 smacker/go-tree-sitter#183
 smacker/go-tree-sitter#182

---

### Changes are visible to end-users: yes

- Searched for relevant documentation and updated as needed: yes
- Breaking change (forces users to change their own code or config): no
- Suggested release notes appear below: yes

Ensure `configure` tree-sitter resources are explicitly cleaned up.

### Test plan

- Covered by existing test cases

GitOrigin-RevId: 35c3509f084f0d7c2e01a9d11faa2519462dc46b
jbedard added a commit to aspect-build/aspect-cli that referenced this pull request Apr 2, 2025
Fix #818

See also:
 smacker/go-tree-sitter#183
 smacker/go-tree-sitter#182

---

### Changes are visible to end-users: yes

- Searched for relevant documentation and updated as needed: yes
- Breaking change (forces users to change their own code or config): no
- Suggested release notes appear below: yes

Ensure `configure` tree-sitter resources are explicitly cleaned up.

### Test plan

- Covered by existing test cases

GitOrigin-RevId: 35c3509f084f0d7c2e01a9d11faa2519462dc46b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant