tconbeer / harlequin

The SQL IDE for Your Terminal.
https://harlequin.sh
MIT License
3.64k stars 83 forks source link

run harlequin --no-download-tzdata on windows failed #467

Closed l1t1 closed 7 months ago

l1t1 commented 7 months ago

Describe the bug when run harlequin, it reports Harlequin was not able to download a timezone database. Without a timezone database, Harlequin may crash if you attempt to load timestamptz values into the results viewer. To use Harlequin anyway, set the --no-download-tzdata option. and when I run harlequin --no-download-tzdata, it shows many strange characters on the screen as attachment.

To Reproduce run cmd, then input harlequin --no-download-tzdata.

Expected behavior harlequin works as normal.

Actual behavior it shows many strange characters on the screen,

Additional context

harlequin, version 1.15.0

Installed Adapters:
  - duckdb, version 1.15.0
  - sqlite, version 1.15.0

What database adapter are you using with Harlequin? (Default is DuckDB) DuckDB Can you tell us more about your system?

2024-02-18_081822

tconbeer commented 7 months ago

Looks like your font doesn't have box-drawing characters. Can you. Change the font for cmd? A modern mono will work. FiraCode is a popular choice.

https://www.wikihow.com/Customize-the-Font-in-Windows-Command-Prompt

l1t1 commented 7 months ago

I tried the other font of cmd, which shows the box correctly, but still got same error. 2024-02-19_082532 2024-02-19_082628

l1t1 commented 7 months ago

btw: How can set the timestamptz on local?

tconbeer commented 7 months ago

See my comment on #468

That's not an error; cmd is failing to process the ANSI control sequences correctly. You can try using Powershell, but I doubt this will work with Windows 7.