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

Highlighting and Keymaps broken for v 0.176.2 in Python #26109

Open
datacubeR opened this issue Mar 5, 2025 · 2 comments
Open

Highlighting and Keymaps broken for v 0.176.2 in Python #26109

datacubeR opened this issue Mar 5, 2025 · 2 comments

Comments

@datacubeR
Copy link

Summary

It seems that TreeSitter broke with version 0.176.2. Syntax Highlighting is not working as expected with different themes. Additionally for some reason some keybindings stopped working or have unexpected behavior when using VIM Keybindings.

I overridden some keymaps such as:

  {
    "context": "Workspace",
    "bindings": {
      "ctrl-e ctrl-e": "project_panel::ToggleFocus",
      "ctrl-s": ["workspace::SendKeystrokes", "ctrl-shift-p save enter escape"],
    }
  • ctrl-e ctrl-e usually opened the Project Panel but now works as Vim Line Down.
  • ctrl-s works as save and go back to normal mode. Now either stop working or moves to a different tab. Totally Random.

These issues started just after updating to this version.

Regarding highlighting, several themes stopped recognizing certain objects. Function names and parameters are not using appropriate colors. I'm using Catppuccin Machiato and the italics and no italics version are not working correctly. A lot of white is there when it should be colored.

Actual Behavior:

Image

Expected Behavior:

You can see capital letters or library names like os in white when they should be in Yellow as seen in this other picture of the VSCode version.

Image

It is important to note that all of these just worked before updating Zed.

Thanks in advance,

Alfonso

Zed Version and System Specs

Zed: v0.176.2 (Zed)
OS: Linux X11 pop 22.04
Memory: 31.2 GiB
Architecture: x86_64
GPU: NVIDIA GeForce RTX 2070 with Max-Q Design || NVIDIA || 555.58.02

@datacubeR datacubeR changed the title Highlighting and Keymaps broken for v 0.176.2 Highlighting and Keymaps broken for v 0.176.2 in Python Mar 5, 2025
@dekomote
Copy link

dekomote commented Mar 5, 2025

I observe the same thing, similar setup to op, except I'm running wayland on Fedora.

@MrSubidubi
Copy link
Contributor

The highlighting issue was originally reported by #25803 and taken care of by #25813 . The fix for the highlighting will at latest land in the next preview release.

The keybinding-issues seem unrelated or do these only occur in Python-files? Otherwise, it might be good to split this into two issues or update this issue to reflect that.

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

3 participants