Closed OmanF closed 1 year ago
That flag was removed in recent versions of FSAC - it was used to spawn a background check process that was removed from the service. It should be removed from the command spawn args if possible.
I'll describe what I've tried and my Nvim config:
Plug 'ionide/Ionide-vim'
(I took off the make fsautocomplete
according to the README).fsautocomplete
locally (dotnet tool install fsautocomplete
) and in my config file I have:
let g:fsharp#fsautocomplete_command =
\ [ 'dotnet',
\ 'fsautocomplete'
\ ]
fsautocomplete
locally, and installed it globally (dotnet tool uninstall fsautocomplete && dotnet tool install -g fsautcomplete
), and in my config file I put: let g:fsharp#fsautocomplete_command = [ 'fsautocomplete' ]
This covers both behaviors: local, and globally installed fsautocomplete
.
As I said, neither integrates well, and the LSP client says the .fs
file is a Forth file.
(Let me know what more needs testing. :D)
I've done a lot of dotnet paket install
-ing today, and, while I don't know what exactly was the issue that was fixed by which package... apparently this issue is a non-issue and my mistake.
None the less, with regards to the --enable-background-services
flag which was removed:
fsautocomplete
locally, put let g:fsharp#fsautocomplete_command = [ 'dotnet', 'fsautocomplete' ]
in you config file.fsautocomplete
globally, shorten the command to let g:fsharp#fsautocomplete_command = [ 'fsautocomplete' ]
.The plugin is working for me just fine. Closing and thanks to Cannonarin and Chet Husk (Baronfel) for their comments and work.
Describe the bug The instructions call for setting the plugin with the flag
--enable-background-services
(both locally, and globally, installedFsAutocomplete
), however when runningfsautocomplete
from the CLI, it errors, showing the flag is no longer supported.As a result, the plugin doesn't trigger LSP integration with NVIM.
To Reproduce Steps to reproduce the behavior:
Ionide-vim
) according to the README file.fsharp#fsautocomplete_command
section of the settings, according to whether you havefsautocomplete
installed locally or globally.Expected behavior No errors in the plugin integration with both
fsautocomplete
and Nvim.Environment (please complete the following information):
Release
build type).Additional context For some reason, when opening
.fs
or.fsx
, or.fsi
files, Nvim's built-in LSP client recognizes them as Forth files, not F# ones.