Fable: Can't install Fable template on Linux with .NET Core 2.1.4

Created on 14 Jan 2018  路  5Comments  路  Source: fable-compiler/Fable

Description

I've tried to follow the instructions here: http://fable.io/blog/Introducing-1-0-beta.html to create a Fable sample project. However, after typing "dotnet new fable" nothing happens.

Repro code

  • Operating System: Linux Mint 18.2
  • .NET Core version: 2.1.4
  • Fable version: "dotnet fable --version" returns a shell error "No executable found matching "dotnet-fable". Though the template is installed:

image

After typing "dotnet new fable" I get:

image

and no files are created.

All 5 comments

Scratch that - I googled for "fable F# tutorial" and that was one of the first results. I've noticed that the proper place to go would be "http://fable.io/".

Though I must admit that the lack of info in the command line was misleading, as it says "no parameters". Actually it turned out that the proper way to create a project is to type:

dotnet new fable -n FableApp -lang F#

Is there a way to provide user with the right command if they type dotnet new fable ? I'd expect this to work, as e.g. dotnet new mvc works just fine.

Plus now I get:

/home/b/Dev/F#/Fable/FableApp/src/FableApp.fsproj : error NU1100: Unable to resolve 'runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl (>= 4.3.2)' for '.NETStandard,Version=v2.0'. [/home/beko/Dev/F#/Fable/FableApp/FableApp.sln]

after using dotnet restore.

The "no parameters" issue of dotnet new fable is a known issue of dotnet template engine. Not much we can do on our side ATM.

For the second error, I don't know. Perhaps @forki know more about it.

The first issue (re: -lang f#) was fixed in dotnet/templating#1375. No idea when it's going to be released.

OK, I've had a chat with someone on Slack and he suggested this might be a dotnet-related issue. TBH not sure if he was right, but the suggested solution brought the project back to life.

  1. (Tested) Install dotnet-sdk-2.0.0 and work with it.
    2.) (Not tested) Here's a description of an issue: https://github.com/fsprojects/Paket/issues/2894. It suggests adding some packages to the deps file. This might work as a sort of walkaround, but I haven't really tried it out.

It seems this is not actionable in this repo so let's close the issue. Please reopen if you have further questions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alfonsogarciacaro picture alfonsogarciacaro  路  30Comments

ncave picture ncave  路  35Comments

matthid picture matthid  路  29Comments

et1975 picture et1975  路  43Comments

alfonsogarciacaro picture alfonsogarciacaro  路  26Comments