iamcco / markdown-preview.nvim

markdown preview plugin for (neo)vim
MIT License
6.76k stars 280 forks source link

VimPlug: Unknown function: term_start #431

Closed TruncatedDinoSour closed 2 years ago

TruncatedDinoSour commented 2 years ago

Describe the bug I recently needed markdown preview, I noticed it threw an error: No matching autocommands: User NvimMkdpRpcExit So I thought "Maybe I messed something up", I removed the plugin entirely from my pluggins folder and reinstalled with :PlugInstall, all went well until after installation I got a red error with: x Post-update hook for markdown-preview.nvim ... Vim(call):E117: Unknown function: term_start How do I solve this?

It might be related that I compiled ViM with USE flag -term but it worked before so idk...

To Reproduce Steps to reproduce the behavior:

  1. Open vim
  2. Install plugin
  3. See error

Expected behavior For it to work

Desktop (please complete the following information):

Log:

:MarkdownPreview
 No matching autocommands: User NvimMkdpRpcExit

:PlugInstall
Updated. Elapsed time: 2.394943 sec.
[====================x]

- Finishing ... Done!
x Post-update hook for markdown-preview.nvim ... Vim(call):E117: Unknown function: term_start
- vim-codefmt: Already installed
- indentLine: Already installed
- lightline.vim: Already installed
- colorizer: Already installed
- slimv: Already installed
- markdown-preview.nvim: Resolving deltas: 100% (303/303), done.
- vim-tmux-navigator: Already installed
- coc.nvim: Already installed
- vrod: Already installed
- vim-tabbar: Already installed
- vim-latex: Already installed
- ale: Already installed
- rainbow: Already installed
- emmet-vim: Already installed
- vim-racket: Already installed
- vim-maktaba: Already installed
- bracey.vim: Already installed
- vim-surround: Already installed
- coffee.vim: Already installed
- editorconfig-vim: Already installed
- vim-markdown: Already installed
iamcco commented 2 years ago

It only works on vim >= 8.1 and neovim

iamcco commented 2 years ago

vim support term_start in +v8 version

TruncatedDinoSour commented 2 years ago

It only works on vim >= 8.1 and neovim

I run 8.2

TruncatedDinoSour commented 2 years ago

vim support term_start in +v8 version

might be my USE flags, idk, though :version is this:

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Mar 26 2022 14:05:09)
Included patches: 1-4586
Modified by Gentoo-8.2.4586
Compiled by portage@localhost
Huge version without GUI.  Features included (+) or not (-):
+acl               +cursorshape       +job               +mouse_urxvt       +signs             +user_commands
+arabic            +dialog_con        +jumplist          +mouse_xterm       +smartindent       +vartabs
+autocmd           +diff              +keymap            +multi_byte        +sodium            +vertsplit
+autochdir         +digraphs          +lambda            +multi_lang        -sound             +vim9script
-autoservername    -dnd               +langmap           -mzscheme          +spell             +viminfo
-balloon_eval      -ebcdic            +libcall           +netbeans_intg     +startuptime       +virtualedit
+balloon_eval_term +emacs_tags        +linebreak         +num64             +statusline        +visual
-browse            +eval              +lispindent        +packages          -sun_workshop      +visualextra
++builtin_terms    +ex_extra          +listcmds          +path_extra        +syntax            +vreplace
+byte_offset       +extra_search      +localmap          -perl              +tag_binary        +wildignore
+channel           -farsi             -lua               +persistent_undo   -tag_old_static    +wildmenu
+cindent           +file_in_path      +menu              +popupwin          -tag_any_white     +windows
+clientserver      +find_in_path      +mksession         +postscript        -tcl               +writebackup
+clipboard         +float             +modify_fname      +printer           +termguicolors     +X11
+cmdline_compl     +folding           +mouse             +profile           -terminal          +xfontset
+cmdline_hist      -footer            -mouseshape        -python            +terminfo          -xim
+cmdline_info      +fork()            +mouse_dec         +python3           +termresponse      -xpm
+comments          +gettext           -mouse_gpm         +quickfix          +textobjects       +xsmp_interact
+conceal           -hangul_input      -mouse_jsbterm     +reltime           +textprop          +xterm_clipboard
+cryptv            +iconv             +mouse_netterm     +rightleft         +timers            -xterm_save
-cscope            +insert_expand     +mouse_sgr         -ruby              +title
+cursorbind        +ipv6              -mouse_sysmouse    +scrollbind        -toolbar
   system vimrc file: "/etc/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: x86_64-pc-linux-gnu-gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -pipe -march=native -D_REENTRANT -U_FORTIFY_SOURCE -D_
FORTIFY_SOURCE=1
Linking: x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -L/usr/local/lib -o vim -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lIC
E -lm -ltinfo -lelf -lsodium -lacl -lattr -ldl -lpython3.9 -lpthread -ldl -lutil -lm -lm
iamcco commented 2 years ago

Seems like you disable terminal features. use Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install' } instaled.

TruncatedDinoSour commented 2 years ago

Seems like you disable terminal features. use Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install' } instaled.

ah yes, I have, USE=-terminal for vim, let me just recompile it then as yarn is much more painful to compile than vim :)

iamcco commented 2 years ago

Or you can goto the markdown-preview.nvim/app directory and run ./install.sh

TruncatedDinoSour commented 2 years ago

Thank you

TruncatedDinoSour commented 2 years ago

Closing issue, works :)