posit-dev / posit-dev/positron

Python Variables pane is missing truncation indicator for >10,000 items at root

Open
#2,973 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: variables bug lang: python
Dominant language
TypeScript
Stars
4.3k
Forks
184
Avg merge
1d 9h
Merged PRs (30d)
195

Description

Positron Version:

2024.04.0 (Universal) build 1587

Steps to reproduce the issue:

Create more than 10,000 objects/items in Python, and view in the Variables pane:

for j in range(1,20000,1):
     exec('var_%d = j'%j)

The Variables pane correctly truncates to 10,000 items (as fixed for #2893) but we do not see any visual indication that truncation has happened.

truncation

What did you expect to happen?

A truncation indicator like we see for >100 children:

image

Were there any error messages in the output or Developer Tools console?

None that I believe are related to this

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the Variables pane by reproducing the issue with the provided Python loop and compare the root list with the existing indicator for more than 100 children. Done means the pane visibly indicates that a root-level collection was truncated after 10,000 items, with no related console errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, typescript
Domain
developer-experience, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.