Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vds] saving sheet with no rows makes following sheets unreadable #2342

Open
midichef opened this issue Mar 5, 2024 · 0 comments
Open

[vds] saving sheet with no rows makes following sheets unreadable #2342

midichef opened this issue Mar 5, 2024 · 0 comments
Labels

Comments

@midichef
Copy link
Contributor

midichef commented Mar 5, 2024

Steps to reproduce with sample data and a .vd
vd sample_data/sample.tsv no.txt sample_data/countries
Then save the sheets with save-all as unreadable.vds.
vd unreadable.vds will give an error.

File "/home/midichef/.local/lib/python3.10/site-packages/visidata/sheets.py", line 285, in loader
  for r in self.iterload():
File "/home/midichef/.local/lib/python3.10/site-packages/visidata/loaders/vds.py", line 73, in iterload
  raise Exception(d)
Exception: {'name': 'countries'}

The problem is that the .vds format can't specify a sheet with zero rows. The format has no marker for the end of a sheet.

Additional context
saul.pw/VisiData v3.1dev

@midichef midichef added the bug label Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant