-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The latest FSAC is currently not working (on *nix systems?) #44
Comments
As I noted on #43, for me what worked was workaround 2. 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. |
confirmed on my end too. I will update the description, then close this announcement tomorrow. |
Meta: On the table below when it says "FSAC version - local", I made sure to uninstall My Content:
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" After reading this table, and the preceding thread, it simply acts to verify what you already know, which is that The |
Workaround 2 worked for me, using Vim 8.2 on 20.04. Without it, I get the exact symptoms as described by @OmanF, albeit with 0.49.5. Workaround 1 did not work for me. |
Note for @OmanF and others running Ubuntu: Apparently fsautocomplete 0.49+ works fine if you only have one dotnet runtime installed -- i.e., uninstall all runtimes besides dotnet-runtime-6.0. I brought this up as a fsautocomplete issue. |
@tnishimura Thank you for taking time to look into this! I'm glad if you can send a patch (so that you are actually credited as a contributor), but I can do it instead if you don't have time for that. |
@cannorin I'll ask you to do it 🙏 -- the only thing I can think of is prepending |
Added a workaround for this issue. Can you check if it works for you? |
I just saw the implementation for #51, I tried it: works! Couple of issues I do have to point out:
All in all, great work, I can now edit F# in NeoVim to a goo degree! |
A couple quick responses:
|
As @baronfel explained, FSAC need not be global. See the
|
@cannorin Yes, the DOTNET_ROLL_FORWARD change is working as expected, at least on Vim. (I didn't know that you could just set a variable |
(I've already explained about 1. in the above message, so I'm skipping it)
|
Thanks for your reply. Otherwise, I've seen and implemented the local FSAutoComplete as per the readme and it works great. Thanks for a great job! |
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 ionide/FsAutoComplete#853, which originates from ionide/proj-info#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 ionide/FsAutoComplete#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:
The text was updated successfully, but these errors were encountered: