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

Missing Syntax Highlighting when installed with Homebrew #737

Open
5 of 13 tasks
Unix-Code opened this issue Jan 30, 2025 · 2 comments
Open
5 of 13 tasks

Missing Syntax Highlighting when installed with Homebrew #737

Unix-Code opened this issue Jan 30, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@Unix-Code
Copy link

Before Proceeding, please acknowledge:

  • I have consulted the Troubleshooting guide.
  • I have searched Issues and Discussions in this repo.
  • Feature requests should be initiated as Discussions. This is a bug report.

Describe the bug
A clear and concise description of what the bug is.

No matter what theme I set harlequin to, I don't see any syntax highlighting. I also cannot find any documentation about how to separately enable syntax highlighting (so I assume it should be enabled by default).

To Reproduce
Steps to reproduce the behavior.
Simply open the UI in any adapter.

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

Actual behavior
A clear and concise description of what happened; please include screenshots or videos of Harlequin if possible.

Image

Image

Contributing
Are you interested in contributing a fix?

  • Yes
  • Maybe
  • No

Additional context
Please provide as much as you can, but don't waste your time if it's definitely not relevant or you don't know.

What is the output of harlequin --version?
2.0.0

What database adapter are you using with Harlequin? (Default is duckdb)
postgres / duckdb (occurs across several I tried)

What other options are you using when invoking Harlequin? (If you are using a profile, please add relevant items from your profile here).

Can you tell us more about your system?

  • Shell:
  • Terminal:
  • OS of the shell:
  • OS of the terminal (if different from the shell):
  • Default locale / language for your OS/Terminal/Shell:

Shell: ZSH
Terminal: Ghostty
OS of the shell: Mac OSX

Image

Tip

For example, for my system, these are:

  • Bash
  • Windows Terminal
  • Ubuntu 22.04 / WSL2
  • Windows 11
  • en_US/UTF-8

How did you install Harlequin?

  • pipx
  • conda/mamba
  • pip (global install)
  • pip + venv/virtualenv or pipenv
  • Poetry
  • uv/Rye
  • other: Homebrew
@tconbeer
Copy link
Owner

I'd bet the Homebrew formula isn't downloading the tree-sitter language packs correctly.

Can you try installing with uv instead to see if you can reproduce?

curl -LsSf https://astral.sh/uv/install.sh | sh
uvx harlequin

@tconbeer
Copy link
Owner

Yeah, this is no longer the right way to install the tree-sitter language dependencies (changed in Textual 0.89):

https://github.com/Homebrew/homebrew-core/blob/d8ac0e0fe3792f963c9134653a0f737386d0377c/Formula/h/harlequin.rb#L204-L207

tree-sitter-sql should be installed independently. See

https://github.com/Textualize/textual/blob/a05cffaf51ac361c56ad74bef2f4b5fa0832c03f/pyproject.toml#L70

@mfinelli can you help with this?

@tconbeer tconbeer changed the title Missing Syntax Highlighting Missing Syntax Highlighting when installed with Homebrew Jan 31, 2025
@tconbeer tconbeer added the bug Something isn't working label Jan 31, 2025
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

2 participants