Closed zpodlovics closed 7 years ago
Hi @zpodlovics, thanks for the detailed report! Are you using dotnet SDK preview 2.0? If so, maybe this is related to the following issue? https://github.com/fsprojects/Paket/issues/2519
If so, we're looking for the best fix, but at the moment the simplest work around seems to run mono .paket/paket.exe install
right after scaffolding the project with the template.
Hi @alfonsogarciacar, thanks for the update! Yes, I am using the SDK preview 2.0, the exact version is 2.0.0-preview1-005977 (also in Related information part of the original report).
I have checked, the proposed workaround does not solve the issue. I still had to do the steps I specified earlier as a workaround.
Steps to reproduce:
delete your .nuget directory
delete your .dotnet directory
Execution log:
mkdir /tmp/sample
cd /tmp/sample
dotnet new -i Fable.Template
dotnet new fable
mono .packet/packet.exe install
yarn install
cd src
dotnet restore
dotnet fable yarn-start
dotnet new -i Fable.Template
Welcome to .NET Core!
---------------------
Learn more about .NET Core @ https://aka.ms/dotnet-docs. Use dotnet --help to see available commands or go to https://aka.ms/dotnet-cli-docs.
Telemetry
--------------
The .NET Core tools collect usage data in order to improve your experience. The data is anonymous and does not include command-line arguments. The data is collected by Microsoft and shared with the community.
You can opt out of telemetry by setting a DOTNET_CLI_TELEMETRY_OPTOUT environment variable to 1 using your favorite shell.
You can read more about .NET Core tools telemetry @ https://aka.ms/dotnet-cli-telemetry.
Configuring...
-------------------
A command is running to initially populate your local package cache, to improve restore speed and enable offline access. This command will take up to a minute to complete and will only happen once.
Decompressing 100% 6454 ms
Expanding 100% 9668 ms
Templates Short Name Language Tags
----------------------------------------------------------------------------------------------------
Console Application console [C#], F# Common/Console
Class library classlib [C#], F# Common/Library
Simple Fable App fable F# Fable
Unit Test Project mstest [C#], F# Test/MSTest
xUnit Test Project xunit [C#], F# Test/xUnit
ASP.NET Core Empty web [C#] Web/Empty
ASP.NET Core Web App (Model-View-Controller) mvc [C#], F# Web/MVC
ASP.NET Core Web App (Razor Pages) razor [C#] Web/MVC/Razor Pages
ASP.NET Core Web API webapi [C#] Web/WebAPI
Nuget Config nugetconfig Config
Web Config webconfig Config
Solution File sln Solution
Razor Page page Web/ASP.NET
MVC ViewImports viewimports Web/ASP.NET
MVC ViewStart viewstart Web/ASP.NET
Examples:
dotnet new mvc --auth Individual
dotnet new webapi --framework netcoreapp2.0
dotnet new --help
dotnet new fable
The template "Simple Fable App" was created successfully.
mono .paket/paket.exe install
Paket version 5.6.12
Skipping resolver for group Main since it is already up-to-date
/tmp/simple/paket.lock is already up-to-date
Installing into projects:
- Creating model and downloading packages.
Could not detect any platforms from 'xamarin.tvos1.0'
Could not detect any platforms from 'xamarin.watchos1.0'
Could not detect any platforms from 'xamarintvos10'
Could not detect any platforms from 'xamarinwatchos10'
Could not detect any platforms from 'Xamarin.TVOS1.0'
Could not detect any platforms from 'Xamarin.WatchOS1.0'
- src/paket.references -> src/simple.fsproj
Performance:
- Disk IO: 14 seconds
- Runtime: 9 seconds
zpodlovics@z:/tmp/simple$ yarn install
yarn install v0.27.5
[1/4] Resolving packages...
[2/4] Fetching packages...
warning fsevents@1.1.1: The platform "linux" is incompatible with this module.
info "fsevents@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
Done in 2.93s.
zpodlovics@z:/tmp/simple$ cd src/
zpodlovics@z:/tmp/simple/src$ dotnet restore
Paket version 5.6.12
- /tmp/simple/src/obj/simple.fsproj.references created
- /tmp/simple/src/obj/simple.fsproj.paket.clitools created
- /tmp/simple/src/obj/simple.fsproj.paket.props created
Performance:
- Disk IO: 112 milliseconds
- Runtime: 2 seconds
Paket version 5.6.12
Performance:
- Disk IO: 98 milliseconds
- Runtime: 2 seconds
Restoring packages for /tmp/simple/src/simple.fsproj...
Restoring packages for /tmp/simple/src/simple.fsproj...
Installing FSharp.Compiler.Tools 4.1.17.
Installing Fable.Import.Browser 0.1.0.
Installing Fable.Core 1.1.7.
Installing System.Xml.XDocument 4.3.0.
Installing System.Xml.ReaderWriter 4.3.0.
Installing FSharp.Core 4.2.1.
Installing System.Threading.Timer 4.3.0.
Installing System.Threading.ThreadPool 4.3.0.
Installing System.Threading.Thread 4.3.0.
Installing System.Threading.Tasks.Parallel 4.3.0.
Installing System.Threading.Tasks.Extensions 4.3.0.
Installing System.Text.RegularExpressions 4.3.0.
Installing System.Net.Requests 4.3.0.
Installing System.Net.Http 4.3.2.
Installing Microsoft.NETCore.Targets 1.1.0.
Installing NETStandard.Library 1.6.1.
Installing runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1.
Installing Microsoft.NETCore.Platforms 1.1.0.
Installing System.Security.Cryptography.X509Certificates 4.3.0.
Installing System.Security.Cryptography.OpenSsl 4.3.0.
Installing FSharp.NET.Sdk 1.0.5.
Installing runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1.
Installing runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1.
Installing runtime.native.System 4.3.0.
Installing runtime.native.System.IO.Compression 4.3.0.
Installing runtime.native.System.Net.Http 4.3.0.
Installing runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1.
Installing runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1.
Installing runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple 4.3.0.
Installing runtime.native.System.Security.Cryptography.Apple 4.3.0.
Installing runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1.
Installing runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1.
Installing runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1.
Installing runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1.
Installing runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1.
Installing runtime.native.System.Security.Cryptography.OpenSsl 4.3.1.
Installing System.Runtime 4.3.0.
Installing System.Xml.XPath 4.0.1.
Installing runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0.
Installing runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0.
Installing runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0.
Installing runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0.
Installing runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0.
Installing runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0.
Installing runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0.
Installing runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0.
Installing runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0.
Installing runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0.
Installing runtime.native.System.IO.Compression 4.1.0.
Installing Microsoft.NETCore.DotNetHost 1.0.1.
Installing System.Xml.XPath.XDocument 4.0.1.
Installing System.Xml.XmlDocument 4.0.1.
Installing System.Text.Encoding.CodePages 4.0.1.
Installing Microsoft.Win32.Primitives 4.3.0.
Installing System.AppContext 4.3.0.
Installing System.Collections 4.3.0.
Installing System.Diagnostics.Debug 4.3.0.
Installing System.Diagnostics.Tools 4.3.0.
Installing System.Diagnostics.Tracing 4.3.0.
Installing System.Globalization 4.3.0.
Installing dotnet-fable 1.1.9.
Installing System.Security.Cryptography.Csp 4.3.0.
Installing System.Globalization.Calendars 4.3.0.
Installing System.IO.FileSystem.Primitives 4.3.0.
Installing Fable.Compiler 1.1.9.
Installing System.Reflection.Primitives 4.3.0.
Installing System.Runtime.Extensions 4.3.0.
Installing System.Runtime.Handles 4.3.0.
Installing System.Security.Cryptography.Cng 4.3.0.
Installing System.Net.Primitives 4.3.0.
Installing System.Collections.Immutable 1.3.1.
Installing Microsoft.NETCore.App 1.0.4.
Installing System.Reflection.Metadata 1.4.2.
Installing System.Text.Encoding 4.3.0.
Installing System.Text.Encoding.Extensions 4.3.0.
Installing System.Threading.Tasks 4.3.0.
Installing System.Security.Cryptography.Algorithms 4.3.0.
Installing System.IO 4.3.0.
Installing System.Console 4.3.0.
Installing System.Reflection.TypeExtensions 4.3.0.
Installing System.IO.FileSystem 4.3.0.
Installing System.Net.Sockets 4.3.0.
Installing System.Runtime.Loader 4.3.0.
Installing System.Reflection 4.3.0.
Installing System.Reflection.Emit.ILGeneration 4.3.0.
Installing System.ValueTuple 4.3.1.
Installing System.Diagnostics.StackTrace 4.0.1.
Installing System.Reflection.Emit 4.3.0.
Installing FSharp.Compiler.Service 13.0.0.
Installing System.Reflection.Emit.Lightweight 4.3.0.
Installing System.Reflection.Extensions 4.3.0.
Installing System.Resources.ResourceManager 4.3.0.
Installing Newtonsoft.Json 10.0.3.
Installing System.Linq 4.3.0.
Installing System.Net.WebHeaderCollection 4.3.0.
Installing System.Runtime.InteropServices 4.3.0.
Installing System.Globalization.Extensions 4.3.0.
Installing System.Runtime.Numerics 4.3.0.
Installing System.Security.Cryptography.Encoding 4.3.0.
Installing System.Threading 4.3.0.
Installing System.Diagnostics.FileVersionInfo 4.0.0.
Installing Microsoft.CodeAnalysis.Analyzers 1.1.0.
Installing System.Buffers 4.3.0.
Installing System.Collections.Concurrent 4.3.0.
Installing System.Diagnostics.DiagnosticSource 4.4.0.
Installing System.IO.Compression 4.3.0.
Installing System.IO.Compression.ZipFile 4.3.0.
Installing System.ObjectModel 4.3.0.
Installing System.Linq.Expressions 4.3.0.
Installing System.Linq.Queryable 4.3.0.
Installing System.Runtime.InteropServices.RuntimeInformation 4.3.0.
Installing System.Security.Cryptography.Primitives 4.3.0.
Installing Libuv 1.9.1.
Installing Microsoft.CodeAnalysis.CSharp 1.3.0.
Installing Microsoft.CodeAnalysis.VisualBasic 1.3.0.
Installing Microsoft.CSharp 4.0.1.
Installing Microsoft.NETCore.DotNetHostPolicy 1.0.3.
Installing Microsoft.NETCore.Platforms 1.0.2.
Installing Microsoft.NETCore.Runtime.CoreCLR 1.0.6.
Installing NETStandard.Library 1.6.0.
Installing Microsoft.VisualBasic 10.0.1.
Installing System.Buffers 4.0.0.
Installing System.ComponentModel.Annotations 4.1.0.
Installing System.Diagnostics.DiagnosticSource 4.0.0.
Installing System.ComponentModel 4.0.1.
Installing System.Diagnostics.Process 4.1.0.
Installing System.Dynamic.Runtime 4.0.11.
Installing System.IO.FileSystem.Watcher 4.0.0.
Installing System.Linq.Expressions 4.1.1.
Installing System.IO.UnmanagedMemoryStream 4.0.1.
Installing System.Linq.Parallel 4.0.1.
Installing System.IO.MemoryMappedFiles 4.0.0.
Installing System.ComponentModel.Primitives 4.3.0.
Installing System.Net.Http 4.1.1.
Installing System.Net.NameResolution 4.0.0.
Installing System.Linq.Queryable 4.0.1.
Installing System.Net.Requests 4.0.11.
Installing System.Net.Security 4.0.0.
Installing System.Net.WebHeaderCollection 4.0.1.
Installing System.ComponentModel 4.3.0.
Installing System.Globalization.Extensions 4.0.1.
Installing System.Numerics.Vectors 4.1.1.
Installing System.Reflection.DispatchProxy 4.0.1.
Installing System.Reflection.TypeExtensions 4.1.0.
Installing System.Resources.Reader 4.0.0.
Installing System.Runtime.Loader 4.0.0.
Installing System.Collections.Specialized 4.3.0.
Installing System.Security.Cryptography.Algorithms 4.2.0.
Installing System.Security.Cryptography.Encoding 4.0.0.
Installing System.Security.Cryptography.Primitives 4.0.0.
Installing System.Security.Cryptography.X509Certificates 4.1.0.
Installing System.Threading.Tasks.Dataflow 4.6.0.
Installing System.Threading.Tasks.Extensions 4.0.0.
Installing System.Threading.Tasks.Parallel 4.0.1.
Installing System.Threading.Thread 4.0.0.
Installing System.Threading.ThreadPool 4.0.10.
Installing System.Collections 4.0.11.
Installing System.Console 4.0.0.
Installing System.Diagnostics.Debug 4.0.11.
Installing System.Diagnostics.Tools 4.0.1.
Installing System.Globalization 4.0.11.
Installing System.IO 4.1.0.
Installing System.Linq 4.1.0.
Installing System.Linq.Expressions 4.1.0.
Installing System.Reflection 4.1.0.
Installing System.Reflection.Extensions 4.0.1.
Installing System.Resources.ResourceManager 4.0.1.
Installing System.Runtime 4.1.0.
Installing System.Runtime.Extensions 4.1.0.
Installing System.Runtime.Numerics 4.0.1.
Installing System.Text.RegularExpressions 4.1.0.
Installing System.Threading 4.0.11.
Installing System.Threading.Tasks 4.0.11.
Installing System.Collections.NonGeneric 4.3.0.
Installing System.Threading.Timer 4.0.1.
Installing System.Net.Http 4.3.0.
Installing Microsoft.DiaSymReader 1.1.0.
Installing Microsoft.DiaSymReader.PortablePdb 1.2.0.
Installing System.Diagnostics.TraceSource 4.0.0.
Installing Microsoft.CSharp 4.3.0.
Installing System.ComponentModel.TypeConverter 4.3.0.
Installing System.Runtime.Serialization.Primitives 4.3.0.
Installing System.Runtime.Serialization.Formatters 4.3.0.
Installing Microsoft.CodeAnalysis.Common 1.3.0.
Installing System.Dynamic.Runtime 4.3.0.
Installing System.ObjectModel 4.0.12.
Installing Microsoft.NETCore.DotNetHostResolver 1.0.1.
Installing Microsoft.NETCore.Jit 1.0.6.
Installing Microsoft.NETCore.Windows.ApiSets 1.0.1.
Installing System.Collections.Concurrent 4.0.12.
Installing System.Diagnostics.DiagnosticSource 4.3.0.
Installing System.IO.Compression 4.1.0.
Installing System.IO.Compression.ZipFile 4.0.1.
Installing System.Runtime.InteropServices.RuntimeInformation 4.0.0.
Installing runtime.native.System.Security.Cryptography.OpenSsl 4.3.0.
Installing System.Xml.XmlDocument 4.3.0.
Installing Microsoft.Win32.Primitives 4.0.1.
Installing System.AppContext 4.1.0.
Installing System.Net.Primitives 4.0.11.
Installing System.Diagnostics.Tracing 4.1.0.
Installing System.Net.Http 4.1.0.
Installing System.Globalization.Calendars 4.0.1.
Installing System.Reflection.Primitives 4.0.1.
Installing System.Xml.ReaderWriter 4.0.11.
Installing System.Text.Encoding.Extensions 4.0.11.
Installing System.Runtime.Handles 4.0.1.
Installing System.Runtime.InteropServices 4.1.0.
Installing System.IO.FileSystem.Primitives 4.0.1.
Installing System.Net.Sockets 4.1.0.
Installing System.Text.Encoding 4.0.11.
Installing System.IO.FileSystem 4.0.1.
Installing Microsoft.Win32.Registry 4.0.0.
Installing runtime.native.System 4.0.0.
Installing System.Reflection.Emit 4.0.1.
Installing System.Reflection.Emit.ILGeneration 4.0.1.
Installing System.Threading.Overlapped 4.0.1.
Installing runtime.native.System.Net.Http 4.0.1.
Installing runtime.native.System.Security.Cryptography 4.0.0.
Installing System.Security.Cryptography.OpenSsl 4.0.0.
Installing System.Security.Principal.Windows 4.0.0.
Installing runtime.native.System.Net.Security 4.0.1.
Installing System.Security.Claims 4.0.1.
Installing System.Security.Principal 4.0.1.
Installing System.Reflection.Emit.Lightweight 4.0.1.
Installing System.Security.Cryptography.Cng 4.2.0.
Installing System.Security.Cryptography.Csp 4.0.0.
Installing Microsoft.NETCore.Targets 1.0.1.
Installing Microsoft.NETCore.Platforms 1.0.1.
Generating MSBuild file /tmp/simple/src/obj/simple.fsproj.nuget.g.props.
Restore completed in 3.74 sec for /tmp/simple/src/simple.fsproj.
Generating MSBuild file /tmp/simple/src/obj/simple.fsproj.nuget.g.targets.
Writing lock file to disk. Path: /tmp/simple/src/obj/project.assets.json
Restore completed in 3.47 sec for /tmp/simple/src/simple.fsproj.
NuGet Config files used:
/home/zpodlovics/.nuget/NuGet/NuGet.Config
Feeds used:
https://api.nuget.org/v3/index.json
/home/zpodlovics/.dotnet/NuGetFallbackFolder
Installed:
290 package(s) to /tmp/simple/src/simple.fsproj
dotnet restore
Paket version 5.6.12
Performance:
- Disk IO: 98 milliseconds
- Runtime: 2 seconds
Paket version 5.6.12
Performance:
- Disk IO: 106 milliseconds
- Runtime: 2 seconds
Restoring packages for /tmp/simple/src/simple.fsproj...
Restoring packages for /tmp/simple/src/simple.fsproj...
Lock file has not changed. Skipping lock file write. Path: /tmp/simple/src/obj/project.assets.json
Restore completed in 424.38 ms for /tmp/simple/src/simple.fsproj.
Restore completed in 531.68 ms for /tmp/simple/src/simple.fsproj.
NuGet Config files used:
/home/zpodlovics/.nuget/NuGet/NuGet.Config
Feeds used:
https://api.nuget.org/v3/index.json
/home/zpodlovics/.dotnet/NuGetFallbackFolder
dotnet fable yarn-start
Error: assembly specified in the dependencies manifest was not found -- package: 'System.Diagnostics.DiagnosticSource', version: '4.3.0', path: 'lib/netstandard1.3/System.Diagnostics.DiagnosticSource.dll'
It seems that the dotnet-fable.dll dependencies are missing:
dotnet -d fable
Telemetry is: Disabled
projectfactory: MSBUILD_EXE_PATH = /usr/share/dotnet/sdk/2.0.0-preview1-005977/MSBuild.dll
projectfactory: MSBuild project path = /tmp/simple/src/simple.fsproj
projecttoolscommandresolver: resolving commandspec from 1 Tool Libraries.
projecttoolscommandresolver: Attempting to resolve command spec from tool dotnet-fable
projecttoolscommandresolver: nuget packages root:
- /home/zpodlovics/.nuget/packages/
projecttoolscommandresolver: found tool lockfile at : /home/zpodlovics/.nuget/packages/.tools/dotnet-fable/1.1.9/netcoreapp2.0/project.assets.json
projecttoolscommandresolver: expect deps.json at: /home/zpodlovics/.nuget/packages/.tools/dotnet-fable/1.1.9/netcoreapp2.0/dotnet-fable.deps.json
projecttoolscommandresolver: attempting to create commandspec
packagedcommandspecfactory: attempting to find command dotnet-fable in dotnet-fable
PackagedCommandSpecFactory: Looking for prefercliruntime file at `/home/zpodlovics/.nuget/packages/dotnet-fable/1.1.9/lib/netcoreapp1.0/../../prefercliruntime`
PackagedCommandSpecFactory: Ignoring prefercliruntime file as the tool target framework (1.0.4) has a different major version than the current CLI runtime (2.0.0-preview1-002111-00)
Running /usr/share/dotnet/dotnet exec --depsfile /home/zpodlovics/.nuget/packages/.tools/dotnet-fable/1.1.9/netcoreapp2.0/dotnet-fable.deps.json --additionalprobingpath /home/zpodlovics/.nuget/packages /home/zpodlovics/.nuget/packages/dotnet-fable/1.1.9/lib/netcoreapp1.0/dotnet-fable.dll
Process ID: 7386
Error: assembly specified in the dependencies manifest was not found -- package: 'System.Diagnostics.DiagnosticSource', version: '4.3.0', path: 'lib/netstandard1.3/System.Diagnostics.DiagnosticSource.dll'
However only the 4.4.0 version installed to the user .nuget
ls ~/.nuget/packages/System.Diagnostics.DiagnosticSource/4.4.0/
[Content_Types].xml LICENSE.TXT ref System.Diagnostics.DiagnosticSource.4.4.0.nupkg System.Diagnostics.DiagnosticSource.nuspec useSharedDesignerContext.txt
lib package _rels System.Diagnostics.DiagnosticSource.4.4.0.nupkg.sha512 THIRD-PARTY-NOTICES.TXT version.txt
And only the 4.4.0 version installed to the project/packages
ls packages/System.Diagnostics.DiagnosticSource/
[Content_Types].xml license.html package _rels System.Diagnostics.DiagnosticSource.nuspec useSharedDesignerContext.txt
lib LICENSE.TXT ref System.Diagnostics.DiagnosticSource.4.4.0.nupkg THIRD-PARTY-NOTICES.TXT version.txt
Thanks, @zpodlovics! There seems to be several problems with the previews of dotnet SDK 2.0. It's difficult for me to understand what's the source of these issues because a) they mainly occur with an unstable version of the dotnet SDK (I haven't upgraded to dotnet SDK 2 myself) and b) they concern other tooling not directly related to Fable.
I'm not sure what to tell you, I'd first try updating the dotnet SDK (I think there're many issues fixed from preview1 to preview2), then check if it's really the same issue as fsprojects/Paket#2519. If not, I'd raise the issue in the Paket or Nuget repos. Unfortunately, Fable is not generating any of the logs copied above so there's not much I can do 😕
Thanks @alfonsogarciacaro! It seems that the same issue still exists with preview2 (2.0.0-preview2-006497).
This should have been fixed with dotnet SDK 2 (stable) and Fable 1.2. Please feel free to reopen if you still have problems :)
Description
Maybe I forgot something, but when I try to reproduce the steps from the following address: https://github.com/fable-compiler/Fable/blob/master/src/templates/simple/Content/README.md
Eventually I was able to fix it, but to do that I had to install several packages manually.
Repro code
As these commands are destructive intentionally left separate from the repro code:
Please provide the F# code to reproduce the problem. Ideally, it should be possible to easily turn this code into a unit test.
Expected and actual results
Expected result: dotnet fable yarn-start works as expected without installing several additional packages
Actual result:
Related information
dotnet fable --version
): 1.1.9