eww icon indicating copy to clipboard operation
eww copied to clipboard

[BUG] Error parsing input for jq filter

Open eviefp opened this issue 1 year ago • 0 comments

Checklist before submitting an issue

  • [X] I have searched through the existing closed and open issues for eww and made sure this is not a duplicate
  • [X] I have specifically verified that this bug is not a common user error
  • [X] I am providing as much relevant information as I am able to in this bug report (Minimal config to reproduce the issue for example, if applicable)

Description of the bug

Getting an unexpected error for a jq filter.

error: Error parsing jq filter: found end of input

Reproducing the issue

I am trying to do something like this, which feels like it should work (I want to iterate over every other CPU core)

(for core in {jq("${arraylength(EWW_CPU.cores)}", "[range(0; .; 2)]")}

The error highlights the r in range as the problem.

Expected behaviour

As tested with both jq and jaq, the result should be an array rather than a parsing error.

Additional context

No response

eviefp avatar Jan 05 '24 18:01 eviefp