Skip to content
New issue

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

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

Already on GitHub? # to your account

[sheets-] fix error adding col to sheet with no visible cols #2614

Merged
merged 2 commits into from
Dec 2, 2024

Conversation

midichef
Copy link
Contributor

Adding columns to an empty sheet gives an error: echo hi |vd then - then i.

Traceback (most recent call last):
  File "addcol-incr", line 1, in <module>
    'VisiData: a curses interface for exploring and arranging tabular data'
  File "/home/midichef/.venv.vd_develop/lib/python3.12/site-packages/visidata/sheets.py", line 579, in addColumnAtCursor
    index = self.columns.index(ccol)+1
ValueError: <Column: > is not in list

Copy link
Owner

@saulpw saulpw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @midichef !

@anjakefala anjakefala merged commit d055887 into saulpw:develop Dec 2, 2024
8 of 14 checks passed
@midichef midichef deleted the addcol_firstcol branch December 3, 2024 21:43
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants