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

Some std lib math functions throw Field does not exist error on runtime. #781

Open
angadgill92 opened this issue Jan 15, 2025 · 0 comments

Comments

@angadgill92
Copy link

Build info:

Jsonnet commandline interpreter (Go implementation) v0.20.0
go version go1.23.3 darwin/arm64
OS: Mac OS Sequoia 15.0.1 (24A348)

Steps to reproduce:
Run:

$ jsonnet -e 'std.isInteger(12.1)'

Expected output:

false

Actual:

$ jsonnet -e 'std.isInteger(12.1)'
RUNTIME ERROR: Field does not exist: isInteger
	<cmdline>:1:1-14	$
	During evaluation

The output is similar for std.isDecimal, std.isEven and std.isOdd.

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

No branches or pull requests

1 participant