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

No syntax highlighting on MacOs #85

Closed
niccolomineo opened this issue Jul 18, 2022 · 4 comments
Closed

No syntax highlighting on MacOs #85

niccolomineo opened this issue Jul 18, 2022 · 4 comments

Comments

@niccolomineo
Copy link

niccolomineo commented Jul 18, 2022

πŸ‘“ What did you see?

Plain text .feature file

βœ… What did you expect to see?

Highlighted syntax in .feature file

πŸ“¦ Which tool/library version are you using?

Cucumber 1.2.8

πŸ”¬ How could we reproduce it?

Steps to reproduce the behavior:

  1. Install Cucumber 1.2.8 on VSCode 1.69.2 for MacOs Monterey
  2. Reload VScode
  3. Open a project either locally or via the popular Remote - Containers extension
  4. Create a file called test.feature in a feature/ folder in the workspace's root
  5. Select Cucumber as language mode from the right side of the bottom status bar
  6. Acknowledge that syntax highlighting is still not applied
@BrianHawley
Copy link

BrianHawley commented Jul 21, 2022

Can you please share the output from the logs? See CONTRIBUTING.md for details.

I seem to be having a similar issue, though in macOS itself rather than a remote container. In the output I see an error like this, right before syntax highlighting fails:

[Error - 7:00:59 PM] Request textDocument/semanticTokens/full failed.
  Message: Request textDocument/semanticTokens/full failed with message: Incomplete group: {"children":[]}
  Code: -32603 

Same error seen in 2 codebases.

@niccolomineo
Copy link
Author

niccolomineo commented Jul 21, 2022

The problem is in the remote container as well as on MacOs. My machine has an M1 chip.

I am afraid I am not able to give you the log as I am not seeing the Cucumber Language Server in the dropdown:

Schermata 2022-07-21 alle 10 19 08

@niccolomineo niccolomineo changed the title No Syntax highlighting on MacOs No syntax highlighting on MacOs Jul 24, 2022
@niccolomineo
Copy link
Author

niccolomineo commented Jul 28, 2022

@BrianHawley I found out that the lack of syntax highlighting is due to the custom theme I am using.

@niccolomineo
Copy link
Author

niccolomineo commented Jul 28, 2022

If you have a custom theme, the absence of syntax highlight can be fixed by enabling semantic highlighting via settings, like so:

    "[cucumber]": {
        "editor.semanticHighlighting.enabled": true
    },

You may then want to launch the "Developer: inspect token and scopes" command in the event some tokens are not colorized and you want to find out more about those.

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

No branches or pull requests

2 participants