Package Details: ast-grep 0.38.1-1

Git Clone URL: https://aur.archlinux.org/ast-grep.git (read-only, click to copy)
Package Base: ast-grep
Description: A fast and polyglot tool for code structural search, lint, rewriting at large scale
Upstream URL: https://ast-grep.github.io/
Keywords: code grep rust
Licenses: MIT
Submitter: YHNdnzj
Maintainer: KokaKiwi
Last Packager: KokaKiwi
Votes: 5
Popularity: 1.44
First Submitted: 2023-03-11 17:58 (UTC)
Last Updated: 2025-05-13 21:27 (UTC)

Latest Comments

mattkavs commented on 2025-05-13 18:33 (UTC)

Building fails on the latest release:

   Compiling ast-grep-core v0.38.0 (/home/<username>/.cache/paru/clone/ast-grep/src/ast-grep-0.38.0/crates/core)
error[E0658]: precise captures on `impl Trait` are experimental
  --> crates/core/src/meta_var.rs:70:79
   |
70 |   pub fn get_matched_variables(&self) -> impl Iterator<Item = MetaVariable> + use<'_, 't, D> {
   |                                                                               ^^^
   |
   = note: see issue #123432 <https://github.com/rust-lang/rust/issues/123432> for more information

For more information about this error, try `rustc --explain E0658`.
error: could not compile `ast-grep-core` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'ast-grep-0.38.0-1':
error: packages failed to build: ast-grep-0.38.0-1

lilydjwg commented on 2024-12-28 07:08 (UTC)

Also create a python-ast-grep package that packages the Python binding? https://gist.github.com/lilydjwg/2cea426fda60fb4a56df2de81c94d907

BTW the "sg" binary isn't used, so --bin ast-grep could be added to the build command to save some CPU usage.

AsukaMinato commented on 2023-05-11 14:34 (UTC)

maybe missing gcc-libs and glibc as deps?