Open i8890321 opened 3 years ago
Hi @i8890321 ! Thanks a lot for your feedback. My understand of the problem is that file paths in windows contain :
, and since we use these paths to craft temporary files for the plugin. Typically we write the content of the current buffer there before compiling it.
Any chance you can paste the output of this command ?
:echo b:livepreview_buf_data['tmp_src_file']
This reminds me of https://github.com/xuhdev/vim-latex-live-preview/pull/85, which replaces this extra :
into a _
If you can confirm this patch works, we can work on merging it
Expected behavior
a PDF preview with SumatraPDF should pops out
Actual behavior
I encounter the following error
Error detected while processing function13_StartPreview: line 66: E739: Cannot create directory: C:\Users\USERNAME\AppData\Local\Temp\vim-latex-live-preview-cersh_wsC:\Users
E739: Cannot create directory: C:\Users\USERNAME\AppData\Local\Temp\vim-latex-live-preview-cersh_wsC:\Users\USERNAME
line 95: "~\AppData\Local\Temp\vim-latex-live-preview-cersh_wsC:\Users\USERNAME\test2" E212: Can't open file for writing
Failed to compile
Steps to reproduce
:LLPStartPreview Tell us how it occurs
System configuration
Window 10 with vim compiled with python/dyn, python3/dyn (Echo has('python') and Echo has('python3') give "1"
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Feb 10 2021 15:51:49) MS-Windows 64-bit GUI/console version with OLE support Included patches: 1-2491 Compiled by stop_@LAPTOP-E7OHISR4 Huge version with GUI. Features included (+) or not (-): +acl +cscope -hangul_input +multi_byte_ime/dyn +scrollbind +title +arabic +cursorbind +iconv/dyn +multi_lang +signs +toolbar +autocmd +cursorshape +insert_expand +mzscheme/dyn +smartindent +user_commands +autochdir +dialog_con_gui +ipv6 +netbeans_intg +sound +vartabs +autoservername +diff +job +num64 +spell +vertsplit +balloon_eval +digraphs +jumplist +ole +startuptime +virtualedit +balloon_eval_term +directx +keymap +packages +statusline +visual +browse -dnd +lambda +path_extra -sun_workshop +visualextra ++builtin_terms -ebcdic +langmap +perl/dyn +syntax +viminfo +byte_offset +emacs_tags +libcall +persistent_undo +tag_binary +vreplace +channel +eval +linebreak +popupwin -tag_old_static +vtp +cindent +ex_extra +lispindent -postscript -tag_any_white +wildignore +clientserver +extra_search +listcmds +printer +tcl/dyn +wildmenu +clipboard -farsi +localmap +profile +termguicolors +windows +cmdline_compl +file_in_path +lua/dyn +python/dyn +terminal +writebackup +cmdline_hist +find_in_path +menu +python3/dyn -termresponse -xfontset +cmdline_info +float +mksession +quickfix +textobjects -xim +comments +folding +modify_fname +reltime +textprop +xpm_w32 +conceal -footer +mouse +rightleft -tgetent -xterm_save +cryptv +gettext/dyn +mouseshape +ruby/dyn +timers system vimrc file: "$VIM\vimrc" user vimrc file: "$HOME_vimrc" 2nd user vimrc file: "$HOME\vimfiles\vimrc" 3rd user vimrc file: "$VIM_vimrc" user exrc file: "$HOME_exrc" 2nd user exrc file: "$VIM_exrc" system gvimrc file: "$VIM\gvimrc" user gvimrc file: "$HOME_gvimrc" 2nd user gvimrc file: "$HOME\vimfiles\gvimrc" 3rd user gvimrc file: "$VIM_gvimrc" defaults file: "$VIMRUNTIME\defaults.vim" system menu file: "$VIMRUNTIME\menu.vim"