-
Couldn't load subscription status.
- Fork 5.7k
Description
Summary
When running sql-formatter as the SQL formatter, it doesnt format due to program not found.
first i ran bun i -g sql-formatter, that installed correctly and is accessible via bash terminal (not powershell/cmd). then set the formatter in settings.json and recieved error saying program not found. im not sure entirely what it is but is it possible its because its using a different terminal as the default for external formatters where the command is not available?
settings.json
{
"terminal": {
"toolbar": { "breadcrumbs": false },
"cursor_shape": "bar",
"shell": {
"with_arguments": {
"program": "C:\\Users\\bmannino\\AppData\\Local\\Programs\\Git\\usr\\bin\\bash.exe",
"args": ["--login"]
}
}
},
"languages": {
"SQL": {
"formatter": {
"external": {
"command": "sql-formatter",
"arguments": ["--language", "tsql"]
}
}
}
}
}2025-10-17T08:17:25+01:00 ERROR [project::lsp_store] Formatting failed: Failed to format buffer via external command: sql-formatter: program not found
2025-10-17T08:17:25+01:00 ERROR [editor::editor] Failed to format buffer via external command: sql-formatter
Zed Version and System Specs
Zed: v0.209.1 (Zed Preview)
OS: Windows 10.0.26100
Memory: 31.8 GiB
Architecture: x86_64
GPU: Intel(R) UHD Graphics 630 || Intel Corporation || 31.0.101.2135
ranslot and lukeMains