mathworks / mathworks/MATLAB-extension-for-vscode

Printing a table prints all rows by default. It should print just a few rows, like in the MATLAB IDE

Open
#293 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
435
Forks
40
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
Printing a table prints all rows by default. It should print just a few rows, like in the MATLAB IDE.

To Reproduce

tb = table();
tb.("column") = rand(1000,1);

Type tb in the terminal and press enter. The entire table is printed instead of just a preview.

Expected behavior
I expected only the first 7 rows and the last 7 rows to be printed, like in the MATLAB IDE:

Image

MATLAB Version: '24.2.0.2740171 (R2024b) Update 1'
VS Code Version: 1.85.2 (system setup)
Commit: 8b3775030ed1a69b13e4f4c628c612102e30a681
Date: 2024-01-18T06:40:10.514Z
Electron: 25.9.7
ElectronBuildId: 26354273
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Windows_NT x64 10.0.19045
Extension Version: 1.3.6

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

Reproduce the issue by creating a table with 1,000 rows and entering tb in the terminal. Trace the MATLAB extension's terminal table-printing entry point and compare its output with the expected first 7 and last 7 rows; done means large tables show that preview instead of every row.

Written by the indexing model from the issue text.

Assessment

Tech stack
matlab, typescript, vscode
Domain
cli, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.