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

Missing Characters after Reformat #79

Open
njascgil opened this issue Nov 27, 2023 · 1 comment
Open

Missing Characters after Reformat #79

njascgil opened this issue Nov 27, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@njascgil
Copy link

A strange issue: if I delete a line then immediately proceed to reformat the CSV file (with "Align vertically"), the first character of the line below the one deleted disappears.
If, on the other hand, I save the file before reformatting, everything appears to be fine.

This happens to me in this file, for instance:
courseid_319_participants-01.csv

@BdR76
Copy link
Owner

BdR76 commented Dec 2, 2023

Thanks for posting this issue, I see the same thing and the steps to reproduce this are:

  1. Open the CSV Lint window
  2. Open the test data file
  3. Select the first data row (starting with "João,Barreiras..")
  4. Delete the entire row (including the newline)
  5. Quickly press the CSV Lint button Reformat
  6. Reformat to "Align vertically" or "Tab-separated" etc.

The result is that it cuts off the first character of the next line Filipe,Brito.. to just ilipe,Brito... The exact Reformat options don't really matter, and the same issue would happen if you select Sort or Add column instead of Reformat. Basically it happens when CSV Lint has to rebuild the data file in some way.

Like you said, if you save the file before reformatting it doesn't happen. But also, when you wait like 5 seconds after deleting the line, it also doesn't happen (!?).

It's very strange and I have seen this before. It has to do with Notepad++ caching the textfile data and it somehow ending up not being synchronised after you edit text. I'll have to look into this, but it's a long-standing issue and I'm not sure what I can do about this.

@BdR76 BdR76 added the bug Something isn't working label Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants