Fesh 0.12.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Fesh --version 0.12.0                
NuGet\Install-Package Fesh -Version 0.12.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Fesh" Version="0.12.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Fesh --version 0.12.0                
#r "nuget: Fesh, 0.12.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Fesh as a Cake Addin
#addin nuget:?package=Fesh&version=0.12.0

// Install Fesh as a Cake Tool
#tool nuget:?package=Fesh&version=0.12.0                

Logo

Fesh

code size license

Fesh is a Scripting Editor for F# on Windows.

Screenshot

It is based on the excellent AvalonEdit. The editor supports F# 8.0 and has modern IDE features like semantic syntax highlighting, type-info and autocomplete. Unlike a typical F# REPL this editor has the input and the output in two separate windows. Just like Don Syme always wanted it. You can even color the output with Fescher!

By using FSharp.Compiler.Service in the same process the Editor can easily be hosted in other apps to create an embedded application scripting tool. This was in fact the primary motivation for creating this editor. It is public since 2024. But I started prototyping it in 2017. I used it for scripting in Rhino3D professionally since 2019. Initially I used the Tsunami F# editor, see my talk on Louvre Abu Dhabi. But it is no longer available.

For hosting there is the nuget package Fesh. See hosting examples Fesh.Rhino and Fesh.Revit.

How to install

Standalone

Just download the from Releases. to any location, unblock and run the Fesh.exe.

Or build from source with:

dotnet build FeshStandalone.fsproj

for Hosting in another App

use the nuget package Fesh. or, to build the Fesh nuget package run:

dotnet build FeshHosting.fsproj

Features

Syntax Highlighting

Initial static syntax highlighting is done via AvalonEdit's regex based highlighting. See SyntaxHighlightingFSharp.xshd. The F# Compiler Service provides additional semantic highlighting.

Auto complete

Auto complete works on enter and dot, also in middle of a word.

Type info

The type info includes the inferred signature. All of the xml docs and information about the containing assembly

Status bar

The statusbar at the bottom shows compiler error count, click on it to scroll to the first error.

Selection highlighting

Selected text is highlighted in both code and output window. The count is shown in the status bar.

Release notes

0.12.0

  • add check for updates on startup
  • fix version number in Title
  • enable cancellation of running code in net48 and net8

0.11.1

  • fix expiry date

0.11.0

  • fix VisualLine not collapsed crash

0.10.0

  • enable DefaultCode in host settings

0.9.0

  • first public release
Product Compatible and additional computed target framework versions.
.NET net7.0-windows7.0 is compatible.  net8.0-windows was computed. 
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.15.0 88 11/22/2024
0.14.2 89 11/10/2024
0.14.1 94 11/7/2024
0.14.0 99 11/3/2024
0.13.0 128 10/19/2024
0.12.0 99 10/13/2024
0.11.1 85 10/6/2024
0.11.0 82 10/6/2024
0.10.0 108 8/26/2024
0.9.0 101 6/27/2024

- add check for updates on startup
     - fix version number in Title
     - enable cancellation of running code in net48 and net8.0