Skip to content

bump Highlights.jl compat#390

Open
oscardssmith wants to merge 3 commits into
JuliaDebug:masterfrom
oscardssmith:patch-1
Open

bump Highlights.jl compat#390
oscardssmith wants to merge 3 commits into
JuliaDebug:masterfrom
oscardssmith:patch-1

Conversation

@oscardssmith

Copy link
Copy Markdown
Contributor

No description provided.

@oscardssmith

Copy link
Copy Markdown
Contributor Author

This turned out to be bigger than I thought. Specifically, the new Highlighter release both makes things a lot nicer for us, but also removes some level of control. Is it acceptable that we lose the ability for users to explicitly target system vs 256 vs 24 bit color? It looks like Highlights.jl just handles this automatically now.

@oscardssmith

Copy link
Copy Markdown
Contributor Author

The failing test here also fails on master.

@pfitzseb

pfitzseb commented Mar 4, 2026

Copy link
Copy Markdown
Member

That test failure should be fixed in #392.

@oscardssmith

Copy link
Copy Markdown
Contributor Author

Thanks for the fixes!

Comment thread Project.toml
JuliaInterpreter = "aa1ae85d-cabe-5617-a682-6adf51b2e16a"
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
REPL = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
tree_sitter_julia_jll = "52be201e-a5e9-5cfe-8bf2-2dc4b062171c"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this for?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the new highlighter version requires users depend on treesitter jlls for the languages that they highlight

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can load the package and use the

using tree_sitter_julia_jll
highlight(code, tree_sitter_julia_jll, "Dracula")

format? It just feels strange to depend on a package and then not load it..

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with that. I agree that it's a little weird to depend but not load.

@codecov-commenter

codecov-commenter commented Mar 5, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 49.70%. Comparing base (5327ede) to head (1d88adf).
⚠️ Report is 29 commits behind head on master.

Files with missing lines Patch % Lines
src/printing.jl 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #390      +/-   ##
==========================================
- Coverage   51.03%   49.70%   -1.34%     
==========================================
  Files           9        9              
  Lines         821      835      +14     
==========================================
- Hits          419      415       -4     
- Misses        402      420      +18     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants