Skip to content

Cannot compile v4.0.0 with cargo, compile errors with CsvlensOptions #2694

@gcflymoto

Description

@gcflymoto

Describe the bug
Cannot compile v4.0.0

To Reproduce
cargo install qsv --locked --features all_features

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots/Backtrace/Sample Data

Compiling csvlens v0.12.0
...
Compiling qsv v4.0.0
error[E0560]: struct `CsvlensOptions` has no field named `freeze_cols_offset`
  --> /home/user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/qsv-4.0.0/src/cmd/lens.rs:97:9
   |
97 |         freeze_cols_offset: args.flag_freeze_columns,
   |         ^^^^^^^^^^^^^^^^^^ `CsvlensOptions` does not have this field
   |
   = note: all struct fields are already assigned

error[E0599]: no method named `with_options` found for struct `polars::prelude::CsvReader` in the current scope
    --> /home/user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/qsv-4.0.0/src/util.rs:2742:18
     |
2740 |               let reader = CsvReadOptions::default()
     |  __________________________-
2741 | |                 .try_into_reader_with_file_path(Some(path.to_path_buf()))?
2742 | |                 .with_options(if let Some(schema) = schema {
     | |                 -^^^^^^^^^^^^ method not found in `CsvReader<File>`
     | |_________________|
     |

error[E0599]: no method named `with_options` found for struct `polars::prelude::CsvReader` in the current scope
    --> /home/user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/qsv-4.0.0/src/util.rs:2759:26
     |
2757 | /                     CsvReadOptions::default()
2758 | |                         .try_into_reader_with_file_path(Some(path.to_path_buf()))?
2759 | |                         .with_options(base_options.with_infer_schema_length(Some(1000)))
     | |                         -^^^^^^^^^^^^ method not found in `CsvReader<File>`
     | |_________________________|
     |


Desktop (please complete the following information):

  • OS: Redhat8.10
  • qsv 4.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions