-
Notifications
You must be signed in to change notification settings - Fork 56
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
<c-n>
on some LSP completion options triggers an "Item not found ... ParseMarkdown" error
#508
Comments
This only occurs on LSP items in the completion list. |
Same issue here calling |
I am not sure where the issue is as Line 60 in dfc001a
Line 3 in dfc001a
and Line 611 in dfc001a
|
<c-n>
on CSS attributes within HTML files print an error<c-n>
on some LSP completion options triggers an "Item not found ... ParseMarkdown" error
I've encountered the same issue and managed to track it down to the way vim handle autoloading and compilation. The simplest way to reproduce the issue is to run This trigger the filetype plugin If something triggers the autoloading of Grepping for
So it looks like autoloading is already bypassed in both the tests and the main plugin. Following these examples, I tried the following patch that fixes the issue for me: diff --git a/ftplugin/lspgfm.vim b/ftplugin/lspgfm.vim
index 2e9bf76..8050184 100644
--- a/ftplugin/lspgfm.vim
+++ b/ftplugin/lspgfm.vim
@@ -1,6 +1,6 @@
vim9script
-import autoload 'lsp/markdown.vim' as md
+import '../autoload/lsp/markdown.vim' as md
# Update the preview window with the github flavored markdown text
def UpdatePreviewWindowContents(bnr: number, contentList: list<dict<any>>) |
@yegappan the patch above is working for me to fix this issue entirely |
Regarding
and
I am wondering what the purpose of the autoload folder is. |
The As I'm thinking this is a vim bug. It can be reproduced even without involving filetype plugins. I've opened an issue for it: vim/vim#14775 |
github.com/vim/vim/pull/14565#issuecomment-2062967639 |
@odormond that change fixes it for me, thanks. |
Fixed by vim/vim#14885 |
H, there. I'm not sure when this started happening, but I typed:
and then hit
<c-n>
to scroll through the list of completions. It seems to scroll correctly, but there is this error for every time I scroll:ft
is set tohtml
in this file.The text was updated successfully, but these errors were encountered: