NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.08k stars 14.13k forks source link

octave: jsonencode(...PrettyPrint...) leads to warning #269136

Open eku opened 11 months ago

eku commented 11 months ago

Describe the bug

According to the Octave documentation of jsonencode the function supports pretty printing of the json data. Unfortunately this does not work with the version of octave build for Nix.

Steps To Reproduce

Steps to reproduce the behavior:

  1. start octave
  2. input at prompt jsonencode ([true; false], "PrettyPrint", true)
  3. get warning: jsonencode: support for the "PrettyPrint" option of RapidJSON was unavailable or disabled when Octave was built

Expected behavior

jsondecode fully supports option PrettyPrint.

Screenshots

N/A

Additional context

I couldn't figure out whether the Octave or RapidJSON package was built incorrectly.

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.51, NixOS, 23.05 (Stoat), 23.05.20230907.4f77ea6`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.5`
 - channels(root): `"home-manager-23.05.tar.gz, nixos-23.05"`
 - channels(user): `""`
 - nixpkgs: `/nix/store/splp4lqr6n115q125nhqk2qmg81hsk1r-source`

Priorities

Add a :+1: reaction to issues you find important.

mmuetzel commented 9 months ago

For the PrettyPrint feature of Octave to work correctly, you'd need to cherry-pick the following two PRs for RapidJSON: https://github.com/Tencent/rapidjson/issues/909 https://github.com/Tencent/rapidjson/issues/1720