Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting "Unexpected document version" with Kate -editor #257

Closed
nkahe opened this issue Oct 25, 2023 · 1 comment · Fixed by #282
Closed

Getting "Unexpected document version" with Kate -editor #257

nkahe opened this issue Oct 25, 2023 · 1 comment · Fixed by #282

Comments

@nkahe
Copy link

nkahe commented Oct 25, 2023

I'm trying to use Marksman with Kate -editor but I get warning mentioned in title when editing a markdown file. Also get warning "Unsupported glob pattern" at start. Is there anything I could do to not getting those warnings? Works otherwise. Marksman version is latest release, linux-x64 1.0.0-77f348c. Default settings.

Log:

[19:44:35  LSP Client Log] Started server markdown@/home/hk: /home/hk/.local/bin/marksman server
[19:44:36  LSP Server Log] markdown@/home/hk
[19:44:35 INF]  Starting Marksman LSP server: {}
[19:44:37 LSP Server Log] markdown@/home/hk
[19:44:37 WRN]  Unsupported glob pattern: {"pat": "**/a?[a-z12!][]][!][:upper:]][^[=a=]]\\?[\\\\incomplete?*"}
[19:44:37 LSP Server Log] markdown@/home/hk
[19:44:37 WRN]  Unsupported glob pattern: {"pat": "**/a?[a-z][]][!][:upper:]][^[=a=]]\\?[\\\\incomplete?*"}
[19:46:46 LSP Server Log] markdown@/home/hk
[19:46:46 WRN]  Unexpected document version: {"newVersion": 33, "currentVersion": 20, "uri": "file:///home/hk/test.md"}
[19:46:47 LSP Server Log] markdown@/home/hk
[19:46:47 WRN]  Unexpected document version: {"newVersion": 35, "currentVersion": 33, "uri": "file:///home/hk/test.md"}
[19:46:49 LSP Server Log] markdown@/home/hk
[19:46:49 WRN]  Unexpected document version: {"newVersion": 46, "currentVersion": 35, "uri": "file:///home/hk/test.md"}
[19:46:50 LSP Server Log] markdown@/home/hk
@artempyanykh artempyanykh linked a pull request Dec 8, 2023 that will close this issue
@artempyanykh
Copy link
Owner

Sorry for a long overdue response @nkahe. The unexpected version warning is bogus (I added it a while ago before I realized that all editors do versioning completly differently). I removed it in #282 . The "unsupported glob pattern" is legit but benign. If you want to silence it completely, starting marksman as marksman server -v=0 should help.

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 a pull request may close this issue.

2 participants