Skip to content

Commit c77ea96

Browse files
ajitpratap0Ajit Pratap Singhclaude
authored
fix: accept --stdio flag in LSP and fix empty path validation (#367)
The vscode-languageclient library passes --stdio when launching the language server, but gosqlx lsp didn't accept this flag. Also fixes config validation warning when executablePath is empty (which means "use bundled binary or PATH fallback"). Bumps version to 1.10.3 for Marketplace republish. Co-authored-by: Ajit Pratap Singh <ajitpratapsingh@Ajits-Mac-mini-2655.local> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7a895af commit c77ea96

16 files changed

Lines changed: 35 additions & 28 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to GoSQLX will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.10.3] - 2026-03-14 — LSP --stdio compatibility
9+
10+
### Fixed
11+
- Accept --stdio flag in gosqlx lsp command (required by vscode-languageclient)
12+
- Allow empty executablePath in config validation (uses bundled binary fallback)
13+
814
## [1.10.2] - 2026-03-14 — VS Code Extension Fix
915

1016
### Fixed

cmd/gosqlx/cmd/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@
341341
//
342342
// Version information:
343343
//
344-
// Version = "1.10.2" - Current CLI version
344+
// Version = "1.10.3" - Current CLI version
345345
//
346346
// # Dependencies
347347
//

cmd/gosqlx/cmd/root.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ import (
2828
// This version tracks feature releases and compatibility.
2929
// Format: MAJOR.MINOR.PATCH (Semantic Versioning 2.0.0)
3030
//
31-
// Version 1.10.2 includes:
31+
// Version 1.10.3 includes:
3232
// - MCP Server: All GoSQLX SQL capabilities as Model Context Protocol tools over streamable HTTP
3333
// - 7 MCP tools: validate_sql, format_sql, parse_sql, extract_metadata, security_scan, lint_sql, analyze_sql
3434
// - Optional bearer token auth via GOSQLX_MCP_AUTH_TOKEN
3535
// - Go minimum bumped to 1.23.0 (required by mark3labs/mcp-go)
36-
var Version = "1.10.2"
36+
var Version = "1.10.3"
3737

3838
var (
3939
// verbose enables detailed output for debugging and troubleshooting.
@@ -121,7 +121,7 @@ Key features:
121121
• CI/CD integration with proper exit codes
122122
123123
Performance: 1.5M+ operations/second sustained, 1.97M peak. 100-1000x faster than competitors.`,
124-
Version: "1.10.2",
124+
Version: "1.10.3",
125125
}
126126

127127
// Execute adds all child commands to the root command and sets flags appropriately.

cmd/gosqlx/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
//
2525
// # Version
2626
//
27-
// Current version: 1.10.2
27+
// Current version: 1.10.3
2828
//
2929
// # Architecture
3030
//

cmd/gosqlx/internal/lspcmd/lsp.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import (
2828

2929
var (
3030
lspLogFile string
31+
lspStdio bool
3132
)
3233

3334
// NewCmd returns the lsp cobra.Command.
@@ -77,6 +78,7 @@ Emacs Integration (lsp-mode):
7778
}
7879

7980
cmd.Flags().StringVar(&lspLogFile, "log", "", "Log file path (optional, for debugging)")
81+
cmd.Flags().BoolVar(&lspStdio, "stdio", false, "Use stdio transport (default, accepted for compatibility with vscode-languageclient)")
8082

8183
return cmd
8284
}

doc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// zero-copy tokenization and comprehensive object pooling. It offers enterprise-grade SQL lexing,
1717
// parsing, and AST generation with support for multiple SQL dialects and advanced SQL features.
1818
//
19-
// GoSQLX v1.10.2 includes both a powerful Go SDK and a high-performance CLI tool for SQL processing,
19+
// GoSQLX v1.10.3 includes both a powerful Go SDK and a high-performance CLI tool for SQL processing,
2020
// validated for production deployment with race-free concurrent operation and extensive real-world testing.
2121
//
2222
// Production Status: VALIDATED FOR PRODUCTION DEPLOYMENT (v1.6.0+)
@@ -278,7 +278,7 @@
278278
//
279279
// # Version History
280280
//
281-
// v1.10.2: VS Code Marketplace publishing with bundled platform-specific binaries
281+
// v1.10.3: VS Code Marketplace publishing with bundled platform-specific binaries
282282
// v1.10.0: MCP Server — all SQL tools as Model Context Protocol tools over streamable HTTP
283283
// v1.9.0: SQLite PRAGMA, tautology detection, 19 post-UAT fixes
284284
// v1.8.0: Multi-dialect engine, query transforms, WASM playground, AST-to-SQL roundtrip

llms.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ recursive-descent parsing, and AST generation with comprehensive object pooling.
77
PostgreSQL, MySQL, SQL Server, Oracle, SQLite, and Snowflake dialects, and ships a full-featured
88
CLI tool (`gosqlx`) for validation, formatting, linting, and security analysis. Apache-2.0 licensed.
99

10-
Current stable version: v1.10.2 (2026-03-13)
10+
Current stable version: v1.10.3 (2026-03-13)
1111

1212
## Core API
1313

performance_baselines.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.10.2",
2+
"version": "1.10.3",
33
"updated": "2026-03-13",
44
"baselines": {
55
"SimpleSelect": {

pkg/gosqlx/gosqlx.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
)
2929

3030
// Version is the current GoSQLX library version.
31-
const Version = "1.10.2"
31+
const Version = "1.10.3"
3232

3333
// Parse tokenizes and parses SQL in one call, returning an Abstract Syntax Tree (AST).
3434
//

pkg/mcp/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func New(cfg *Config) *Server {
3535
s := &Server{cfg: cfg}
3636
s.mcpSrv = mcpserver.NewMCPServer(
3737
"gosqlx-mcp",
38-
"1.10.2",
38+
"1.10.3",
3939
mcpserver.WithToolCapabilities(false),
4040
)
4141
s.registerTools()

0 commit comments

Comments
 (0)