pola-rs/polars-cli

thread 'main' panicked at src/highlighter.rs

Opened this issue · 0 comments

danr commented

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of the Polars CLI.

Reproducible example

Type

open `

including the backtick into the cli. When pressing the backtick symbol you get a panick from the highlighter.

$ .local/bin/polars 
Polars CLI version 0.7.0
Type .help for help.
〉open thread 'main' panicked at src/highlighter.rs:123:46:
  called `Result::unwrap()` on an `Err` value: 
    Custom { kind: InvalidInput, 
      error: "Failed to tokenize SQL: Expected close delimiter '`' before EOF. at Line: 1, Column 6" }
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  Aborted (core dumped)

(reformatted for clarity)

Issue description

Panick at repl

Expected behavior

No crash

Installed version

0.7.0