fable-compiler / Fable

F# to JavaScript, TypeScript, Python, Rust and Dart Compiler
http://fable.io/
MIT License
2.93k stars 300 forks source link

Fable Simple Template dotnet-fable require manual installation of several missing package dependencies when the user .nuget and .dotnet directories does not exists or empty #1070

Closed zpodlovics closed 7 years ago

zpodlovics commented 7 years ago

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:

delete your .nuget directory
delete your .dotnet directory
mkdir /tmp/sample
cd /tmp/sample
dotnet new -i Fable.Template
dotnet new fable
yarn install
cd src
dotnet restore
dotnet fable yarn-start

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:

dotnet new -i Fable.Template

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 viewstart
    dotnet new --help
dotnet new fable
The template "Simple Fable App" was created successfully.
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.89s.
cd src/
dotnet restore
  Paket version 5.6.12
   - /tmp/sample/src/obj/sample.fsproj.references created
   - /tmp/sample/src/obj/sample.fsproj.paket.clitools created
   - /tmp/sample/src/obj/sample.fsproj.paket.props created
  Performance:
   - Disk IO: 3 seconds
   - Runtime: 3 seconds
  Paket version 5.6.12
  Performance:
   - Disk IO: 101 milliseconds
   - Runtime: 2 seconds
  Restoring packages for /tmp/sample/src/sample.fsproj...
  Restoring packages for /tmp/sample/src/sample.fsproj...
  Generating MSBuild file /tmp/sample/src/obj/sample.fsproj.nuget.g.props.
  Generating MSBuild file /tmp/sample/src/obj/sample.fsproj.nuget.g.targets.
  Writing lock file to disk. Path: /tmp/sample/src/obj/project.assets.json
  Restore completed in 577.25 ms for /tmp/sample/src/sample.fsproj.
  Restore completed in 562.34 ms for /tmp/sample/src/sample.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: 'FSharp.Compiler.Service', version: '13.0.0', path: 'lib/netstandard1.6/FSharp.Compiler.Service.dll'
mono ../.paket/paket.exe add FSharp.Compiler.Service -V 13.0.0
Paket version 5.6.12
Adding FSharp.Compiler.Service 13.0.0 to /tmp/sample/paket.dependencies into group Main
Skipping resolver for group Main since it is already up-to-date
/tmp/sample/paket.lock is already up-to-date
Dependencies files saved to /tmp/sample/paket.dependencies
 - 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/sample.fsproj
Performance:
 - Disk IO: 5 seconds
 - Runtime: 7 seconds
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'
mono ../.paket/paket.exe add System.Diagnostics.DiagnosticSource -V 4.3.0
Paket version 5.6.12
Adding System.Diagnostics.DiagnosticSource 4.3.0 to /tmp/sample/paket.dependencies into group Main
Resolving packages for group Main:
 - FSharp.Compiler.Service 13.0.0
 - System.Diagnostics.DiagnosticSource 4.3.0
 - dotnet-fable 1.1.9
 - Fable.Core 1.1.7
 - Fable.Import.Browser 0.1
 - FSharp.Core 4.2.1
 - System.Xml.XDocument 4.3
 - runtime.native.System 4.3
 - runtime.native.System.IO.Compression 4.3
 - System.Buffers 4.3
 - System.Collections 4.3
 - System.Diagnostics.Debug 4.3
 - System.Diagnostics.Tracing 4.3
 - System.Globalization 4.3
 - System.IO 4.3
 - System.IO.Compression 4.3
 - System.Linq 4.3
 - System.Reflection 4.3
 - System.Reflection.Emit 4.3
 - System.Reflection.Extensions 4.3
 - System.Reflection.Primitives 4.3
 - System.Reflection.TypeExtensions 4.3
 - System.Resources.ResourceManager 4.3
 - System.Runtime 4.3
 - System.Runtime.Extensions 4.3
 - System.Runtime.Handles 4.3
 - System.Runtime.InteropServices 4.3
 - System.Security.Cryptography.Algorithms 4.3
 - System.Text.Encoding 4.3
 - System.Text.Encoding.Extensions 4.3
 - System.Threading 4.3
 - System.Threading.Tasks 4.3
 - System.Diagnostics.Process 4.3
 - System.Linq.Expressions 4.3
 - System.Text.RegularExpressions 4.3
 - System.Net.Requests 4.3
 - System.Threading.ThreadPool 4.3
 - System.Diagnostics.Tools 4.3
 - System.Linq.Queryable 4.3
 - System.Runtime.Numerics 4.3
 - System.Threading.Tasks.Parallel 4.3
 - System.Threading.Timer 4.3
 - System.Diagnostics.TraceSource 4.3
 - System.Runtime.Loader 4.3
 - System.Console 4.3
 - System.Threading.Thread 4.3
 - NETStandard.Library 1.6.1
 - System.Reflection.Metadata 1.4.2
 - System.Collections.Immutable 1.3.1
 - Microsoft.DiaSymReader.PortablePdb 1.2
 - Fable.Compiler 1.1.9
 - Microsoft.DiaSymReader 1.1
 - Microsoft.NETCore.Platforms 1.1
 - Microsoft.NETCore.Targets 1.1
 - Microsoft.NETCore.App 1.1.2
   Incompatible dependency: System.Diagnostics.DiagnosticSource >= 4.3.1 conflicts with resolved version 4.3.0
   Incompatible dependency: System.Diagnostics.DiagnosticSource >= 4.3.1 conflicts with resolved version 4.3.0
 - Microsoft.NETCore.App 1.1.1
 - Microsoft.VisualBasic 10.1
 - Newtonsoft.Json 10.0.3
 - System.Threading.Tasks.Dataflow 4.7
 - System.ValueTuple 4.3.1
 - Microsoft.CSharp 4.3
 - System.ComponentModel 4.3
 - System.ComponentModel.Annotations 4.3
 - System.Dynamic.Runtime 4.3
 - System.Globalization.Extensions 4.3
 - System.IO.FileSystem.Watcher 4.3
 - System.IO.MemoryMappedFiles 4.3
 - System.IO.UnmanagedMemoryStream 4.3
 - System.Linq.Parallel 4.3
 - System.Net.NameResolution 4.3
 - System.Net.Security 4.3.1
 - System.Net.WebHeaderCollection 4.3
 - System.Numerics.Vectors 4.3
 - System.Reflection.DispatchProxy 4.3
 - System.Resources.Reader 4.3
 - System.Security.Cryptography.Encoding 4.3
 - System.Security.Cryptography.Primitives 4.3
 - System.Security.Cryptography.X509Certificates 4.3
 - System.Threading.Tasks.Extensions 4.3
 - Microsoft.Win32.Primitives 4.3
 - System.AppContext 4.3
 - System.Collections.Concurrent 4.3
 - System.Globalization.Calendars 4.3
 - System.IO.Compression.ZipFile 4.3
 - System.IO.FileSystem 4.3
 - System.IO.FileSystem.Primitives 4.3
 - System.Net.Http 4.3.2
 - System.Net.Primitives 4.3
 - System.Net.Sockets 4.3
 - System.ObjectModel 4.3
 - System.Runtime.InteropServices.RuntimeInformation 4.3
 - System.Xml.ReaderWriter 4.3
 - Microsoft.Win32.Registry 4.3
 - System.Reflection.Emit.ILGeneration 4.3
 - System.Reflection.Emit.Lightweight 4.3
 - runtime.native.System.Security.Cryptography.Apple 4.3
 - runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - Libuv 1.9.2
 - Microsoft.DiaSymReader.Native 1.5
 - Microsoft.CodeAnalysis.CSharp 2.2
 - Microsoft.CodeAnalysis.VisualBasic 2.2
 - Microsoft.NETCore.Runtime.CoreCLR 1.1.2
 - Microsoft.NETCore.DotNetHostPolicy 1.1.2
 - Microsoft.CodeAnalysis.Common 2.2.0
 - runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - System.ComponentModel.TypeConverter 4.3
 - System.Runtime.Serialization.Formatters 4.3
 - System.Runtime.Serialization.Primitives 4.3
 - System.Xml.XmlDocument 4.3
 - runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple 4.3
 - System.Threading.Overlapped 4.3
 - runtime.native.System.Net.Http 4.3
 - System.Security.Cryptography.OpenSsl 4.3
 - System.Security.Principal.Windows 4.3
 - runtime.native.System.Net.Security 4.3
 - System.Security.Claims 4.3
 - System.Security.Principal 4.3
 - System.Security.Cryptography.Cng 4.3
 - System.Security.Cryptography.Csp 4.3
 - Microsoft.NETCore.Jit 1.1.2
 - Microsoft.NETCore.DotNetHostResolver 1.1
 - Microsoft.NETCore.Windows.ApiSets 1.0.1
 - System.Diagnostics.FileVersionInfo 4.3
 - System.Diagnostics.StackTrace 4.3
 - System.Text.Encoding.CodePages 4.3
 - System.Xml.XPath.XDocument 4.3
 - System.Collections.NonGeneric 4.3
 - System.Collections.Specialized 4.3
 - System.ComponentModel.Primitives 4.3
 - Microsoft.CodeAnalysis.Analyzers 1.1
 - Microsoft.NETCore.DotNetHost 1.1
 - System.Xml.XPath 4.3
Locked version resolution written to /tmp/sample/paket.lock
Dependencies files saved to /tmp/sample/paket.dependencies
 - 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/sample.fsproj
Garbage collecting /tmp/sample/packages/runtime.debian.8-x64.runtime.native.System.Security.Cryptography
Garbage collecting /tmp/sample/packages/runtime.fedora.23-x64.runtime.native.System.Security.Cryptography
Garbage collecting /tmp/sample/packages/runtime.fedora.24-x64.runtime.native.System.Security.Cryptography
Garbage collecting /tmp/sample/packages/runtime.native.System.Security.Cryptography
Garbage collecting /tmp/sample/packages/runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography
Garbage collecting /tmp/sample/packages/runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography
Garbage collecting /tmp/sample/packages/runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography
Garbage collecting /tmp/sample/packages/runtime.rhel.7-x64.runtime.native.System.Security.Cryptography
Garbage collecting /tmp/sample/packages/runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography
Garbage collecting /tmp/sample/packages/runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography
Garbage collecting /tmp/sample/packages/runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography
Performance:
 - Resolver: 40 seconds (1 runs)
    - Runtime: 30 seconds
    - Blocked (retrieving package details): 7 seconds (44 times)
    - Blocked (retrieving package versions): 2 seconds (6 times)
    - Not Blocked (retrieving package details): 97 times
    - Not Blocked (retrieving package versions): 131 times
 - Disk IO: 1 second
 - Average Request Time: 532 milliseconds
 - Number of Requests: 149
 - Runtime: 51 seconds
dotnet fable yarn-start
Error: assembly specified in the dependencies manifest was not found -- package: 'System.Diagnostics.TraceSource', version: '4.0.0', path: 'runtimes/unix/lib/netstandard1.3/System.Diagnostics.TraceSource.dll'
mono ../.paket/paket.exe add System.Diagnostics.TraceSource -V 4.0.0
Paket version 5.6.12
Adding System.Diagnostics.TraceSource 4.0.0 to /tmp/sample/paket.dependencies into group Main
Resolving packages for group Main:
 - FSharp.Compiler.Service 13.0.0
 - System.Diagnostics.DiagnosticSource 4.3.0
 - System.Diagnostics.TraceSource 4.0.0
 - dotnet-fable 1.1.9
 - Fable.Core 1.1.7
 - Fable.Import.Browser 0.1
 - FSharp.Core 4.2.1
 - System.Xml.XDocument 4.3
 - runtime.native.System 4.3
 - runtime.native.System.IO.Compression 4.3
 - System.Buffers 4.3
 - System.Collections 4.3
 - System.Diagnostics.Debug 4.3
 - System.Diagnostics.Tracing 4.3
 - System.Globalization 4.3
 - System.IO 4.3
 - System.IO.Compression 4.3
 - System.Linq 4.3
 - System.Reflection 4.3
 - System.Reflection.Emit 4.3
 - System.Reflection.Extensions 4.3
 - System.Reflection.Primitives 4.3
 - System.Reflection.TypeExtensions 4.3
 - System.Resources.ResourceManager 4.3
 - System.Runtime 4.3
 - System.Runtime.Extensions 4.3
 - System.Runtime.Handles 4.3
 - System.Runtime.InteropServices 4.3
 - System.Security.Cryptography.Algorithms 4.3
 - System.Text.Encoding 4.3
 - System.Text.Encoding.Extensions 4.3
 - System.Threading 4.3
 - System.Threading.Tasks 4.3
 - System.Diagnostics.Process 4.3
 - System.Linq.Expressions 4.3
 - System.Text.RegularExpressions 4.3
 - System.Net.Requests 4.3
 - System.Threading.ThreadPool 4.3
 - System.Diagnostics.Tools 4.3
 - System.Linq.Queryable 4.3
 - System.Runtime.Numerics 4.3
 - System.Threading.Tasks.Parallel 4.3
 - System.Threading.Timer 4.3
 - System.Runtime.Loader 4.3
 - System.Console 4.3
 - System.Threading.Thread 4.3
 - NETStandard.Library 1.6.1
 - System.Reflection.Metadata 1.4.2
 - System.Collections.Immutable 1.3.1
 - Microsoft.DiaSymReader.PortablePdb 1.2
 - Fable.Compiler 1.1.9
 - Microsoft.DiaSymReader 1.1
 - Microsoft.NETCore.Platforms 1.1
 - Microsoft.NETCore.Targets 1.1
 - Microsoft.NETCore.App 1.1.1
 - Microsoft.VisualBasic 10.1
 - Newtonsoft.Json 10.0.3
 - System.Threading.Tasks.Dataflow 4.7
 - System.ValueTuple 4.3.1
 - Microsoft.CSharp 4.3
 - System.ComponentModel 4.3
 - System.ComponentModel.Annotations 4.3
 - System.Dynamic.Runtime 4.3
 - System.Globalization.Extensions 4.3
 - System.IO.FileSystem.Watcher 4.3
 - System.IO.MemoryMappedFiles 4.3
 - System.IO.UnmanagedMemoryStream 4.3
 - System.Linq.Parallel 4.3
 - System.Net.NameResolution 4.3
 - System.Net.Security 4.3.1
 - System.Net.WebHeaderCollection 4.3
 - System.Numerics.Vectors 4.3
 - System.Reflection.DispatchProxy 4.3
 - System.Resources.Reader 4.3
 - System.Security.Cryptography.Encoding 4.3
 - System.Security.Cryptography.Primitives 4.3
 - System.Security.Cryptography.X509Certificates 4.3
 - System.Threading.Tasks.Extensions 4.3
 - Microsoft.Win32.Primitives 4.3
 - System.AppContext 4.3
 - System.Collections.Concurrent 4.3
 - System.Globalization.Calendars 4.3
 - System.IO.Compression.ZipFile 4.3
 - System.IO.FileSystem 4.3
 - System.IO.FileSystem.Primitives 4.3
 - System.Net.Http 4.3.2
 - System.Net.Primitives 4.3
 - System.Net.Sockets 4.3
 - System.ObjectModel 4.3
 - System.Runtime.InteropServices.RuntimeInformation 4.3
 - System.Xml.ReaderWriter 4.3
 - Microsoft.Win32.Registry 4.3
 - System.Reflection.Emit.ILGeneration 4.3
 - System.Reflection.Emit.Lightweight 4.3
 - runtime.native.System.Security.Cryptography.Apple 4.3
 - runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - Libuv 1.9.2
 - Microsoft.DiaSymReader.Native 1.5
 - Microsoft.CodeAnalysis.CSharp 2.2
 - Microsoft.CodeAnalysis.VisualBasic 2.2
 - Microsoft.NETCore.Runtime.CoreCLR 1.1.2
 - Microsoft.NETCore.DotNetHostPolicy 1.1.2
 - Microsoft.CodeAnalysis.Common 2.2.0
 - runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - System.ComponentModel.TypeConverter 4.3
 - System.Runtime.Serialization.Formatters 4.3
 - System.Runtime.Serialization.Primitives 4.3
 - System.Xml.XmlDocument 4.3
 - runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple 4.3
 - System.Threading.Overlapped 4.3
 - runtime.native.System.Net.Http 4.3
 - System.Security.Cryptography.OpenSsl 4.3
 - System.Security.Principal.Windows 4.3
 - runtime.native.System.Net.Security 4.3
 - System.Security.Claims 4.3
 - System.Security.Principal 4.3
 - System.Security.Cryptography.Cng 4.3
 - System.Security.Cryptography.Csp 4.3
 - Microsoft.NETCore.Jit 1.1.2
 - Microsoft.NETCore.DotNetHostResolver 1.1
 - Microsoft.NETCore.Windows.ApiSets 1.0.1
 - System.Diagnostics.FileVersionInfo 4.3
 - System.Diagnostics.StackTrace 4.3
 - System.Text.Encoding.CodePages 4.3
 - System.Xml.XPath.XDocument 4.3
 - System.Collections.NonGeneric 4.3
 - System.Collections.Specialized 4.3
 - System.ComponentModel.Primitives 4.3
 - Microsoft.CodeAnalysis.Analyzers 1.1
 - Microsoft.NETCore.DotNetHost 1.1
 - System.Xml.XPath 4.3
Locked version resolution written to /tmp/sample/paket.lock
Dependencies files saved to /tmp/sample/paket.dependencies
 - 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/sample.fsproj
Performance:
 - Resolver: 42 seconds (1 runs)
    - Runtime: 33 seconds
    - Blocked (retrieving package details): 6 seconds (54 times)
    - Blocked (retrieving package versions): 1 second (5 times)
    - Not Blocked (retrieving package details): 86 times
    - Not Blocked (retrieving package versions): 131 times
 - Disk IO: 345 milliseconds
 - Average Request Time: 503 milliseconds
 - Number of Requests: 144
 - Runtime: 49 seconds
dotnet fable yarn-start
Error: assembly specified in the dependencies manifest was not found -- package: 'System.Net.Http', version: '4.3.0', path: 'runtimes/unix/lib/netstandard1.6/System.Net.Http.dll'
mono ../.paket/paket.exe add System.Net.Http -V 4.3.0
Paket version 5.6.12
Adding System.Net.Http 4.3.0 to /tmp/sample/paket.dependencies into group Main
Resolving packages for group Main:
 - FSharp.Compiler.Service 13.0.0
 - System.Diagnostics.DiagnosticSource 4.3.0
 - System.Net.Http 4.3.0
 - System.Diagnostics.TraceSource 4.0.0
 - dotnet-fable 1.1.9
 - Fable.Core 1.1.7
 - Fable.Import.Browser 0.1
 - FSharp.Core 4.2.1
 - System.Xml.XDocument 4.3
 - runtime.native.System 4.3
 - runtime.native.System.IO.Compression 4.3
 - System.Buffers 4.3
 - System.Collections 4.3
 - System.Diagnostics.Debug 4.3
 - System.Diagnostics.Tracing 4.3
 - System.Globalization 4.3
 - System.IO 4.3
 - System.IO.Compression 4.3
 - System.Linq 4.3
 - System.Reflection 4.3
 - System.Reflection.Emit 4.3
 - System.Reflection.Extensions 4.3
 - System.Reflection.Primitives 4.3
 - System.Reflection.TypeExtensions 4.3
 - System.Resources.ResourceManager 4.3
 - System.Runtime 4.3
 - System.Runtime.Extensions 4.3
 - System.Runtime.Handles 4.3
 - System.Runtime.InteropServices 4.3
 - System.Security.Cryptography.Algorithms 4.3
 - System.Text.Encoding 4.3
 - System.Text.Encoding.Extensions 4.3
 - System.Threading 4.3
 - System.Threading.Tasks 4.3
 - Microsoft.Win32.Primitives 4.3
 - runtime.native.System.Net.Http 4.3
 - runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - System.Globalization.Extensions 4.3
 - System.IO.FileSystem 4.3
 - System.Net.Primitives 4.3
 - System.Runtime.WindowsRuntime 4.3.0
 - System.Security.Cryptography.Encoding 4.3
 - System.Security.Cryptography.OpenSsl 4.3
 - System.Security.Cryptography.Primitives 4.3
 - System.Security.Cryptography.X509Certificates 4.3
 - System.Diagnostics.Process 4.3
 - System.Linq.Expressions 4.3
 - System.Text.RegularExpressions 4.3
 - System.Net.Requests 4.3
 - System.Threading.ThreadPool 4.3
 - System.Diagnostics.Tools 4.3
 - System.Linq.Queryable 4.3
 - System.Runtime.Numerics 4.3
 - System.Threading.Tasks.Parallel 4.3
 - System.Threading.Timer 4.3
 - System.Runtime.Loader 4.3
 - System.Console 4.3
 - System.Threading.Thread 4.3
 - NETStandard.Library 1.6.1
 - System.Reflection.Metadata 1.4.2
 - System.Collections.Immutable 1.3.1
 - Microsoft.DiaSymReader.PortablePdb 1.2
 - Fable.Compiler 1.1.9
 - Microsoft.DiaSymReader 1.1
 - Microsoft.NETCore.Platforms 1.1
 - Microsoft.NETCore.Targets 1.1
 - Microsoft.NETCore.App 1.1.1
 - Microsoft.VisualBasic 10.1
 - Newtonsoft.Json 10.0.3
 - System.Threading.Tasks.Dataflow 4.7
 - System.ValueTuple 4.3.1
 - runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - Microsoft.CSharp 4.3
 - System.ComponentModel 4.3
 - System.ComponentModel.Annotations 4.3
 - System.Dynamic.Runtime 4.3
 - System.IO.FileSystem.Watcher 4.3
 - System.IO.MemoryMappedFiles 4.3
 - System.IO.UnmanagedMemoryStream 4.3
 - System.Linq.Parallel 4.3
 - System.Net.NameResolution 4.3
 - System.Net.Security 4.3.1
 - System.Net.WebHeaderCollection 4.3
 - System.Numerics.Vectors 4.3
 - System.Reflection.DispatchProxy 4.3
 - System.Resources.Reader 4.3
 - System.Threading.Tasks.Extensions 4.3
 - System.AppContext 4.3
 - System.Collections.Concurrent 4.3
 - System.Globalization.Calendars 4.3
 - System.IO.Compression.ZipFile 4.3
 - System.IO.FileSystem.Primitives 4.3
 - System.Net.Sockets 4.3
 - System.ObjectModel 4.3
 - System.Runtime.InteropServices.RuntimeInformation 4.3
 - System.Xml.ReaderWriter 4.3
 - Microsoft.Win32.Registry 4.3
 - System.Reflection.Emit.ILGeneration 4.3
 - System.Reflection.Emit.Lightweight 4.3
 - runtime.native.System.Security.Cryptography.Apple 4.3
 - System.Security.Cryptography.Cng 4.3
 - System.Security.Cryptography.Csp 4.3
 - Libuv 1.9.2
 - Microsoft.DiaSymReader.Native 1.5
 - Microsoft.CodeAnalysis.CSharp 2.2
 - Microsoft.CodeAnalysis.VisualBasic 2.2
 - Microsoft.NETCore.Runtime.CoreCLR 1.1.2
 - Microsoft.NETCore.DotNetHostPolicy 1.1.2
 - Microsoft.CodeAnalysis.Common 2.2.0
 - System.ComponentModel.TypeConverter 4.3
 - System.Runtime.Serialization.Formatters 4.3
 - System.Runtime.Serialization.Primitives 4.3
 - System.Xml.XmlDocument 4.3
 - runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple 4.3
 - System.Threading.Overlapped 4.3
 - System.Security.Principal.Windows 4.3
 - runtime.native.System.Net.Security 4.3
 - System.Security.Claims 4.3
 - System.Security.Principal 4.3
 - Microsoft.NETCore.Jit 1.1.2
 - Microsoft.NETCore.DotNetHostResolver 1.1
 - Microsoft.NETCore.Windows.ApiSets 1.0.1
 - System.Diagnostics.FileVersionInfo 4.3
 - System.Diagnostics.StackTrace 4.3
 - System.Text.Encoding.CodePages 4.3
 - System.Xml.XPath.XDocument 4.3
 - System.Collections.NonGeneric 4.3
 - System.Collections.Specialized 4.3
 - System.ComponentModel.Primitives 4.3
 - Microsoft.CodeAnalysis.Analyzers 1.1
 - Microsoft.NETCore.DotNetHost 1.1
 - System.Xml.XPath 4.3
Locked version resolution written to /tmp/sample/paket.lock
Dependencies files saved to /tmp/sample/paket.dependencies
 - 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/sample.fsproj
Performance:
 - Resolver: 45 seconds (1 runs)
    - Runtime: 35 seconds
    - Blocked (retrieving package details): 8 seconds (44 times)
    - Blocked (retrieving package versions): 2 seconds (5 times)
    - Not Blocked (retrieving package details): 97 times
    - Not Blocked (retrieving package versions): 131 times
 - Disk IO: 2 seconds
 - Average Request Time: 539 milliseconds
 - Number of Requests: 145
 - Runtime: 54 seconds
dotnet fable yarn-start
Error: assembly specified in the dependencies manifest was not found -- package: 'runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl', version: '4.3.0', path: 'runtimes/ubuntu.16.04-x64/native/System.Security.Cryptography.Native.OpenSsl.so'
mono ../.paket/paket.exe add runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl -V 4.3.0
Paket version 5.6.12
Adding runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0 to /tmp/sample/paket.dependencies into group Main
Resolving packages for group Main:
 - FSharp.Compiler.Service 13.0.0
 - runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0
 - System.Diagnostics.DiagnosticSource 4.3.0
 - System.Net.Http 4.3.0
 - System.Diagnostics.TraceSource 4.0.0
 - dotnet-fable 1.1.9
 - Fable.Core 1.1.7
 - Fable.Import.Browser 0.1
 - FSharp.Core 4.2.1
 - System.Xml.XDocument 4.3
 - runtime.native.System 4.3
 - runtime.native.System.IO.Compression 4.3
 - System.Buffers 4.3
 - System.Collections 4.3
 - System.Diagnostics.Debug 4.3
 - System.Diagnostics.Tracing 4.3
 - System.Globalization 4.3
 - System.IO 4.3
 - System.IO.Compression 4.3
 - System.Linq 4.3
 - System.Reflection 4.3
 - System.Reflection.Emit 4.3
 - System.Reflection.Extensions 4.3
 - System.Reflection.Primitives 4.3
 - System.Reflection.TypeExtensions 4.3
 - System.Resources.ResourceManager 4.3
 - System.Runtime 4.3
 - System.Runtime.Extensions 4.3
 - System.Runtime.Handles 4.3
 - System.Runtime.InteropServices 4.3
 - System.Security.Cryptography.Algorithms 4.3
 - System.Text.Encoding 4.3
 - System.Text.Encoding.Extensions 4.3
 - System.Threading 4.3
 - System.Threading.Tasks 4.3
 - Microsoft.Win32.Primitives 4.3
 - runtime.native.System.Net.Http 4.3
 - runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
   Incompatible dependency: runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl >= 4.3.1 conflicts with resolved version 4.3.0
   Incompatible dependency: runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl >= 4.3.1 conflicts with resolved version 4.3.0
 - runtime.native.System.Security.Cryptography.OpenSsl 4.3.0
 - System.Globalization.Extensions 4.3
 - System.IO.FileSystem 4.3
 - System.Net.Primitives 4.3
 - System.Runtime.WindowsRuntime 4.3
 - System.Security.Cryptography.Encoding 4.3
 - System.Security.Cryptography.OpenSsl 4.3
 - System.Security.Cryptography.Primitives 4.3
 - System.Security.Cryptography.X509Certificates 4.3
 - System.Diagnostics.Process 4.3
 - System.Linq.Expressions 4.3
 - System.Text.RegularExpressions 4.3
 - System.Net.Requests 4.3
 - System.Threading.ThreadPool 4.3
 - System.Diagnostics.Tools 4.3
 - System.Linq.Queryable 4.3
 - System.Runtime.Numerics 4.3
 - System.Threading.Tasks.Parallel 4.3
 - System.Threading.Timer 4.3
 - System.Runtime.Loader 4.3
 - System.Console 4.3
 - System.Threading.Thread 4.3
 - NETStandard.Library 1.6.1
 - System.Reflection.Metadata 1.4.2
 - System.Collections.Immutable 1.3.1
 - Microsoft.DiaSymReader.PortablePdb 1.2
 - Fable.Compiler 1.1.9
 - Microsoft.DiaSymReader 1.1
 - Microsoft.NETCore.Platforms 1.1
 - Microsoft.NETCore.Targets 1.1
 - Microsoft.NETCore.App 1.1.1
 - Microsoft.VisualBasic 10.1
 - Newtonsoft.Json 10.0.3
 - System.Threading.Tasks.Dataflow 4.7
 - System.ValueTuple 4.3.1
 - Microsoft.CSharp 4.3
 - System.ComponentModel 4.3
 - System.ComponentModel.Annotations 4.3
 - System.Dynamic.Runtime 4.3
 - System.IO.FileSystem.Watcher 4.3
 - System.IO.MemoryMappedFiles 4.3
 - System.IO.UnmanagedMemoryStream 4.3
 - System.Linq.Parallel 4.3
 - System.Net.NameResolution 4.3
 - System.Net.Security 4.3.1
 - System.Net.WebHeaderCollection 4.3
 - System.Numerics.Vectors 4.3
 - System.Reflection.DispatchProxy 4.3
 - System.Resources.Reader 4.3
 - System.Threading.Tasks.Extensions 4.3
 - System.AppContext 4.3
 - System.Collections.Concurrent 4.3
 - System.Globalization.Calendars 4.3
 - System.IO.Compression.ZipFile 4.3
 - System.IO.FileSystem.Primitives 4.3
 - System.Net.Sockets 4.3
 - System.ObjectModel 4.3
 - System.Runtime.InteropServices.RuntimeInformation 4.3
 - System.Xml.ReaderWriter 4.3
 - runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.1
 - Microsoft.Win32.Registry 4.3
 - System.Reflection.Emit.ILGeneration 4.3
 - System.Reflection.Emit.Lightweight 4.3
 - runtime.native.System.Security.Cryptography.Apple 4.3
 - System.Security.Cryptography.Cng 4.3
 - System.Security.Cryptography.Csp 4.3
 - Libuv 1.9.2
 - Microsoft.DiaSymReader.Native 1.5
 - Microsoft.CodeAnalysis.CSharp 2.2
 - Microsoft.CodeAnalysis.VisualBasic 2.2
 - Microsoft.NETCore.Runtime.CoreCLR 1.1.2
 - Microsoft.NETCore.DotNetHostPolicy 1.1.2
 - Microsoft.CodeAnalysis.Common 2.2.0
 - System.ComponentModel.TypeConverter 4.3
 - System.Runtime.Serialization.Formatters 4.3
 - System.Runtime.Serialization.Primitives 4.3
 - System.Xml.XmlDocument 4.3
 - runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple 4.3
 - System.Threading.Overlapped 4.3
 - System.Security.Principal.Windows 4.3
 - runtime.native.System.Net.Security 4.3
 - System.Security.Claims 4.3
 - System.Security.Principal 4.3
 - Microsoft.NETCore.Jit 1.1.2
 - Microsoft.NETCore.DotNetHostResolver 1.1
 - Microsoft.NETCore.Windows.ApiSets 1.0.1
 - System.Diagnostics.FileVersionInfo 4.3
 - System.Diagnostics.StackTrace 4.3
 - System.Text.Encoding.CodePages 4.3
 - System.Xml.XPath.XDocument 4.3
 - System.Collections.NonGeneric 4.3
 - System.Collections.Specialized 4.3
 - System.ComponentModel.Primitives 4.3
 - Microsoft.CodeAnalysis.Analyzers 1.1
 - Microsoft.NETCore.DotNetHost 1.1
 - System.Xml.XPath 4.3
Locked version resolution written to /tmp/sample/paket.lock
Dependencies files saved to /tmp/sample/paket.dependencies
 - 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/sample.fsproj
Performance:
 - Resolver: 46 seconds (1 runs)
    - Runtime: 36 seconds
    - Blocked (retrieving package details): 7 seconds (50 times)
    - Blocked (retrieving package versions): 2 seconds (5 times)
    - Not Blocked (retrieving package details): 92 times
    - Not Blocked (retrieving package versions): 130 times
 - Disk IO: 1 second
 - Average Request Time: 550 milliseconds
 - Number of Requests: 145
 - Runtime: 55 seconds
dotnet fable yarn-start
Fable daemon started on port 61225
CWD: /tmp/sample
yarn run start
yarn run v0.27.5
$ webpack-dev-server
Bundling for development...
Project is running at http://localhost:8080/
webpack output is served from /
Content not from webpack is served from /tmp/sample/public
Parsing ./sample.fsproj...
fable: Compiled src/sample.fsproj
fable: Compiled src/App.fs
Hash: 88b22cb9a1b6d411b2d6
Version: webpack 2.6.1
Time: 7650ms
        Asset    Size  Chunks                    Chunk Names
    bundle.js  316 kB       0  [emitted]  [big]  main
bundle.js.map  375 kB       0  [emitted]         main
chunk    {0} bundle.js, bundle.js.map (main) 302 kB [entry] [rendered]
   [35] ./src/sample.fsproj 25 bytes {0} [built]
   [36] (webpack)-dev-server/client?http://localhost:8080 5.78 kB {0} [built]
   [37] ./~/ansi-html/index.js 4.26 kB {0} [built]
   [38] ./~/ansi-regex/index.js 135 bytes {0} [built]
   [40] ./~/events/events.js 8.33 kB {0} [built]
   [41] ./src/App.fs 332 bytes {0} [built]
   [46] ./~/punycode/punycode.js 14.7 kB {0} [built]
   [52] ./~/sockjs-client/lib/entry.js 244 bytes {0} [built]
   [78] ./~/strip-ansi/index.js 161 bytes {0} [built]
   [79] ./~/url/url.js 23.3 kB {0} [built]
   [80] ./~/url/util.js 314 bytes {0} [built]
   [81] (webpack)-dev-server/client/overlay.js 3.73 kB {0} [built]
   [82] (webpack)-dev-server/client/socket.js 897 bytes {0} [built]
   [84] (webpack)/hot/emitter.js 77 bytes {0} [built]
   [85] multi (webpack)-dev-server/client?http://localhost:8080 ./src/sample.fsproj 40 bytes {0} [built]
     + 71 hidden modules
webpack: Compiled successfully.

Related information

node --version
v6.11.1

yarn --version
0.27.5

dotnet --version
2.0.0-preview1-005977

mono --version
Mono JIT compiler version 5.0.1.1 (2017-02/5077205 Thu May 25 09:16:53 UTC 2017)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
    TLS:           __thread
    SIGSEGV:       altstack
    Notifications: epoll
    Architecture:  amd64
    Disabled:      none
    Misc:          softdebug 
    LLVM:          supported, not enabled.
    GC:            sgen (concurrent by default)
alfonsogarciacaro commented 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.

zpodlovics commented 7 years ago

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
alfonsogarciacaro commented 7 years ago

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 😕

zpodlovics commented 7 years ago

Thanks @alfonsogarciacaro! It seems that the same issue still exists with preview2 (2.0.0-preview2-006497).

alfonsogarciacaro commented 7 years ago

This should have been fixed with dotnet SDK 2 (stable) and Fable 1.2. Please feel free to reopen if you still have problems :)