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

Allow using dotnet fsi #115

@pviotti

Description

@pviotti

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions