Skip to content

Please update this repo. Fails on new Ubuntu 22.04 install with errors. #42

Description

@davidpcahill

Getting the following errors on a new install of Ubuntu 22.04 after running the setup script.

Error 1

Error detected while processing /home/webdev/.vimrc[64]../usr/share/vim/vim82/syntax/syntax.vim[40]..FileType Autocommands for "*"..Syntax Autocommands for "*"..function <SNR>4_SynSet[25]..script /home/webdev/.vim/bundle/riv.vim/after/syntax/python.vim:
line   18:
E121: Undefined variable: g:riv_python_rst_hl

Error 2

Please download Exuberant Ctags from ctags.sourceforge.net and install it in a directory in your $PATH or set g:tagbar_ctags_bin.
Error detected while processing BufEnter Autocommands for "*.py"..function tagbar#autoopen[9]..<SNR>119_IsValidFile:
line   29:
E121: Undefined variable: s:known_types
E116: Invalid arguments for function has_key(s:known_types, a:ftype)
Press ENTER or type command to continue

System information for reference

webdev@webdev:~$ uname -a
Linux webdev 5.15.0-48-generic #54-Ubuntu SMP Fri Aug 26 13:26:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
webdev@webdev:~$ cat /etc/issue
Ubuntu 22.04.1 LTS \n \l

vim --version for reference

webdev@webdev:~$ vim --version
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Sep 13 2022 09:35:02)
Included patches: 1-3995, 4563, 4646, 4774, 4895, 4899, 4901, 4919
Modified by team+vim@tracker.debian.org
Compiled by team+vim@tracker.debian.org
Huge version without GUI.  Features included (+) or not (-):
+acl               +file_in_path      +mouse_urxvt       -tag_any_white
+arabic            +find_in_path      +mouse_xterm       -tcl
+autocmd           +float             +multi_byte        +termguicolors
+autochdir         +folding           +multi_lang        +terminal
-autoservername    -footer            -mzscheme          +terminfo
-balloon_eval      +fork()            +netbeans_intg     +termresponse
+balloon_eval_term +gettext           +num64             +textobjects
-browse            -hangul_input      +packages          +textprop
++builtin_terms    +iconv             +path_extra        +timers
+byte_offset       +insert_expand     -perl              +title
+channel           +ipv6              +persistent_undo   -toolbar
+cindent           +job               +popupwin          +user_commands
-clientserver      +jumplist          +postscript        +vartabs
-clipboard         +keymap            +printer           +vertsplit
+cmdline_compl     +lambda            +profile           +vim9script
+cmdline_hist      +langmap           -python            +viminfo
+cmdline_info      +libcall           +python3           +virtualedit
+comments          +linebreak         +quickfix          +visual
+conceal           +lispindent        +reltime           +visualextra
+cryptv            +listcmds          +rightleft         +vreplace
+cscope            +localmap          -ruby              +wildignore
+cursorbind        -lua               +scrollbind        +wildmenu
+cursorshape       +menu              +signs             +windows
+dialog_con        +mksession         +smartindent       +writebackup
+diff              +modify_fname      +sodium            -X11
+digraphs          +mouse             -sound             -xfontset
-dnd               -mouseshape        +spell             -xim
-ebcdic            +mouse_dec         +startuptime       -xpm
+emacs_tags        +mouse_gpm         +statusline        -xsmp
+eval              -mouse_jsbterm     -sun_workshop      -xterm_clipboard
+ex_extra          +mouse_netterm     +syntax            -xterm_save
+extra_search      +mouse_sgr         +tag_binary
-farsi             -mouse_sysmouse    -tag_old_static
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -Wdate-time -g -O2 -ffile-prefix-map=/build/vim-NA7QBf/vim-8.2.3995=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim -lm -ltinfo -lselinux -lsodium -lacl -lattr -lgpm -L/usr/lib/python3.10/config-3.10-x86_64-linux-gnu -lpython3.10 -lcrypt -ldl -lm -lm

Activity

  1. davidpcahill commented on Oct 5, 2022

    @davidpcahill
    Author

    Also here's the results of running the setup script

    webdev@webdev:~$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ets-labs/python-vimrc/master/setup.sh)"
    
                              iiii
                             i::::i
                              iiii
    
    vvvvvvv           vvvvvvviiiiiii    mmmmmmm    mmmmmmm   rrrrr   rrrrrrrrr       cccccccccccccccc
     v:::::v         v:::::v i:::::i  mm:::::::m  m:::::::mm r::::rrr:::::::::r    cc:::::::::::::::c
      v:::::v       v:::::v   i::::i m::::::::::mm::::::::::mr:::::::::::::::::r  c:::::::::::::::::c
       v:::::v     v:::::v    i::::i m::::::::::::::::::::::mrr::::::rrrrr::::::rc:::::::cccccc:::::c
        v:::::v   v:::::v     i::::i m:::::mmm::::::mmm:::::m r:::::r     r:::::rc::::::c     ccccccc
         v:::::v v:::::v      i::::i m::::m   m::::m   m::::m r:::::r     rrrrrrrc:::::c
          v:::::v:::::v       i::::i m::::m   m::::m   m::::m r:::::r            c:::::c
           v:::::::::v        i::::i m::::m   m::::m   m::::m r:::::r            c::::::c     ccccccc
            v:::::::v        i::::::im::::m   m::::m   m::::m r:::::r            c:::::::cccccc:::::c
             v:::::v         i::::::im::::m   m::::m   m::::m r:::::r             c:::::::::::::::::c
              v:::v          i::::::im::::m   m::::m   m::::m r:::::r              cc:::::::::::::::c
               vvv           iiiiiiiimmmmmm   mmmmmm   mmmmmm rrrrrrr                cccccccccccccccc
    
    Cloning vimrc from https://github.com/ets-labs/python-vimrc.git
    Cloning into '/home/webdev/.vim'...
    remote: Enumerating objects: 13, done.
    remote: Counting objects: 100% (13/13), done.
    remote: Compressing objects: 100% (8/8), done.
    remote: Total 13 (delta 0), reused 8 (delta 0), pack-reused 0
    Receiving objects: 100% (13/13), 9.47 KiB | 9.47 MiB/s, done.
    Looking for an existing vim config...
    Symlinking /home/webdev/.vim/vimrc with ~/.vimrc...
    Installing Vundle...
    Cloning into '/home/webdev/.vim/bundle/Vundle.vim'...
    remote: Enumerating objects: 27, done.
    remote: Counting objects: 100% (27/27), done.
    remote: Compressing objects: 100% (22/22), done.
    remote: Total 27 (delta 2), reused 13 (delta 0), pack-reused 0
    Receiving objects: 100% (27/27), 33.23 KiB | 523.00 KiB/s, done.
    Resolving deltas: 100% (2/2), done.
    --2022-10-05 02:13:01--  http://www.vim.org/scripts/download_script.php?src_id=13400
    Resolving www.vim.org (www.vim.org)... 44.237.4.221
    Connecting to www.vim.org (www.vim.org)|44.237.4.221|:80... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: https://www.vim.org/scripts/download_script.php?src_id=13400 [following]
    --2022-10-05 02:13:02--  https://www.vim.org/scripts/download_script.php?src_id=13400
    Connecting to www.vim.org (www.vim.org)|44.237.4.221|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 3372 (3.3K) [application/octetstream]
    Saving to: ‘/home/webdev/.vim/colors/wombat256mod.vim’
    
    /home/webdev/.vim/colors/wombat256mod.vim                   100%[========================================================================================================================================>]   3.29K  --.-KB/s    in 0s
    
    2022-10-05 02:13:02 (230 MB/s) - ‘/home/webdev/.vim/colors/wombat256mod.vim’ saved [3372/3372]
    
    Vimrc has been configured ;)
    Do not worry about error messages. When it occurs just press enter and wait till all plugins are installed.
    Keep calm and use VIM!
    webdev@webdev:~$
    
    

    Also possibly of note, during :PluginInstall, the following occurred. However I see your setup instructions for that and will follow those as they likely fix at least the following:

    The ycmd server SHUT DOWN (restart with ':YcmRestartServer'). YCM core library not detected; you need to compile YCM before using it. Follow the instructions in the documentation.
    
  2. rmk135 commented on Oct 5, 2022

    @rmk135
    Member

    Hey @Tagwolf ,

    Thanks for reporting the issue! Unfortunately, it looks like the error comes from the 3rd-party module. This configuration doesn't use this option directly:

    E121: Undefined variable: g:riv_python_rst_hl
    

    The module is needed for working with .rst files.

    Does anybody know any good up-to-date modules for .rst?

  3. davidpcahill commented on Oct 5, 2022

    @davidpcahill
    Author

    Disabling riv and tagbar got rid of the errors for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions