Skip to content

fix(nimlsp): move Nim version check to run after initialize#182

Merged
PMunch merged 4 commits into
PMunch:masterfrom
bung87:fix-version-check-order
Jul 8, 2025
Merged

fix(nimlsp): move Nim version check to run after initialize#182
PMunch merged 4 commits into
PMunch:masterfrom
bung87:fix-version-check-order

Conversation

@bung87

@bung87 bung87 commented Jul 8, 2025

Copy link
Copy Markdown
Contributor

Previously, was called at the start of , before the client had sent an initialize request. This caused potential protocol violations or confused clients.

Now the version check is deferred to run only after receiving and handling the initialize request, ensuring it adheres to the LSP handshake and avoids premature messages.

bung87 added 3 commits July 8, 2025 20:14
Previously,  was called at the start of , before the
client had sent an initialize request. This caused potential protocol
violations or confused clients.

Now the version check is deferred to run only after receiving and handling
the initialize request, ensuring it adheres to the LSP handshake and
avoids premature messages.
@PMunch

PMunch commented Jul 8, 2025

Copy link
Copy Markdown
Owner

Ooh, good call. That should definitely happen later in the pipe. As for the failing tests, maybe the 1.4 and 1.2 tests can simply be removed?

@PMunch PMunch merged commit 0f057e1 into PMunch:master Jul 8, 2025
9 checks passed
@bung87 bung87 deleted the fix-version-check-order branch July 9, 2025 06:40
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

Successfully merging this pull request may close these issues.

2 participants