Error executing fsi ... Access is denied
mrtank opened this issue · 2 comments
Hello,
I have some problem installing the plugin. I'm on Win 10. Installed Mono >
The latest Stable Mono release is: 6.8.0 Stable (6.8.0.96) (Mono 64 bit no GTK#)
Set the Path variable of windows to include the Bin folder. Also set the global variables in vim>
let g:fsharpbinding_debug = 1
let g:fsharp_interactive_bin = 'c:\Program Files\Mono\bin'
I'm using the plugins through Plug>
call plug#begin('c:\\Users\\...\\Downloads\\Plug')
Plug 'tpope/vim-pathogen'
Plug 'vim-syntastic/syntastic'
Plug 'fsharp/vim-fsharp', {
\ 'for': 'fsharp',
\ 'do': 'make fsautocomplete',
\}
call plug#end()
after PlugInstall I run c:\Users...\Downloads\Plug\vim-fsharp\install.cmd
There is python feature installed>
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Jan 23 2020 23:02:17)
MS-Windows 64-bit GUI version with OLE support
Included patches: 1-147
Compiled by appveyor@APPVYR-WIN
Huge version with GUI. Features included (+) or not (-):
+acl +eval +multi_lang -tag_any_white
+arabic +ex_extra +mzscheme/dyn +tcl/dyn
+autocmd +extra_search +netbeans_intg -termguicolors
+autochdir -farsi +num64 +terminal
+autoservername +file_in_path +ole -termresponse
+balloon_eval +find_in_path +packages +textobjects
-balloon_eval_term +float +path_extra +textprop
+browse +folding +perl/dyn -tgetent
++builtin_terms -footer +persistent_undo +timers
+byte_offset +gettext/dyn +popupwin +title
+channel -hangul_input -postscript +toolbar
+cindent +iconv/dyn +printer +user_commands
+clientserver +insert_expand +profile +vartabs
+clipboard +job +python/dyn +vertsplit
+cmdline_compl +jumplist +python3/dyn +virtualedit
+cmdline_hist +keymap +quickfix +visual
+cmdline_info +lambda +reltime +visualextra
+comments +langmap +rightleft +viminfo
+conceal +libcall +ruby/dyn +vreplace
+cryptv +linebreak +scrollbind -vtp
+cscope +lispindent +signs +wildignore
+cursorbind +listcmds +smartindent +wildmenu
+cursorshape +localmap +sound +windows
+dialog_con_gui +lua/dyn +spell +writebackup
+diff +menu +startuptime -xfontset
+digraphs +mksession +statusline -xim
+directx +modify_fname -sun_workshop +xpm_w32
-dnd +mouse +syntax -xterm_save
-ebcdic +mouseshape +tag_binary
+emacs_tags +multi_byte_ime/dyn -tag_old_static
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"
Compilation: cl -c /W3 /nologo -I. -Iproto -DHAVE_PATHDEF -DWIN32 -DFEAT_CSCOPE -DFEAT_TERMINAL
-DFEAT_SOUND -DFEAT_NETBEANS_INTG -DFEAT_JOB_CHANNEL -DFEAT_XPM_W32 -DWINVER=0x0501
-D_WIN32_WINNT=0x0501 /MP -DHAVE_STDINT_H /Ox /GL -DNDEBUG /Zl /MT -DFEAT_OLE -DFEAT_MBYTE_IME
echo has('python')
1
set the permissions for the EVERYONE user to read + write + control in c:\Program Files\Mono\bin\ and in c:\Users\...\Downloads\Plug\vim-fsharp\
Tried to open the test.fsx file when the following appeared>

Exception: Error executing fsi. g:fsharp_interactive_bin="c:\Program Files\Mono\bin" [Error 5] Access is denied
The logs are the following. log.txt>
> outputmode json
> compilerlocation
msg received {u'MSBuild': u'xbuild', u'Fsi': u'fsharpi', u'Fsc': u'fsharpc'}
> compilerlocation
log2.txt>
::work read: {"Kind":"error","Data":{"Code":1,"Message":"Unknown command or wrong arguments","AdditionalData":{}}}
::work read: {"Kind":"compilerlocation","Data":{"Fsc":"fsharpc","Fsi":"fsharpi","MSBuild":"xbuild"}}
::work read: {"Kind":"compilerlocation","Data":{"Fsc":"fsharpc","Fsi":"fsharpi","MSBuild":"xbuild"}}
I can run c:\Users\...\Downloads\Plug\vim-fsharp\ftplugin\bin\fsautocomplete.exe and fsharpi no problem. Why is access is denied?
I have
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_vim_checkers = ['vint']
already for syntastic, and it's working also.
Ok. So the g:fsharp_interactive_bin have to be 'c:\Program Files\Mono\bin\fsharpiAnyCpu.bat'.