-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Labels
.contrib/good first issueIssue suitable for first-time contributorsIssue suitable for first-time contributorsarea:languages/glslGLSL programming language supportGLSL programming language supportfrequency:uncommonBugs that happen for a small subset of users, special configurations, rare circumstances, etcBugs that happen for a small subset of users, special configurations, rare circumstances, etcpriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugsPapercuts, minor issues with a clear workaround, cosmetic bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduceVerified steps to reproduce included and someone on the team managed to reproduce
Description
Reproduction steps
- install the GLSL extension that is in this repo https://zed.dev/extensions/glsl
- open a glsl file
- type ()
- Notice how the colorized brackets do not work despite other syntax highlighting work and it working in other languages
Current vs. Expected behavior
The current behavior is this

the expected behavior is this (which can be achieved by telling zed to treat it as c code)

Zed version and system specs
Zed: 0.217.3
MacOS 26.2
16GB ram
m1 pro macbook pro
aarch64
Attach Zed log file
Zed.log
2025-12-25T12:43:45-05:00 INFO [zed] ========== starting zed version 0.217.3+stable.105.80433cb239e868271457ac376673a5f75bc4adb1, sha 80433cb ==========
2025-12-25T12:43:45-05:00 INFO [crashes] spawning crash handler process
2025-12-25T12:43:45-05:00 INFO [zed] Using git binary path: "/Applications/Zed.app/Contents/MacOS/git"
2025-12-25T12:43:45-05:00 INFO [crashes] connected to crash handler process after 100ms
2025-12-25T12:43:45-05:00 INFO [crashes] crash handler registered
2025-12-25T12:43:45-05:00 INFO [util] set environment variables from shell:/bin/zsh, path:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/pmk/env/global/bin:/opt/X11/bin:/Library/Apple/usr/bin:/usr/local/RemoteDevelopmentToolkit/bin
2025-12-25T12:43:45-05:00 INFO [extension_host] extensions updated. loading 26, reloading 0, unloading 0
2025-12-25T12:43:45-05:00 INFO [auto_update] Auto Update: checking for updates
2025-12-25T12:43:45-05:00 INFO [workspace] Rendered first frame
2025-12-25T12:43:45-05:00 INFO [client] set status on client 0: Authenticating
2025-12-25T12:43:45-05:00 INFO [client] set status on client 339066: Authenticated
2025-12-25T12:43:45-05:00 ERROR [crates/language_models/src/provider/cloud.rs:131] failed to fetch Zed models
Caused by:
Failed to create LLM token.
Status: 403
Body: {"message":"User has not accepted the terms of service"}
2025-12-25T12:43:46-05:00 INFO [language] found user-installed language server for clangd. path: "/usr/bin/clangd", arguments: []
2025-12-25T12:43:46-05:00 INFO [lsp] starting language server process. binary path: "/usr/bin/clangd", working directory: "/Users/mycomputer/Library/Application Support/PrismLauncher/instances/1.21/.minecraft/shaderpacks/Lethal-CTR-Shaders", args: []
2025-12-25T12:43:46-05:00 INFO [node_runtime] using Node.js found on PATH: SystemNodeRuntime { node: "/opt/homebrew/bin/node", npm: "/opt/homebrew/bin/npm", global_node_modules: "/opt/homebrew/lib/node_modules\n", scratch_dir: "/Users/mycomputer/Library/Application Support/Zed/node" }
2025-12-25T12:43:47-05:00 INFO [lsp] starting language server process. binary path: "/opt/homebrew/bin/node", working directory: "/Users/mycomputer/Documents/webGPU", args: ["/Users/mycomputer/Library/Application Support/Zed/languages/tailwindcss-language-server/node_modules/.bin/tailwindcss-language-server", "--stdio"]
2025-12-25T12:43:49-05:00 INFO [auto_update] Auto Update: checking for updates
2025-12-25T19:00:14-05:00 INFO [zed] ========== starting zed version 0.217.3+stable.105.80433cb239e868271457ac376673a5f75bc4adb1, sha 80433cb ==========
2025-12-25T19:00:14-05:00 INFO [crashes] spawning crash handler process
2025-12-25T19:00:14-05:00 INFO [zed] Using git binary path: "/Applications/Zed.app/Contents/MacOS/git"
2025-12-25T19:00:14-05:00 INFO [crashes] connected to crash handler process after 100ms
2025-12-25T19:00:14-05:00 INFO [crashes] crash handler registered
2025-12-25T19:00:14-05:00 INFO [util] set environment variables from shell:/bin/zsh, path:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/pmk/env/global/bin:/opt/X11/bin:/Library/Apple/usr/bin:/usr/local/RemoteDevelopmentToolkit/bin
2025-12-25T19:00:14-05:00 INFO [extension_host] extensions updated. loading 26, reloading 0, unloading 0
2025-12-25T19:00:14-05:00 INFO [auto_update] Auto Update: checking for updates
2025-12-25T19:00:14-05:00 INFO [workspace] Rendered first frame
2025-12-25T19:00:14-05:00 INFO [client] set status on client 0: Authenticating
2025-12-25T19:00:15-05:00 INFO [client] set status on client 339066: Authenticated
2025-12-25T19:00:15-05:00 ERROR [crates/language_models/src/provider/cloud.rs:131] failed to fetch Zed models
Caused by:
Failed to create LLM token.
Status: 403
Body: {"message":"User has not accepted the terms of service"}
2025-12-25T19:00:15-05:00 INFO [language] found user-installed language server for clangd. path: "/usr/bin/clangd", arguments: []
2025-12-25T19:00:15-05:00 INFO [lsp] starting language server process. binary path: "/usr/bin/clangd", working directory: "/Users/mycomputer/Library/Application Support/PrismLauncher/instances/1.21/.minecraft/shaderpacks/Lethal-CTR-Shaders", args: []
2025-12-25T19:00:15-05:00 INFO [node_runtime] using Node.js found on PATH: SystemNodeRuntime { node: "/opt/homebrew/bin/node", npm: "/opt/homebrew/bin/npm", global_node_modules: "/opt/homebrew/lib/node_modules\n", scratch_dir: "/Users/mycomputer/Library/Application Support/Zed/node" }
2025-12-25T19:00:16-05:00 INFO [lsp] starting language server process. binary path: "/opt/homebrew/bin/node", working directory: "/Users/mycomputer/Documents/webGPU", args: ["/Users/mycomputer/Library/Application Support/Zed/languages/tailwindcss-language-server/node_modules/.bin/tailwindcss-language-server", "--stdio"]
2025-12-25T19:03:04-05:00 INFO [lsp] starting language server process. binary path: "/Users/mycomputer/Library/Application Support/Zed/extensions/work/glsl/glsl_analyzer-v1.7.1/bin/glsl_analyzer", working directory: "/Users/mycomputer/Library/Application Support/PrismLauncher/instances/1.21/.minecraft/shaderpacks/Lethal-CTR-Shaders", args: []
2025-12-25T19:03:55-05:00 WARN [project::lsp_store] Get document highlights via clangd failed: invalid AST
2025-12-25T19:03:55-05:00 ERROR [crates/editor/src/editor.rs:7039] Get document highlights via clangd failed: invalid AST
2025-12-25T19:03:56-05:00 INFO [lsp] starting language server process. binary path: "/Users/mycomputer/Library/Application Support/Zed/extensions/work/emoji-completions/emoji-language-server-darwin-aarch64-1.1.1", working directory: "/Users/mycomputer/Library/Application Support/PrismLauncher/instances/1.21/.minecraft/shaderpacks/Lethal-CTR-Shaders", args: []
2025-12-25T19:03:56-05:00 INFO [lsp] starting language server process. binary path: "/Users/mycomputer/Library/Application Support/Zed/extensions/work/emoji-completions/emoji-language-server-darwin-aarch64-1.1.1", working directory: "/Users/mycomputer/Documents/webGPU", args: []
2025-12-25T19:03:56-05:00 WARN [project::lsp_store] Get code actions via clangd failed: invalid AST
2025-12-25T19:03:56-05:00 ERROR [project::lsp_store] Error handling response for request GetCodeActions { range: Anchor { timestamp: Lamport {<local>: 1}, offset: 125, bias: Left, buffer_id: Some(BufferId(38654706167)) }..Anchor { timestamp: Lamport {<local>: 1}, offset: 125, bias: Left, buffer_id: Some(BufferId(38654706167)) }, kinds: None }: Get code actions via clangd failed: invalid AST
2025-12-25T19:03:56-05:00 INFO [lsp] starting language server process. binary path: "/opt/homebrew/bin/node", working directory: "/Users/mycomputer/Documents/webGPU", args: ["/Users/mycomputer/Library/Application Support/Zed/extensions/work/html/node_modules/@zed-industries/vscode-langservers-extracted/bin/vscode-html-language-server", "--stdio"]
2025-12-25T19:03:56-05:00 WARN [project::lsp_store] Get document highlights via clangd failed: invalid AST
2025-12-25T19:03:56-05:00 ERROR [crates/editor/src/editor.rs:7039] Get document highlights via clangd failed: invalid AST
2025-12-25T19:03:56-05:00 WARN [project::lsp_store] Get code actions via clangd failed: invalid AST
2025-12-25T19:03:56-05:00 ERROR [project::lsp_store] Error handling response for request GetCodeActions { range: Anchor { timestamp: Lamport {<local>: 1}, offset: 125, bias: Left, buffer_id: Some(BufferId(38654706167)) }..Anchor { timestamp: Lamport {<local>: 1}, offset: 125, bias: Left, buffer_id: Some(BufferId(38654706167)) }, kinds: None }: Get code actions via clangd failed: invalid AST
2025-12-25T19:03:57-05:00 WARN [project::lsp_store] Get document highlights via clangd failed: invalid AST
2025-12-25T19:03:57-05:00 ERROR [crates/editor/src/editor.rs:7039] Get document highlights via clangd failed: invalid AST
2025-12-25T19:03:57-05:00 WARN [project::lsp_store] Get document highlights via clangd failed: invalid AST
2025-12-25T19:03:57-05:00 ERROR [crates/editor/src/editor.rs:7039] Get document highlights via clangd failed: invalid AST
2025-12-25T19:03:57-05:00 WARN [project::lsp_store] Get code actions via clangd failed: invalid AST
2025-12-25T19:03:57-05:00 ERROR [project::lsp_store] Error handling response for request GetCodeActions { range: Anchor { timestamp: Lamport {<local>: 1}, offset: 50, bias: Left, buffer_id: Some(BufferId(38654706167)) }..Anchor { timestamp: Lamport {<local>: 1}, offset: 50, bias: Left, buffer_id: Some(BufferId(38654706167)) }, kinds: None }: Get code actions via clangd failed: invalid AST
2025-12-25T19:03:58-05:00 WARN [project::lsp_store] Get document highlights via clangd failed: invalid AST
2025-12-25T19:03:58-05:00 ERROR [crates/editor/src/editor.rs:7039] Get document highlights via clangd failed: invalid AST
2025-12-25T19:03:58-05:00 WARN [project::lsp_store] Get code actions via clangd failed: invalid AST
2025-12-25T19:03:58-05:00 ERROR [project::lsp_store] Error handling response for request GetCodeActions { range: Anchor { timestamp: Lamport {<local>: 1}, offset: 53, bias: Left, buffer_id: Some(BufferId(38654706167)) }..Anchor { timestamp: Lamport {<local>: 1}, offset: 53, bias: Left, buffer_id: Some(BufferId(38654706167)) }, kinds: None }: Get code actions via clangd failed: invalid AST
2025-12-25T19:03:59-05:00 WARN [project::lsp_store] Get hover via clangd failed: invalid AST
2025-12-25T19:03:59-05:00 ERROR [project::lsp_store] Error handling response for request GetHover { position: PointUtf16 { row: 6, column: 17 } }: Get hover via clangd failed: invalid AST
2025-12-25T19:03:59-05:00 WARN [project::lsp_store] Get definition via clangd failed: invalid AST
2025-12-25T19:03:59-05:00 ERROR [project::lsp_store] Error handling response for request GetDefinitions { position: PointUtf16 { row: 6, column: 17 } }: Get definition via clangd failed: invalid AST
2025-12-25T19:03:59-05:00 WARN [project::lsp_store] Get type definition via clangd failed: invalid AST
2025-12-25T19:03:59-05:00 ERROR [project::lsp_store] Error handling response for request GetTypeDefinitions { position: PointUtf16 { row: 6, column: 17 } }: Get type definition via clangd failed: invalid AST
2025-12-25T19:05:04-05:00 INFO [zed] ========== starting zed version 0.217.3+stable.105.80433cb239e868271457ac376673a5f75bc4adb1, sha 80433cb ==========
2025-12-25T19:05:04-05:00 INFO [crashes] spawning crash handler process
2025-12-25T19:05:04-05:00 INFO [zed] Using git binary path: "/Applications/Zed.app/Contents/MacOS/git"
2025-12-25T19:05:05-05:00 INFO [crashes] connected to crash handler process after 100ms
2025-12-25T19:05:05-05:00 INFO [crashes] crash handler registered
2025-12-25T19:05:05-05:00 INFO [util] set environment variables from shell:/bin/zsh, path:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/pmk/env/global/bin:/opt/X11/bin:/Library/Apple/usr/bin:/usr/local/RemoteDevelopmentToolkit/bin
2025-12-25T19:05:05-05:00 INFO [extension_host] extensions updated. loading 26, reloading 0, unloading 0
2025-12-25T19:05:05-05:00 INFO [auto_update] Auto Update: checking for updates
2025-12-25T19:05:05-05:00 INFO [workspace] Rendered first frame
2025-12-25T19:05:05-05:00 INFO [client] set status on client 0: Authenticating
2025-12-25T19:05:05-05:00 INFO [client] set status on client 339066: Authenticated
2025-12-25T19:05:05-05:00 ERROR [crates/language_models/src/provider/cloud.rs:131] failed to fetch Zed models
Caused by:
Failed to create LLM token.
Status: 403
Body: {"message":"User has not accepted the terms of service"}
2025-12-25T19:05:05-05:00 INFO [language] found user-installed language server for clangd. path: "/usr/bin/clangd", arguments: []
2025-12-25T19:05:05-05:00 INFO [lsp] starting language server process. binary path: "/usr/bin/clangd", working directory: "/Users/mycomputer/Library/Application Support/PrismLauncher/instances/1.21/.minecraft/shaderpacks/Lethal-CTR-Shaders", args: []
2025-12-25T19:05:05-05:00 INFO [node_runtime] using Node.js found on PATH: SystemNodeRuntime { node: "/opt/homebrew/bin/node", npm: "/opt/homebrew/bin/npm", global_node_modules: "/opt/homebrew/lib/node_modules\n", scratch_dir: "/Users/mycomputer/Library/Application Support/Zed/node" }
2025-12-25T19:05:06-05:00 INFO [lsp] starting language server process. binary path: "/opt/homebrew/bin/node", working directory: "/Users/mycomputer/Documents/webGPU", args: ["/Users/mycomputer/Library/Application Support/Zed/languages/tailwindcss-language-server/node_modules/.bin/tailwindcss-language-server", "--stdio"]
2025-12-25T19:05:33-05:00 INFO [sqlez::migrations] Found 18 foreign key relationships to check
Relevant Zed settings
settings.json
"diagnostics": {
"inline": {
"enabled": true
}
},
"colorize_brackets": true,
"languages": {
"GLSL": {
"format_on_save": "off",
"inlay_hints": {
"enabled": true
},
"tab_size": 4,
"indent_guides": {
"coloring": "indent_aware",
"background_coloring": "disabled"
},
"language_servers": ["glsl_analyzer", "!shader-language-server"]
}
},
"auto_update_extensions": {
"glsl": true
},
"theme": {
"mode": "system",
"light": "One Light",
"dark": "Rainbow (Dark)"
},
"file_types": {
"GLSL": ["fsh", "vsh", "glsl"]
},Relevant Keymap
keymap.json
// Zed keymap
//
// For information on binding keys, see the Zed
// documentation: https://zed.dev/docs/key-bindings
//
// To see the default key bindings run `zed: open default keymap`
// from the command palette.
[
{
"context": "Workspace",
"bindings": {
// "shift shift": "file_finder::Toggle"
}
},
{
"context": "Editor && vim_mode == insert",
"bindings": {
// "j k": "vim::NormalBefore"
}
}
]
(for AI issues) Model provider details
No response
If you are using WSL on Windows, what flavor of Linux are you using?
None
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
.contrib/good first issueIssue suitable for first-time contributorsIssue suitable for first-time contributorsarea:languages/glslGLSL programming language supportGLSL programming language supportfrequency:uncommonBugs that happen for a small subset of users, special configurations, rare circumstances, etcBugs that happen for a small subset of users, special configurations, rare circumstances, etcpriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugsPapercuts, minor issues with a clear workaround, cosmetic bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduceVerified steps to reproduce included and someone on the team managed to reproduce