Giter Club home page Giter Club logo

j9's Introduction

Github linkedin speakerdeck twitter

github-stats

j9's People

Contributors

ynqa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

tranzystorekk

j9's Issues

Allow linking against system-provided libjq

Distributions that provide jq typically also offer development packages that can be discovered by using pkg-config. Adding optional pkg-config configuration to j9-sys would be a welcome step towards easier packaging of jnv without having to build a vendored libjq version.

Custom build command failure due to missing autoreconf (j9-sys v0.1.2)

Description:
I am experiencing an issue when attempting to compile the j9-sys v0.1.2 crate. The custom build command fails with the following error message:

error: failed to run custom build command for `j9-sys v0.1.2`
Caused by:
  process didn't exit successfully: `/tmp/cargo-installsCL7B6/release/build/j9-sys-acd45b9a421ac1f9/build-script-build` (exit status: 101)
  --- stderr
  autoreconf: 1: exec: autoreconf: not found
  ...

Actual Result:
The build process fails, with an error indicating that autoreconf is not installed on the system.

Environment Information:

  • Operating System: Ubuntu 22.04
  • Rust version: rustc 1.76.0 (07dca489a 2024-02-04)
  • Cargo version: 1.76.0 (c84b36747 2024-01-18)

Feedback:
It seems that the build script for j9-sys depends on autoreconf, which is not always present on all platforms. This leads to compilation failure on systems where autoreconf is not pre-installed.

Suggestions:
I recommend adding a check in the build script to verify the presence of autoreconf and to provide clear instructions or automated steps for users to install it if it's missing. Furthermore, it would be beneficial if the crate's documentation included a note about the requirement of autoreconf and how users can address this dependency.

Thank you for considering this feedback. I believe that improved environment checks and prompts will greatly enhance the user experience when working with the j9-sys crate.

`fromjson` not returning error on parse failure

When j9::run encounters an error in the input it should result in an error, but it currently fails silently.

Example:

let s = j9::run(".a=(.a|fromjson)", "{\"a\":\"4v2\"}").expect("Should have failed at parsing");
panic!("incorrectly returned success : {s:?}");

prints

incorrectly returned success : []

but

jq -n '{a:"4v2"}' | jq '.a=(.a|fromjson)'

prints

jq: error (at :3): Invalid numeric literal at EOF at line 1, column 3 (while parsing '4v2')

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.