Skip to content

fix: Fix nested packages #470

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

Merged
merged 3 commits into from
Jun 8, 2025
Merged

Conversation

eed3si9n
Copy link
Collaborator

@eed3si9n eed3si9n commented Jun 8, 2025

Fixes #469

Problem

packages are treated to be top-level only,
so the nested ones aren't parsed correctly.

Solution

This moves packages into definition so they can be nested.

**Problem**
packages are treated to be top-level only,
so the nested ones aren't parsed correctly.

**Solution**
This moves packages into definition so they can be nested.
test-rust: true
test-node: true
test-python: true
test-go: true
test-swift: true
test-swift: false
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity is there a reason we don't want to test swift anymore?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The GitHub Action setup-swift is broken, so the CI currently fails on test-swift: https://github.com/tree-sitter/tree-sitter-scala/actions/runs/15515697083/job/43682548623

Run swift-actions/setup-swift@v2
/usr/bin/gpg --import /home/runner/work/_temp/f422a293-ac58-4b0d-b0e4-d1579ed0a03d
gpg: directory '/home/runner/.gnupg' created
gpg: keybox '/home/runner/.gnupg/pubring.kbx' created
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
Error: Unexpected error, unable to continue. Please report at https://github.com/swift-actions/setup-swift/issues
The process '/usr/bin/gpg' failed with exit code 2
Stacktrace:
Error: The process '/usr/bin/gpg' failed with exit code 2
    at ExecState._setResult (/home/runner/work/_actions/swift-actions/setup-swift/v2/dist/index.js:3197:25)

swift-actions/setup-swift#694

@eed3si9n eed3si9n merged commit e978ef2 into tree-sitter:master Jun 8, 2025
4 checks passed
@eed3si9n eed3si9n deleted the wip/nested-package branch June 8, 2025 17:11
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.

Nested package clauses are not correctly parsed
2 participants