question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

no preview for csv file

See original GitHub issue

Sorry for the naive question, but I cannot preview a simple csv file: image

Am I missing something ? here is the log

> window.WebComponentsReady

 data viewer initialized!

> data size in bytes: 0

> document.readystatechange complete

 data.view:complete!

> loadDataInfo()

 data url: file://path/to/elliptic_cavity_2D_10_combined_dir_direct_eig.csv
 data table: 

> restoreConfig(
{})

> loadTableList(
 tableNames = []
 requestedDataTable = ''
)

> refresh(dataTable='')

 loading data: elliptic_cavity_2D_10_combined_dir_direct_eig.csv ...

> getData()

 loading file data: elliptic_cavity_2D_10_combined_dir_direct_eig.csv ...

> getData()

 records count: 75

> refresh('')

 updating view data: elliptic_cavity_2D_10_combined_dir_direct_eig.csv ...

> 

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:8
  • Comments:41 (18 by maintainers)

github_iconTop GitHub Comments

12reactions
RandomFractalscommented, Feb 28, 2021

so, after updating to vscode v1.53.2 I can finally reproduce this for a dark data preview theme. I was not able to do it with the initial v1.53 release. Also, interestingly enough an older data preview I had open for zipcodes while testing with earlier version of that vscode release worked, while creating new data preview after vscode update to latest did not.

Oddly enough, changing data preview to light theme works.

data-preview-dense-light

If you want to try it, just change data preview theme setting in Preferences -> Settings -> Extensions -> Data Preview -> Theme

or set it in .vscode/settings.json for your project similar to: https://github.com/RandomFractals/vscode-data-preview/blob/master/.vscode/settings.json

I’ll see if I can debug and patch this soon. It’s a bit tricky and I suspect there is more to it than that error we get. Thanks for your patience.

4reactions
mrsoftowlcommented, Feb 26, 2021

yeah, I need to look into this. That updateStats call just reports the number of records read from a data file and size in vscode status bar and ext. log.

Thank you for sharing your error outputs.

Let me know if you need something else. Your plugin, after Jupyter Notebooks, is the key reason to recommend VSCode… Coffee inbound.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows 11 file explorer does not preview .csv files
As mentioned above, I have opened the preview pane but for whatever reason it will not show a preview of .csv files, instead...
Read more >
Preview csv file no avaiable - Windows 10 Forums
Open File Explorer. · Select View and click on preview panel. · Select the pdf file. · At the right corner you will...
Read more >
Preview csv file in outlook - Super User
You need an Outlook preview handler for CSV files. Preview handlers are associated with file types, not the programs that open them. –...
Read more >
Can't preview CSV files in macOS Sierra - Apple Community
Looks like no one's replied in a while. ... I used to be able to see a preview of a CSV file just...
Read more >
Preview CSV file in Salesforce - Trailhead
Hello Community! I'm trying to find a way to Preview unsuported attached files in the standard's Salesforce preview for files (ex: CSV or ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found