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

Syntax hightlight break when typing some type signature #4396

Closed
foxmean opened this issue Sep 5, 2024 · 4 comments
Closed

Syntax hightlight break when typing some type signature #4396

foxmean opened this issue Sep 5, 2024 · 4 comments
Labels
type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Comments

@foxmean
Copy link

foxmean commented Sep 5, 2024

My environment

Which OS do you use?: MacOS Sonoma 14.6.1, MacBook Air M1 2020

Which version of GHC do you use and how did you install it?: GHC 9.10.1 from GHCup

Which LSP client (editor/plugin) do you use?: Helix 24.7 (079f5442) & Zed 0.151.1. All of them was installed with Homebrew 4.3.19-40-g9659b57.

Which version of HLS do you use and how did you install it?: HLS 2.9.0.1 from GHCup.

Have you configured HLS in any way (especially: a hie.yaml file)?: I only use default setting without config anything

Steps to reproduce

  1. Type some type signature such as in the video below and the syntax highlight would break. It is semi-inconsistent. I mostly encounter with ad-hoc polymorphism or parametric polymorphism but it is not always happen. (Mostly with '=>' or '->') asciicast
Screen.Recording.2024-09-05.at.13.18.18.mov
  1. The syntax highlighting is always solvable by just close & reopen the file with any of editors I use.

ref: helix-editor/helix#11517

@foxmean foxmean added status: needs triage type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. labels Sep 5, 2024
@fendor
Copy link
Collaborator

fendor commented Sep 5, 2024

Hi, thank you for your bug report!

If you did not configure HLS in any way, then I presume you don't have semantic highlighting enabled in HLS?

If that's not the case, then the syntax highlighting is not provided by HLS but Helix. In this case there is nothing we can do to fix this.

@foxmean
Copy link
Author

foxmean commented Sep 5, 2024

Thank you for your reply. So, should I try Semantic highlighting or better waiting for stable release?

@fendor
Copy link
Collaborator

fendor commented Sep 5, 2024

Sure, give it a try! However, it is experimental, so expect bugs :) Also, I don't know whether helix has support for semantic highlighting.

Closing as "not our fault (this time)". Feel free to ask more questions or open more issues :)

@fendor fendor closed this as completed Sep 5, 2024
@foxmean
Copy link
Author

foxmean commented Sep 5, 2024

Just for reference, in case someone search for this issue: Helix won't support semantic highlighting for foreseeable future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Projects
None yet
Development

No branches or pull requests

2 participants