You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installing vim-nftables (with git clone https://github.com/egberts/vim-nftables.git ~/.vim/pack/all/start/vim-nftables), running Vim 9.1.709 produces the following errors:
Error detected while processing /home/kevin/.vim/pack/all/start/vim-nftables/ftdete line 1:
E749: Empty buffer
line 2:
E488: Trailing characters: Detect file type by use of shebang: # Detect file type b
line 11:
E488: Trailing characters: Detect file type by use of shebang: # Detect file ty
line 14:
E488: Trailing characters: Detect file type by its filetype: # Detect file type Press ENTER or type command to continue
Similarly, running NVIM 0.9.5 produces:
Error detected while processing /usr/share/nvim/runtime/filetype.lua:
E5113: Error while calling lua chunk: vim/_editor.lua:341: /usr/share/nvim/runtime/file
type.lua..nvim_exec2() called at /usr/share/nvim/runtime/filetype.lua:0../home/kevin/.v
im/pack/all/start/vim-nftables/ftdetect/nftables.vim, line 1: Vim(#):E749: empty buffer
stack traceback:
[C]: in function 'nvim_exec2'
vim/_editor.lua:341: in function 'cmd'
/usr/share/nvim/runtime/filetype.lua:36: in main chunk
Press ENTER or type command to continue
I believe the error is caused by # characters used for comments instead of ", which is only supported by Vim9 Script. The regression was introduced in af699d8.
Thanks for maintaining this package!
Kevin
The text was updated successfully, but these errors were encountered:
kevinoid
added a commit
to kevinoid/vim-nftables
that referenced
this issue
Oct 7, 2024
The `#` character is only recognized as a comment marker in Vim9 Script.
Since `vim9script` is not set, use `"` for comments.
Fixes: egberts#2
Fixes: af699d8 ("Waypoint 1")
Signed-off-by: Kevin Locke <[email protected]>
After installing vim-nftables (with
git clone https://github.com/egberts/vim-nftables.git ~/.vim/pack/all/start/vim-nftables
), running Vim 9.1.709 produces the following errors:Similarly, running NVIM 0.9.5 produces:
I believe the error is caused by
#
characters used for comments instead of"
, which is only supported by Vim9 Script. The regression was introduced in af699d8.Thanks for maintaining this package!
Kevin
The text was updated successfully, but these errors were encountered: