Strange bug with indexing in VSCode (failed to reproduce)

Open
#3,503 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python, vscode
Domain
data

Research direction

Start by reproducing the issue in the Pylance extension in VSCode with a datatable of several thousand rows and about 35 columns, comparing the range expression against the equality expression around index 1853. Check whether restarting VSCode and rereading the data changes the result; done requires a reliable minimal reproduction or evidence that the behavior cannot be reproduced.

Written by the indexing model from the issue text.

Description

I was working with a datatable (several thousand rows and ~35 columns) inside a pylance extension in VSCode for many hours; suddenly i found out that a specific row doesn't get indexed with f expression such as
(f.Index > 1840) & (f.Index < 1870)
but gets indexed with
f.Index == 1853

the problem wasn't with the datafile, not with datatypes, and not with datatable size
i also wasn't related to the column being named 'Index'
when i relaunched vscode and read all the data back in, the problem disappeared

i assume this is some bug with memory handling or, least probable, with the integer 1853 itself

Dominant language
C++
Stars
1.9k
Forks
164
PR merge metrics
No merged PRs in 30d

Getting set up

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.

More from h2oai/datatable

All issues in h2oai/datatable

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.