Closed cannorin closed 2 years ago
As I noted on #43, for me what worked was workaround 2.
Will keep an eye on the fsautocomplete
upstream to see when they fix the root cause.
Thank you for your great work!
A fix for this should have been pushed in 0.49.2, please let me know if it works out for you!
@baronfel confirmed. After running :FSharpUpdateFSAC I no longer need to set DOTNET_HOST_PATH
confirmed on my end too. I will update the description, then close this announcement tomorrow.
@baronfel, @cannorin
Meta: OS: Linux Ubuntu 20.04 (WSL2) NeoVim: 0.6.0-Dev, nightly .Net SDK: 6.0.100
On the table below when it says "FSAC version - local", I made sure to uninstall FSAC
globally, and vice-versa, so, at all times there was a single FSAC
installed on the machine (either globally, or local to the folder).
My .zshrc
has no clause regarding DOTNET
-anything.
Content:
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns="http://www.w3.org/TR/REC-html40">
Error 1: [ERROR][2021-11-20 14:25:00] .../vim/lsp/rpc.lua:412 "rpc" "dotnet" "stderr" "Could not execute because the specified command or file was not found.\r\nPossible reasons for this include:\r\n * You misspelled a built-in dotnet command.\r\n * You intended to execute a .NET program, but dotnet-fsautocomplete does not exist.\r\n * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.\n"
UPDATE: This was fixed in the latest FSAC (0.49.2). Please update your FSAC with
:FSharpUpdateFSAC
, or if you are using one from .NET tools,dotnet tool update fsautocomplete
.Also, FSAC now encourages installing
fsautocomplete
as a local tool rather than a global tool.dotnet tool install fsautocomplete
in your project and set the following:g:fsharp#fsautocomplete_command
to the following::FSharpUpdateFSAC
to update to the latest FSAC.Ionide-vim is currently affected by an upstream bug https://github.com/fsharp/FsAutoComplete/issues/853, which originates from https://github.com/ionide/proj-info/issues/123.
This is causing Ionide-vim not to work. Here are the workarounds you can do to avoid this issue for the time being:
Workaround 1.
As described in https://github.com/fsharp/FsAutoComplete/issues/853, put
export DOTNET_HOST_PATH="$(which dotnet)"
to your rc file.Workaround 2.
Install an older version of FSAC as a .NET tool:
(if you have already installed it before, replace
install
withupdate
)Then use the following to force Ionide-vim to use the one from .NET tool: