Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Allow using dotnet fsi #115

Open
pviotti opened this issue Nov 22, 2020 · 1 comment · May be fixed by #116
Open

Allow using dotnet fsi #115

pviotti opened this issue Nov 22, 2020 · 1 comment · May be fixed by #116

Comments

@pviotti
Copy link

pviotti commented Nov 22, 2020

AFAIK, the way FSI should be executed for recent versions of .NET (Core or >=5) is through the dotnet client application as: dotnet fsi. Indeed, on a up-to-date Arch Linux, if I try execute /usr/share/dotnet/sdk/5.0.100/FSharp/fsi.exe, it crashes on an assertion (file-mmap-posix.c:397, condition 'path || mapName' not met).

Yet if I set let g:fsharp_interactive_bin = '/user/bin/dotnet fsi' vim-fsharp fails with this exception:

Traceback (most recent call last):                                                                                                                                                                                                                                                                                           
  File "<string>", line 28, in <module>                                                                                                                                                                                                                                                                                      
  File "/home/user/.vim/plugged/vim-fsharp/ftplugin/fsi.py", line 28, in __init__                                                                                                                                                                                                                                           
    raise Exception ('Error executing fsi.  g:fsharp_interactive_bin="' + fsi_path + '" ' + str(e))                                                                                                                                                                                                                          
Exception: Error executing fsi.  g:fsharp_interactive_bin="/user/bin/dotnet fsi" [Errno 2] No such file or directory: '/user/bin/dotnet fsi'

Is there any way to make it work (other than changing the python code, as I did)? Is .NET Core / 5 supported?

@pviotti pviotti linked a pull request Nov 22, 2020 that will close this issue
@cdimitroulas
Copy link

I came across this issue whilst trying to setup my F# dev environment. Is there any way to get this plugin to work with .NET 5 at the moment?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants