nushell/crates
Dietrich Daroch 9c7b25134b
Parsing: Explain parsing errors and show sample lines. (#2774)
This makes the errors slightly better. It took me a while to realize I was missing the `--raw` flag.

```
open "data.csv" | from csv --separator ';'
```

    error: Could not parse as CSV split by ',' (Line 1: expected 1 fields, found 14)
      ┌─ shell:1:1
      │
    1 │ open "data.csv" | from csv --separator ';'
      │ ^^^^ ------------------------------------------------- value originates from here
      │ │
      │ input cannot be parsed as CSV split by ','. Sample input:
    Name;Data
    Ugly;row
    AnotherUgly;row

I think this still needs some refinement. Maybe we don't want to show
the separator all the time, omitting the defaults or the separator
on other formats.
2020-12-07 07:19:04 +13:00
..
nu_plugin_binaryview Bump to 0.23 (#2766) 2020-11-25 07:22:27 +13:00
nu_plugin_chart Bump to 0.23 (#2766) 2020-11-25 07:22:27 +13:00
nu_plugin_fetch Bump to 0.23 (#2766) 2020-11-25 07:22:27 +13:00
nu_plugin_from_bson Bump to 0.23 (#2766) 2020-11-25 07:22:27 +13:00
nu_plugin_from_sqlite Bump to 0.23 (#2766) 2020-11-25 07:22:27 +13:00
nu_plugin_inc Bump to 0.23 (#2766) 2020-11-25 07:22:27 +13:00
nu_plugin_match Bump to 0.23 (#2766) 2020-11-25 07:22:27 +13:00
nu_plugin_post Bump to 0.23 (#2766) 2020-11-25 07:22:27 +13:00
nu_plugin_ps Bump to 0.23 (#2766) 2020-11-25 07:22:27 +13:00
nu_plugin_s3 Bump to 0.23 (#2766) 2020-11-25 07:22:27 +13:00
nu_plugin_selector Bump to 0.23 (#2766) 2020-11-25 07:22:27 +13:00
nu_plugin_start Bump to 0.23 (#2766) 2020-11-25 07:22:27 +13:00
nu_plugin_sys Bump to 0.23 (#2766) 2020-11-25 07:22:27 +13:00
nu_plugin_textview Bump to 0.23 (#2766) 2020-11-25 07:22:27 +13:00
nu_plugin_to_bson Bump to 0.23 (#2766) 2020-11-25 07:22:27 +13:00
nu_plugin_to_sqlite Bump to 0.23 (#2766) 2020-11-25 07:22:27 +13:00
nu_plugin_tree Bump to 0.23 (#2766) 2020-11-25 07:22:27 +13:00
nu_plugin_xpath Bump to 0.23 (#2766) 2020-11-25 07:22:27 +13:00
nu-cli Parsing: Explain parsing errors and show sample lines. (#2774) 2020-12-07 07:19:04 +13:00
nu-data Bump to 0.23 (#2766) 2020-11-25 07:22:27 +13:00
nu-errors Bump to 0.23 (#2766) 2020-11-25 07:22:27 +13:00
nu-json Bump to 0.23 (#2766) 2020-11-25 07:22:27 +13:00
nu-parser Bump to 0.23 (#2766) 2020-11-25 07:22:27 +13:00
nu-plugin Bump to 0.23 (#2766) 2020-11-25 07:22:27 +13:00
nu-protocol Bump to 0.23 (#2766) 2020-11-25 07:22:27 +13:00
nu-source Bump to 0.23 (#2766) 2020-11-25 07:22:27 +13:00
nu-table Bump to 0.23 (#2766) 2020-11-25 07:22:27 +13:00
nu-test-support Bump to 0.23 (#2766) 2020-11-25 07:22:27 +13:00
nu-value-ext Bump to 0.23 (#2766) 2020-11-25 07:22:27 +13:00