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

fix: linker errors when using in other projects #6

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

nathansbradshaw
Copy link
Contributor

When I was trying to add this tree-sitter to zed, I ran into the following issue

 ld: warning: Could not find or use auto-linked framework 'CoreAudioTypes': framework 'CoreAudioTypes' not found
          ld: Undefined symbols:
            _tree_sitter_angular_external_scanner_create, referenced from:
                _tree_sitter_angular.language in libtree_sitter_angular-a48ca032137ae057.rlib[4](parser.o)
            _tree_sitter_angular_external_scanner_deserialize, referenced from:
                _tree_sitter_angular.language in libtree_sitter_angular-a48ca032137ae057.rlib[4](parser.o)
            _tree_sitter_angular_external_scanner_destroy, referenced from:
                _tree_sitter_angular.language in libtree_sitter_angular-a48ca032137ae057.rlib[4](parser.o)
            _tree_sitter_angular_external_scanner_scan, referenced from:
                _tree_sitter_angular.language in libtree_sitter_angular-a48ca032137ae057.rlib[4](parser.o)
            _tree_sitter_angular_external_scanner_serialize, referenced from:
                _tree_sitter_angular.language in libtree_sitter_angular-a48ca032137ae057.rlib[4](parser.o)
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

Removing the comment for the scanner_path seems to fix that build issue when importing this library as a lib into other projects.

@dlvandenberg dlvandenberg added the bug Something isn't working label Jan 29, 2024
@dlvandenberg dlvandenberg merged commit dfdce7e into dlvandenberg:main Jan 29, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants