[vim/vim] dist#ft#DetectFromExt[9] reports strange error for go files - Unknown option: note (Discussion #18847)

8 views
Skip to first unread message

ououmania

unread,
Dec 2, 2025, 4:42:17 AM (yesterday) Dec 2
to vim/vim, Subscribed

Hi all, I'm struggling for this issue for days after upgrading to vim 9.1.
I built from the latest version(commit c3cfdef) and still got this error when edit any go file.
I have removed share/vim and reinstalled vim but this problem sitll eixsts.
Does anyone have any idea about this? Any help is appreciated.

Error detected while processing BufRead Autocommands for "*"..function dist#ft#DetectFromExt[9]..FileType Autocommands for "go":
E518: Unknown option: note


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/18847@github.com>

Christian Brabandt

unread,
Dec 2, 2025, 4:55:32 AM (yesterday) Dec 2
to vim/vim, Subscribed

cannot reproduce. What exactly is your filename? I tried vim --clean foobar.go and did not notice any issues.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/18847/comments/15133714@github.com>

ououmania

unread,
Dec 2, 2025, 5:02:05 AM (yesterday) Dec 2
to vim/vim, Subscribed

cannot reproduce. What exactly is your filename? I tried vim --clean foobar.go and did not notice any issues.

Thanks for your reply. I got this issue with any go file. It's ok to open the files vim -u NONE xxx.go and vim --clean xxx.go. I turned off filetype detection, the unknown option error disappeared. I checked dist#ft#DetectFromExt and didn't find note. I built vim with the following configurations:
./configure --enable-python3interp=yes --with-features=huge --enable-multibyte --enable-cscope --prefix=$HOME/.local


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/18847/comments/15133781@github.com>

Christian Brabandt

unread,
Dec 2, 2025, 5:18:49 AM (yesterday) Dec 2
to vim/vim, Subscribed

If this is okay with vim --clean foo.go then it's not filetytpe detection per se, as --clean enables this. Do you have any custom filetype commands defined for go files? Please check your configuration specifically filetype autocommands and anything inside ~/.vim/ftplugin/go.vim and ~/.vim/ftplugin/after/go.vim and possibly also ~/.vim/ftdetect/go.vim. Could also be in any custom plugins or packages that you have installed


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/18847/comments/15133950@github.com>

ououmania

unread,
Dec 2, 2025, 6:27:12 AM (yesterday) Dec 2
to vim/vim, Subscribed

~/.vim/ftplugin/go.vim
Many thanks. How stupid I was! I checked all the autocmds with autocmd FileType go and found a setlocal note there. It mighty be added by mistake. Thank you for your time really. Have a nice day!


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/18847/comments/15134572@github.com>

Reply all
Reply to author
Forward
0 new messages