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(deps): update rust crate tree-sitter-native to 0.22.0 #1124

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 5, 2024

Mend Renovate

This PR contains the following updates:

Package Type Update Change
tree-sitter-native (source) dependencies minor 0.21.0 -> 0.22.0

Release Notes

tree-sitter/tree-sitter (tree-sitter-native)

v0.22.6

Compare Source

Features
  • Improve handling of serialization buffer overflows (#​3318)
  • Reverse iteration through node parents (#​3214)
  • cli: Support NO_COLOR (#​3299)
  • cli: Add test listing and allow users to parse a specific test number (#​3067)
  • grammar: Add "inherits" field if available (#​3295)
Bug Fixes
  • Correctly load field data from wasm languages
  • Improve error message when the tree-sitter field is malformed
  • Don't error out on package.json lookup errors if --no-bindings is passed (#​3323)
  • cli: Keep default cc flags in build
  • cli: Properly account for multi-grammar repos when using docker to build a wasm parser (#​3337)
  • generate: Don't check arbitrarily named dirs
  • generate: Take AsRef<Path> for the path parameter to avoid clones (#​3322)
  • highlight: Correct signature of ts_highlighter_add_language
  • lib: Do not return field names for extras (#​3330)
  • lib: Advance the lookahead end byte by 4 when there's an invalid code point (#​3305)
  • rust: Update README example (#​3307)
  • rust: Use unix + wasi cfg instead of not windows for fd (#​3304)
  • test: Allow newlines in between test name and attribute
  • wasm: Correct childrenFromFieldXXX method signatures (#​3301)
  • xtask: Always bump every crate in tandem
  • zig: Make usable as a zig dependency (#​3315)
Documentation
  • Mention build command variables
  • Swap \s for \\s in query example
  • highlight: Typo (#​3290)
Refactor
  • tests: Migrate remaining grammar.json tests to grammar.js (#​3325)
Build System and CI
  • Add nightly rustfmt to workflow for linting (#​3333)
  • Fix address sanitizer step (#​3188)
  • deps: Bump cc from 1.0.92 to 1.0.94 in the cargo group (#​3298)
  • deps: Bump the cargo group with 6 updates (#​3313)
  • xtask: Bump build.zig.zon version when bumping versions

v0.22.5

Compare Source

Bug Fixes
  • Avoid generating unused character set constants
  • cli: Test parsing on windows (#​3289)
  • rust: Compilation on wasm32-wasi (#​3293)

v0.22.4

Compare Source

Bug Fixes
  • Fix sorting of transitions within a lex state
  • Include 2-character ranges in array-based state transitions
Build System and CI
  • Always bump at least the patch version in bump xtask

v0.22.3

Compare Source

Features
  • Add strncat to wasm stdlib
  • Generate simpler code for matching large character sets (#​3234)
  • When loading languages via WASM, gracefully handle memory errors and leaks in external scanners (#​3181)
Bug Fixes
  • bindings: Add utf-8 flag to python & node (#​3278)
  • bindings: Generate parser.c if missing (#​3277)
  • bindings: Remove required platforms for swift (#​3264)
  • cli: Fix mismatched parenthesis when accounting for && (#​3274)
  • lib: Do not consider childless nodes for ts_node_parent (#​3191)
  • lib: Properly account for aliased root nodes and root nodes with
    children in ts_subtree_string (#​3191)
  • lib: Account for the root node of a tree cursor being an alias (#​3191)
  • lib: Use correct format specifier in log message (#​3255)
  • parser: Fix variadic macro (#​3229)
  • render: Proper function prototypes (#​3277)
  • windows: Add /utf-8 flag for parsers using unicode symbols (#​3223)
  • Add a semicolon after SKIP macros (#​3264)
  • Add back build-wasm temporarily (#​3203)
  • Add lifetime to matches function (#​3254)
  • Default output directory for build --wasm should use current_dir (#​3203)
  • Fix sorting of wasm stdlib symbols
  • Insert "tree-sitter" section in current directory's package.json if it exists (#​3224)
  • Tie the lifetime of the cursor to the query in QueryCursor::captures() (#​3266)
  • Wrong flag check in build.rs
Performance
  • cli: Reduced the compile time of generated parsers by generating C code with fewer conditionals (#​3234)
Documentation
  • Add NGINX grammar
Refactor
  • parser: Make REDUCE macro non-variadic (#​3280)
  • js: Misc fixes & tidying
  • rust: Misc fixes & tidying
Testing
  • Add regression test for node parent + string bug (#​3191)
  • test: Allow colons in test names (#​3264)
Build System and CI
  • Upgrade wasmtime
  • Update emscripten version (#​3272)
  • dependabot: Improve PR labels (#​3282)

v0.22.2

Compare Source

Breaking
  • cli: Add a separate build command to compile parsers
Features
  • bindings/rust: Expose Parser::included_ranges
  • Lower the lib's MSRV (#​3169)
  • lib: Implement Display for Node (#​3177)
Bug Fixes
  • bindings/wasm: Fix Parser.getIncludedRanges() (#​3164)
  • lib: Makefile installation on macOS (#​3167)
  • lib: Makefile installation (#​3173)
  • lib: Avoid possible UB of calling memset on a null ptr when 0 is passed into array_grow_by (#​3176)
  • lib: Allow hiding symbols (#​3180)
Documentation
Refactor
  • Remove dependency on which crate (#​3172)
  • Turbofish styling
Testing
Build System and CI
  • Simplify workflows (#​3002)
  • lib: Allow overriding CFLAGS on the commandline (#​3159)

v0.22.1

Compare Source

Bug Fixes
  • Cli build script behavior on release

v0.22.0

Compare Source

Breaking
  • Remove top-level corpus dir for tests
    The cli will now only look in test/corpus for tests
  • Remove redundant escape regex & curly brace regex preprocessing (#​2838)
  • bindings: Convert node bindings to NAPI (#​3077)
  • wasm: Make current*, is*, and has* methods properties (#​3103)
  • wasm: Keep API in-line with upstream and start aligning with node (#​3149)
Features
  • Add xtasks to assist with bumping crates (#​3065)
  • Improve language bindings (#​2438)
  • Expose the allocator and array header files for external scanners (#​3063)
  • Add typings for the node bindings
  • Replace nan with node-addon-api and conditionally print logs
  • bindings: Add more make targets
  • bindings: Add peerDependencies for npm
  • bindings: Add prebuildify to node
  • bindings: Remove dsl types file (#​3126)
  • node: Type tag the language (#​3109)
  • test: Add attributes for corpus tests
Bug Fixes
  • Apply some scan-build suggestions (unused assignment/garbage access) (#​3056)
  • Wrap || comparison in parentheses when && is used (#​3070)
  • Ignore unused variables in the array macros (#​3083)
  • binding.cc overwrite should replace PARSER_NAME (#​3116)
  • Don't use __declspec(dllexport) on windows (#​3128)
  • Parsers should export the language function on windows
  • Allow the regex v flag (#​3154)
  • assertions: Case shouldn't matter for comment node detection
  • bindings: Editorconfig and setup.py fixes (#​3082)
  • bindings: Insert types after main if it exists (#​3122)
  • bindings: Fix template oversights (#​3155)
  • cli: Only output the sources with --no-bindings (#​3123)
  • generate: Add .npmignore, populate Swift's exclude list (#​3085)
  • generate: Extern allocator functions for the template don't need to be "exported" (#​3132)
  • generate: Camel case name in Cargo.toml description (#​3140)
  • lib: Include api.h so ts_set_allocator is visible (#​3092)
Documentation
  • Add GitHub user and PR info to the changelog
  • Add css for inline code (#​2844)
  • Document test attributes
  • Add Ohm language parser
  • Remove duplicate the's (#​3120)
  • Add discord and matrix badges (#​3148)
Refactor
  • Rename TS_REUSE_ALLOCATOR flag (#​3088)
  • Remove extern/const where possible
  • array: Use pragma GCC in clang too
  • bindings: Remove npmignore (#​3089)
Testing
  • Don't use TS_REUSE_ALLOCATOR on Darwin systems (#​3087)
  • Add test case for parse stack merging with incorrect error cost bug (#​3098)
Build System and CI
  • Improve changelog settings (#​3064)
  • Unify crate versions via workspace (#​3074)
  • Update cc to remove annoying debug output (#​3075)
  • Adjust dependabot settings (#​3079)
  • Use c11 everywhere
  • Add uninstall command
  • Don't skip tests on failing lint (#​3102)
  • Remove unused deps, bump deps, and bump MSRV to 1.74.1 (#​3153)
  • bindings: Metadata improvements
  • bindings: Make everything c11 (#​3099)
  • dependabot: Update weekly instead of daily (#​3112)
  • deps: Bump the cargo group with 1 update (#​3081)
  • deps: Bump the cargo group with 1 update (#​3097)
  • deps: Bump deps & lockfile (#​3060)
  • deps: Bump the cargo group with 4 updates (#​3134)
  • lint: Detect if Cargo.lock needs to be updated (#​3066)
  • lint: Make lockfile check quiet (#​3078)
  • swift: Move 'cLanguageStandard' behind 'targets' (#​3101)
Other
  • Make Node.js language bindings context aware (#​2841)
    They don't have any dynamic global data, so all it takes is just declaring them as such
  • Fix crash when attempting to load ancient languages via wasm (#​3068)
  • Use workspace dependencies for internal crates like Tree-sitter (#​3076)
  • Remove vendored wasmtime headers (https://github.com/tree-sitter/tree-sitter/pull/3084)
    When building rust binding, use wasmtime headers provided via cargo
    by the wasmtime-c-api crate.
  • Fix invalid parse stack recursive merging with mismatched error cost (#​3086)
    Allowing this invalid merge caused an invariant to be violated
    later on during parsing, when handling a later error.
  • Fix regression in subtree_compare (#​3111)
  • docs: Add Ohm language parser (#​3114)
  • Delete binding_files.rs (#​3106)
  • bindings: Consistent wording (#​3096)
  • bindings: Ignore more artifacts (#​3119)

Configuration

📅 Schedule: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

Copy link
Contributor Author

renovate bot commented May 5, 2024

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path crates/dynamic/Cargo.toml --workspace
    Updating crates.io index
error: failed to select a version for `tree-sitter`.
    ... required by package `ast-grep-dynamic v0.21.4 (/tmp/renovate/repos/github/ast-grep/ast-grep/crates/dynamic)`
    ... which satisfies path dependency `ast-grep-dynamic` (locked to 0.21.4) of package `ast-grep v0.21.4 (/tmp/renovate/repos/github/ast-grep/ast-grep/crates/cli)`
versions that meet the requirements `^0.22.0` are: 0.22.6, 0.22.5, 0.22.4, 0.22.3, 0.22.2, 0.22.1

the package `tree-sitter` links to the native library `tree-sitter`, but it conflicts with a previous package which links to `tree-sitter` as well:
package `tree-sitter v0.21.0`
    ... which satisfies dependency `tree-sitter = "^0.21.0"` of package `tree-sitter-facade-sg v0.21.1`
    ... which satisfies dependency `tree-sitter = "^0.21.1"` of package `ast-grep-napi v0.21.4 (/tmp/renovate/repos/github/ast-grep/ast-grep/crates/napi)`
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the `links = "tree-sitter"` value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.

failed to select a version for `tree-sitter` which could resolve this conflict

Copy link
Contributor

coderabbitai bot commented May 5, 2024

Important

Auto Review Skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@renovate renovate bot force-pushed the renovate/tree-sitter-native-0.x branch from 9d2b326 to ac865d4 Compare May 7, 2024 01:16
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.

None yet

0 participants