List with numbers #18
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi James!
Thank you for tricu!
It helps me a lot with getting familiar with triage calculus!
A list containing only numbers is not decoded correctly:
But this works:
Hey @vincent , thanks for opening this! I'm quite early in development here so many features aren't properly documented.
You can work around this using the
!decode
command in the REPL for now which disables decoding entirely. This allows you to see the full Tree forms of your outputs.The reason this happens is because strings are encoded as lists of numbers, so when the decoder function encounters [ (1) (2) ] , it believes that the value is a string containing the ASCII characters mapped to
1
and2
. The decoding function was a rushed implementation and can handle these situations much more intelligently, so I'll leave this issue open until I am able to make some changes so that it handles this better.Thank you!
I will try out the !decode command.
I use the nix flake, which works great, even in https://github.com/noamraph/nixsa.
The released binaries don't seem to work for me (I am on Fedora Silverblue Atomic Desktop.)
Here is the strace output:
Thank you again for tricu!
Thank you @vincent for that additional feedback regarding the binaries; they're meant to be statically linked. I have some test builds running and if everything pans out, I'll update my pipelines here so that the next release works properly. Until then, I'll hold off on distributing further binaries as they're not going to be useful to anyone else. I'm tracking this in #20 and will tag you there when that is resolved.
As for the issue in this ticket, it's resolved in commit
e6e18239a7
available now on main.Lists that only contain the numbers
9
,10
,13
, and32...126
will still decode as strings:This looks to be an improvement. Let me know if you have any thoughts on further improvements for this behavior.
That commit also replaces the
!decode
REPL command I just mentioned to you with!output
so that you can choose from the different output formats already implemented for the-t
flag ontricu eval
.I really appreciate you reporting these problems to me. If you run into any others or have suggestions, please feel free to open another issue!