Error in opening a .py file in a directory named '**'

13 views
Skip to first unread message

Peng Yu

unread,
Mar 15, 2021, 6:07:00 PM3/15/21
to vim_use
Hi

$ ls -gGl '**/main.py'
-rwxr-xr-x 1 105 2021/03/15-17:02:44 '**/main.py'

vim shows the following error when I have a .py file. in **. Can
anybody reproduce this error? Does anybody know which file this error
is from?

Error detected while processing BufRead Autocommands for
"*.py"..FileType Autocommands for "*"..function
cmake#augroup#on_file_type[1]..cmake#b
uffer#has_project[9]..cmake#util#source_dir[5]..cmake#util#binary_dir:
line 13:
E220: Missing }.
...


$ vim --version
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Sep 21 2020 04:03:24)
macOS version
Included patches: 1-1719
Compiled by tra...@Traviss-Mac.local
Huge version with MacVim GUI. Features included (+) or not (-):
+acl +file_in_path -mouse_sysmouse -tag_old_static
+arabic +find_in_path +mouse_urxvt -tag_any_white
+autocmd +float +mouse_xterm -tcl
+autochdir +folding +multi_byte +termguicolors
-autoservername -footer +multi_lang +terminal
+balloon_eval +fork() -mzscheme +terminfo
+balloon_eval_term +fullscreen +netbeans_intg +termresponse
+browse +gettext +num64 +textobjects
++builtin_terms -hangul_input +odbeditor +textprop
+byte_offset +iconv +packages +timers
+channel +insert_expand +path_extra +title
+cindent +ipv6 +perl/dyn +toolbar
+clientserver +job +persistent_undo +transparency
+clipboard +jumplist +popupwin +user_commands
+cmdline_compl +keymap +postscript +vartabs
+cmdline_hist +lambda +printer +vertsplit
+cmdline_info +langmap +profile +virtualedit
+comments +libcall +python/dyn +visual
+conceal +linebreak +python3/dyn +visualextra
+cryptv +lispindent +quickfix +viminfo
+cscope +listcmds +reltime +vreplace
+cursorbind +localmap +rightleft +wildignore
+cursorshape +lua/dyn +ruby/dyn +wildmenu
+dialog_con_gui +menu +scrollbind +windows
+diff +mksession +signs +writebackup
+digraphs +modify_fname +smartindent -X11
+dnd +mouse -sound -xfontset
-ebcdic +mouseshape +spell +xim
+emacs_tags +mouse_dec +startuptime -xpm
+eval -mouse_gpm +statusline -xsmp
+ex_extra -mouse_jsbterm -sun_workshop -xterm_clipboard
+extra_search +mouse_netterm +syntax -xterm_save
-farsi +mouse_sgr +tag_binary
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
system gvimrc file: "$VIM/gvimrc"
user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
defaults file: "$VIMRUNTIME/defaults.vim"
system menu file: "$VIMRUNTIME/menu.vim"
fall-back for $VIM: "/Applications/MacVim.app/Contents/Resources/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM
-Wall -Wno-unknown-pragmas -pipe -DMACOS_X -DMACOS_X_DARWIN -g -O2
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -Wall -Wextra -Wshadow -Werror
-Wno-error=missing-field-initializers
-Wno-error=deprecated-declarations -Wno-error=unused-function
Linking: clang -L. -fstack-protector-strong -L/usr/local/lib
-L/usr/local/opt/libyaml/lib -L/usr/local/opt/openssl@1.1/lib
-L/usr/local/opt/readline/lib -L. -fstack-protector-strong
-L/usr/local/lib -L/usr/local/opt/libyaml/lib
-L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/readline/lib
-L/usr/local/lib -o Vim -framework Cocoa -framework Carbon -lm
-lncurses -liconv /usr/local/lib/libintl.a -framework AppKit
-fstack-protector
-L/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE
--
Regards,
Peng

Peng Yu

unread,
Mar 15, 2021, 6:09:58 PM3/15/21
to vim_use
The problem is not just for .py files. It is for any file as long as
it is in a directory called **.
--
Regards,
Peng

Christian Brabandt

unread,
Mar 16, 2021, 3:58:33 AM3/16/21
to vim_use

Hi,

This seems to be caused by a cmake plugin. Please check for an update or
contact the author if he can fix it.

Best,
Christian
Mit freundlichen Grüßen
Christian
--
Warum überquerte das Huhn die Straße?
Karl Marx:
Es war historisch unvermeidlich.
Reply all
Reply to author
Forward
0 new messages