Bug: sheets +workbook-export returns XLSX containing only A1 from each sheet
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 17.3k
- Forks
- 1.4k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 105
Description
Summary
lark-cli sheets +workbook-export reports success and downloads a valid XLSX file, but the exported workbook contains only cell A1 from each worksheet. The same spreadsheet can be read completely with sheets +table-get, confirming that the online data is present.
Environment
- lark-cli: v1.0.92
- OS: Linux amd64
- Identity: user
- Export format: xlsx
Minimal reproduction
A synthetic spreadsheet contains two worksheets:
- Alpha (A1:C4): header Item, Value, Status; rows Item-001/10/Open, Item-002/20/Closed, Item-003/30/Open.
- Beta (A1:B3): header Code, Score; rows X-01/88 and X-02/92.
Reading the spreadsheet returns all rows and columns:
lark-cli sheets +table-get --spreadsheet-token "<REDACTED>" --no-header
Exporting the same spreadsheet:
lark-cli sheets +workbook-export --spreadsheet-token "<REDACTED>" --output-path ./export.xlsx
The export command reports success and produces a valid XLSX file.
Actual result
- Alpha contains only A1 = "Item".
- Beta contains only A1 = "Code".
- All other cells are missing.
Expected result
The exported workbook should contain the complete used ranges Alpha A1:C4 and Beta A1:B3.
Notes
- The reproduction uses synthetic data only.
- No spreadsheet URL, token, account information, or private data is included.
- Because the export command reports success, this is a silent data-loss issue for callers that rely on the exported file.
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Start by tracing the +workbook-export command and compare its spreadsheet-reading path with +table-get. Use the synthetic Alpha and Beta ranges from the report to reproduce the export, then verify that the resulting XLSX contains every cell in Alpha A1:C4 and Beta A1:B3 rather than only A1.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100