Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix server being booted twice#150

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
joe-re merged 1 commit intojoe-re:releasefromtimabdulla:issue-128
Mar 12, 2023
Merged

Conversation

timabdulla
Copy link
Contributor

This PR fixes issue#128. The current code actually causes the language server to be booted twice! neovim's LSP support doesn't like this because it means it's receiving two responses for every message it sends.

This was a tricky bug to figure out: It turns out that callingcli.argv is equivalent to callingparse(). This means that the command-parsing logic is actually run twice, causing the server to be booted twice in some circumstances. I changed the code to usedemandCommand() -- this will output the help message if a command is outputted, and it saves having to make the manual check oncli.argv to output the help command.

psteinroe, LEI, CiaronHowell, avegancafe, theCollectiv, and mikedfunk reacted with thumbs up emojimattdavis90 reacted with hooray emojiantoson reacted with heart emoji
@joe-re
Copy link
Owner

@timabdulla
Thanks! It looks good 🙏

timabdulla reacted with hooray emoji

@joe-rejoe-re merged commit2b1e103 intojoe-re:releaseMar 12, 2023
@timabdullatimabdulla deleted the issue-128 branchMarch 13, 2023 19:12
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@timabdulla@joe-re

[8]ページ先頭

©2009-2025 Movatter.jp