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

Trim is not working well #3078

Closed
realtica opened this issue Mar 25, 2024 · 6 comments
Closed

Trim is not working well #3078

realtica opened this issue Mar 25, 2024 · 6 comments

Comments

@realtica
Copy link

Please test it in: jqplay

The error is general:
jq: error: trim/0 is not defined at , line 1:
trim, ltrim, rtrim
jq: error: ltrim/0 is not defined at , line 1:
trim, ltrim, rtrim
jq: error: rtrim/0 is not defined at , line 1:
trim, ltrim, rtrim
jq: 3 compile errors
exit status 3

@wader
Copy link
Member

wader commented Mar 25, 2024

Hey! jqplay uses jq 1.7.1 and the trim functions are current only in the development version of jq and will most likely be in next release.

@wader
Copy link
Member

wader commented Mar 26, 2024

It would be nice if jqplay could support different versions of jq, maybe even a "nightly" somehow. But that discussion should probably be at https://github.com/owenthereal/jqplay

@wader wader closed this as completed Mar 26, 2024
@wader
Copy link
Member

wader commented Mar 26, 2024

Maybe the main confusion comes from that https://jqlang.github.io/jq/manual/ is docs for the development version and not latest stable release?

@rrrnld
Copy link

rrrnld commented May 27, 2024

Oh, I agree. This bit me today as well! I used the manual as documentation and tried it in the command line, which didn't work. I assumed that the manual is for the latest stable version and that I had some older version installed. I tried it in the playground -- same result, which confused me even more. My next thought was that maybe I'm looking docs for a fork, or that the docs were generated by an LLM and unreliable (oh no)… only to find this issue. Maybe it makes sense to keep the docs for the stable version, and offer a nightly version of the docs when explicitly asked?

wader added a commit to wader/jq that referenced this issue May 27, 2024
Move deveopment manual.yml to dev/manual.yml
Symlink manual.yml to v1.7/manual.yml
Refactor to share history header with links to other manual versions.

Related to jqlang#3078 jqlang#3127
@wader
Copy link
Member

wader commented May 27, 2024

@heyarne sorry for the confusion, i just made #3130 to hopefully clear things up a bit

wader added a commit to wader/jq that referenced this issue May 27, 2024
Move deveopment manual.yml to dev/manual.yml
Symlink manual.yml to v1.7/manual.yml
Refactor to share history header with links to other manual versions.

Related to jqlang#3078 jqlang#3127
wader added a commit to wader/jq that referenced this issue May 27, 2024
Move deveopment manual.yml to dev/manual.yml
Symlink manual.yml to v1.7/manual.yml
Refactor to share history header with links to other manual versions.

Related to jqlang#3078 jqlang#3127
wader added a commit to wader/jq that referenced this issue May 27, 2024
Move deveopment manual.yml to dev/manual.yml
Symlink manual.yml to v1.7/manual.yml
Refactor to share history header with links to other manual versions.

Related to jqlang#3078 jqlang#3127
wader added a commit to wader/jq that referenced this issue May 27, 2024
Move deveopment manual.yml to dev/manual.yml
Symlink manual.yml to v1.7/manual.yml
Refactor to share history header with links to other manual versions.
Change man.test generation

Related to jqlang#3078 jqlang#3127
wader added a commit to wader/jq that referenced this issue May 27, 2024
Move deveopment manual.yml to dev/manual.yml
Symlink manual.yml to v1.7/manual.yml
Refactor to share history header with links to other manual versions.
Change man.test and man page generation to use dev/manual.yml

Related to jqlang#3078 jqlang#3127
wader added a commit to wader/jq that referenced this issue May 27, 2024
Move deveopment manual.yml to dev/manual.yml
Symlink manual.yml to v1.7/manual.yml
Refactor to share history header with links to other manual versions.
Change man.test and man page generation to use dev/manual.yml

Related to jqlang#3078 jqlang#3127
wader added a commit to wader/jq that referenced this issue May 27, 2024
Fixes issue with confusion about features that has not been
released yet.

Move deveopment manual.yml to dev/manual.yml
Symlink manual.yml to v1.7/manual.yml
Refactor to share history header with links to other manual versions.
Change man.test and man page generation to use dev/manual.yml

Related to jqlang#3078 jqlang#3127
wader added a commit to wader/jq that referenced this issue May 28, 2024
Fixes issue with confusion about features that has not been
released yet.

Move deveopment manual.yml to dev/manual.yml
Symlink manual.yml to v1.7/manual.yml
Refactor to share history header with links to other manual versions.
Change man.test and man page generation to use dev/manual.yml

Related to jqlang#3078 jqlang#3127
wader added a commit that referenced this issue Jul 12, 2024
Fixes issue with confusion about features that has not been
released yet.

Move deveopment manual.yml to dev/manual.yml
Symlink manual.yml to v1.7/manual.yml
Refactor to share history header with links to other manual versions.
Change man.test and man page generation to use dev/manual.yml

Related to #3078 #3127
@wader
Copy link
Member

wader commented Jul 12, 2024

Now fixed by #3130 but /dev manual will still have possibly broken jqplay examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants