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

thread 'main' panicked at src/highlighter.rs #63

Open
2 tasks done
danr opened this issue Apr 30, 2024 · 0 comments
Open
2 tasks done

thread 'main' panicked at src/highlighter.rs #63

danr opened this issue Apr 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@danr
Copy link

danr commented Apr 30, 2024

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

@danr danr added the bug Something isn't working label Apr 30, 2024
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

1 participant