value_text() of a term value prints a session-local allocation id (term#16) instead of the expression
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 72/100
Research direction
Start by tracing value_text() for term-kind values and the related value formatting code; the issue does not name source files or tests. Compare its output with format(value_term(value)) and inspect the term representation to find where the allocation id is used. Done means equivalent terms render as their expressions across sessions and allocation orders, with format() and print() showing that text.
Written by the indexing model from the issue text.
Description
value_text() of a term-kind value returns a session-local allocation id such as "term#16" instead of the expression, so the same mathematical value prints differently depending on what was allocated before it.
library(rssn)
a <- rssn_session(); b <- rssn_session()
invisible(sym("q1", a)); invisible(sym("q2", a)); invisible(sym("q3", a)) # allocation history only
va <- value_new(parse_term("x^2 + 1", a), a)
vb <- value_new(parse_term("x^2 + 1", b), b)
value_text(va) # "term#16"
value_text(vb) # "term#13" same expression, different text
format(value_term(va)) # "x^2 + 1" the expression is available
format(value_term(vb)) # "x^2 + 1"
print(va) # <rssn value> term: term#16
value_json() confirms the id is a raw node number, and it carries a process-local session number too:
{"term":{"session":1,"node":16}} # session a
{"term":{"session":2,"node":13}} # session b
value_text() is the generic string reader, and format()/print() are built on it, so a term value displays as term#16 rather than as its expression. The expression is available (value_term() returns a term that formats as x^2 + 1), and the other value kinds all render their content in value_text() ("1.5", "true", {a: 1, b: "x"}), so a term value rendering as an allocation counter is inconsistent with the rest of the ABI and is not stable across sessions or across allocation order.
rssn 0.3.0, R 4.6.2 binding, Windows x86_64.
- Dominant language
- Rust
- Stars
- 36
- Forks
- 3
- Avg merge
- 14h 51m
- Merged PRs (30d)
- 29
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Apich-Organization/rssn
-
num_ode_rk4_adaptive rejects atol = 0 while accepting rtol = 0 and while num_ode_dopri5 accepts bothOpenarea/ode-pde good first issue help wanted kind/contract severity/4-minor
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Apich-Organization/rssn#383 ·
Maintainers usually reply within 1 day
-
area/numerical good first issue help wanted kind/doc-mismatch severity/5-trivial
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Apich-Organization/rssn#373 ·
Maintainers usually reply within 1 day
-
area/numerical good first issue help wanted kind/doc-mismatch severity/4-minor
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Apich-Organization/rssn#371 ·
Maintainers usually reply within 1 day
-
json_encode() re-emits a decoded empty JSON object as [], so {} and {"":1} are not round-trip stableOpenarea/api-bindings good first issue help wanted kind/contract severity/4-minor
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Apich-Organization/rssn#361 ·
Maintainers usually reply within 1 day
-
area/statistics good first issue help wanted kind/wrong-result severity/4-minor
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Apich-Organization/rssn#362 ·
Maintainers usually reply within 1 day
All issues in Apich-Organization/rssn
Similar issues
-
triage: failed
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
oxc-project/tsrs#1277 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
autofixer: follow-up triage: bug triage: classified triage: correctness triage: has-reproducer
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
tursodatabase/turso#13221 ·
Maintainers usually reply within 1 day
-
Update Wasmtime to 48.0.11 for RUSTSEC-2026-0648Possibly taken @flyingrobots claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
flyingrobots/edict#457 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100