fsprojects / ProjectScaffold

A prototypical .NET solution (file system layout and tooling), recommended for F# projects
http://fsprojects.github.io/ProjectScaffold
The Unlicense
515 stars 154 forks source link

Stack Overflow on MacOs with initial setup. #307

Open paytonrules opened 6 years ago

paytonrules commented 6 years ago

Description

After cloning and running ./build.sh I get a stack overflow during the initial. The project scaffolding is unusable.

Repro steps

  1. Clone project scaffold
  2. Run .build.sh

Expected behavior

A series of questions so you can setup your project correctly, followed by a usable project.

Actual behavior

Stack overflow - stack trace here:

Erics-MacBook-Pro-4:Projects eric$ git clone https://github.com/fsprojects/ProjectScaffold.git OrgMode
Cloning into 'OrgMode'...
remote: Counting objects: 2839, done.
remote: Total 2839 (delta 0), reused 0 (delta 0), pack-reused 2839
Receiving objects: 100% (2839/2839), 1.80 MiB | 108.00 KiB/s, done.
Resolving deltas: 100% (1538/1538), done.
Erics-MacBook-Pro-4:Projects eric$ cd OrgMode/
Erics-MacBook-Pro-4:OrgMode eric$ ./build.sh
Checking Paket version (downloading latest stable)...
Copying version 5.81.1 from cache.
Done.
Paket version 5.81.1
Downloading fsharp/FAKE:ad65548e62c35ad64ad1f9db6f5768330bc06594 modules/Octokit/Octokit.fsx to /Users/eric/Projects/OrgMode/paket-files/build/fsharp/FAKE/modules/Octokit/Octokit.fsx
Downloading FAKE 4.61.3 (Build)
Performance:
 - Disk IO: 3 seconds
 - Average Download Time: 1 minute, 15 seconds
 - Number of downloads: 2
 - Average Request Time: 1 second
 - Number of Requests: 2
 - Runtime: 2 minutes, 36 seconds
Paket version 5.81.1
Downloading fsharp/FAKE:9b496581e49c116cff9911570df871eb0258ac83 modules/Octokit/Octokit.fsx to /Users/eric/Projects/OrgMode/paket-files/build/fsharp/FAKE/modules/Octokit/Octokit.fsx
Resolving packages for group Build:
 - Octokit 0.24.0
 - FAKE 4.62.5
 - FSharp.Formatting 2.14.4
 - Microsoft.Net.Http 2.2.29
 - FSharpVSPowerTools.Core 2.3.0
 - FSharp.Compiler.Service 2.0.0.6
 - Microsoft.Bcl 1.1.10
 - Microsoft.Bcl.Build 1.0.21
Resolving packages for group Main:
 - FSharp.Core 4.0.0.1
Resolving packages for group Test:
 - NUnit 2.6.4
 - NUnit.Runners 2.6.4
Locked version resolution written to /Users/eric/Projects/OrgMode/paket.lock
Installing into projects:
 - Creating model and downloading packages.
Downloading FAKE 4.62.5 (Build)
The profile 'portable-net40+win8+wp71+wpa81+sl4' is not a known profile. Please tell the package author.
The profile 'portable-net40+win8+wp8+wpa81+sl4' is not a known profile. Please tell the package author.
The profile 'portable-net45+monoandroid+monotouch+xamarinios' is not a known profile. Please tell the package author.
 - src/FSharp.ProjectTemplate/paket.references -> src/FSharp.ProjectTemplate/FSharp.ProjectTemplate.fsproj
 - tests/FSharp.ProjectTemplate.Tests/paket.references -> tests/FSharp.ProjectTemplate.Tests/FSharp.ProjectTemplate.Tests.fsproj
Performance:
 - Resolver: 4 seconds (3 runs)
    - Runtime: 284 milliseconds
    - Blocked (retrieving package details): 2 seconds (7 times)
    - Blocked (retrieving package versions): 2 seconds (4 times)
    - Not Blocked (retrieving package versions): 6 times
    - Not Blocked (retrieving package details): 4 times
 - Disk IO: 2 seconds
 - Average Download Time: 54 seconds
 - Number of downloads: 2
 - Average Request Time: 433 milliseconds
 - Number of Requests: 46
 - Runtime: 2 minutes, 1 second
Stack overflow in unmanaged: IP: 0x7fff8f21d64c, fault addr: 0x7fff53d69f98
Stack overflow in unmanaged: IP: 0x7fff8f21d64c, fault addr: 0x7fff53d67fc8
Stack overflow in unmanaged: IP: 0x7fff8f21e6c4, fault addr: 0x7fff53d66ff8
Stack overflow in unmanaged: IP: 0x7fff8f21e6c0, fault addr: 0x7fff53d65ff8
Stack overflow in unmanaged: IP: 0x7fff8f21d64c, fault addr: 0x7fff53d64fc8
Stack overflow in unmanaged: IP: 0x7fff8f21d64c, fault addr: 0x7fff53d63fb8
Stack overflow in unmanaged: IP: 0x7fff8f21d64c, fault addr: 0x7fff53d62ff8
Stack overflow: IP: 0x7fff8f21d64c, fault addr: 0x7fff53d60fa8
Stacktrace:
  at <unknown> <0xffffffff>
  at System.Reflection.Emit.TypeBuilder.CreateTypeInfo () [0x00316] in <400071ddcfe64ed8a3531490bb763536>:0
  <...>
  at System.Reflection.Emit.TypeBuilder.CreateType () [0x00000] in <400071ddcfe64ed8a3531490bb763536>:0
  at Microsoft.FSharp.Compiler.AbstractIL.ILRuntimeWriter.traverseTypeRef@1910 (System.Collections.Generic.Dictionary`2<Microsoft.FSharp.Compiler.AbstractIL.IL/ILTypeRef, int>,System.Collections.Generic.Dictionary`2<Microsoft.FSharp.Compiler.AbstractIL.IL/ILTypeRef, bool>,Microsoft.FSharp.Compiler.AbstractIL.ILRuntimeWriter/emEnv,int,Microsoft.FSharp.Compiler.AbstractIL.IL/ILTypeRef) [0x000b7] in <58ebd1c7ddab8ea7a7450383c7d1eb58>:0
  at Microsoft.FSharp.Compiler.AbstractIL.ILRuntimeWriter.createTypeRef (System.Collections.Generic.Dictionary`2<Microsoft.FSharp.Compiler.AbstractIL.IL/ILTypeRef, int>,System.Collections.Generic.Dictionary`2<Microsoft.FSharp.Compiler.AbstractIL.IL/ILTypeRef, bool>,Microsoft.FSharp.Compiler.AbstractIL.ILRuntimeWriter/emEnv,Microsoft.FSharp.Compiler.AbstractIL.IL/ILTypeRef) [0x00007] in <58ebd1c7ddab8ea7a7450383c7d1eb58>:0
  at Microsoft.FSharp.Compiler.AbstractIL.ILRuntimeWriter.buildTypeDefPass4 (System.Collections.Generic.Dictionary`2<Microsoft.FSharp.Compiler.AbstractIL.IL/ILTypeRef, int>,System.Collections.Generic.Dictionary`2<Microsoft.FSharp.Compiler.AbstractIL.IL/ILTypeRef, bool>,Microsoft.FSharp.Collections.FSharpList`1<Microsoft.FSharp.Compiler.AbstractIL.IL/ILTypeDef>,Microsoft.FSharp.Compiler.AbstractIL.ILRuntimeWriter/emEnv,Microsoft.FSharp.Compiler.AbstractIL.IL/ILTypeDef) [0x0000f] in <58ebd1c7ddab8ea7a7450383c7d1eb58>:0
  at Microsoft.FSharp.Compiler.AbstractIL.ILRuntimeWriter/buildModuleFragment@1987-1.Invoke (Microsoft.FSharp.Compiler.AbstractIL.IL/ILTypeDef) [0x00012] in <58ebd1c7ddab8ea7a7450383c7d1eb58>:0
  at Microsoft.FSharp.Primitives.Basics.List.iter<T_REF> (Microsoft.FSharp.Core.FSharpFunc`2<T_REF, Microsoft.FSharp.Core.Unit>,Microsoft.FSharp.Collections.FSharpList`1<T_REF>) [0x00019] in <5893d081904cf4daa745038381d09358>:0
  at Microsoft.FSharp.Collections.ListModule.Iterate<T_REF> (Microsoft.FSharp.Core.FSharpFunc`2<T_REF, Microsoft.FSharp.Core.Unit>,Microsoft.FSharp.Collections.FSharpList`1<T_REF>) [0x00001] in <5893d081904cf4daa745038381d09358>:0
  at Microsoft.FSharp.Compiler.AbstractIL.ILRuntimeWriter.buildModuleFragment (Microsoft.FSharp.Compiler.AbstractIL.ILRuntimeWriter/cenv,Microsoft.FSharp.Compiler.AbstractIL.ILRuntimeWriter/emEnv,System.Reflection.Emit.AssemblyBuilder,System.Reflection.Emit.ModuleBuilder,Microsoft.FSharp.Compiler.AbstractIL.IL/ILModuleDef) [0x000ea] in <58ebd1c7ddab8ea7a7450383c7d1eb58>:0
  at Microsoft.FSharp.Compiler.AbstractIL.ILRuntimeWriter.emitModuleFragment (Microsoft.FSharp.Compiler.AbstractIL.IL/ILGlobals,Microsoft.FSharp.Compiler.AbstractIL.ILRuntimeWriter/emEnv,System.Reflection.Emit.AssemblyBuilder,System.Reflection.Emit.ModuleBuilder,Microsoft.FSharp.Compiler.AbstractIL.IL/ILModuleDef,bool,Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Compiler.AbstractIL.IL/ILAssemblyRef, Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Core.FSharpChoice`2<string, System.Reflection.Assembly>>>,Microsoft.FSharp.Core.FSharpFunc`2<string, Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Compiler.AbstractIL.IL/ILTypeRef>>) [0x0000e] in <58ebd1c7ddab8ea7a7450383c7d1eb58>:0
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompiler.ProcessInputs (Microsoft.FSharp.Compiler.AbstractIL.Internal.Library/CompilationThreadToken,Microsoft.FSharp.Compiler.ErrorLogger/ErrorLogger,Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState,Microsoft.FSharp.Collections.FSharpList`1<Microsoft.FSharp.Compiler.Ast/ParsedInput>,bool,bool,bool,Microsoft.FSharp.Collections.FSharpList`1<Microsoft.FSharp.Compiler.Ast/Ident>) [0x00207] in <58ebd1c7ddab8ea7a7450383c7d1eb58>:0
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompiler.EvalParsedSourceFiles (Microsoft.FSharp.Compiler.AbstractIL.Internal.Library/CompilationThreadToken,Microsoft.FSharp.Compiler.ErrorLogger/ErrorLogger,Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState,Microsoft.FSharp.Collections.FSharpList`1<Microsoft.FSharp.Compiler.Ast/ParsedInput>) [0x0001e] in <58ebd1c7ddab8ea7a7450383c7d1eb58>:0
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompiler.EvalSourceFiles (Microsoft.FSharp.Compiler.AbstractIL.Internal.Library/CompilationThreadToken,Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState,Microsoft.FSharp.Compiler.Range/range,Microsoft.FSharp.Collections.FSharpList`1<string>,Microsoft.FSharp.Compiler.Lexhelp/LexResourceManager,Microsoft.FSharp.Compiler.ErrorLogger/ErrorLogger) [0x00144] in <58ebd1c7ddab8ea7a7450383c7d1eb58>:0
  at Microsoft.FSharp.Compiler.Interactive.Shell/clo@1903-294.Invoke (Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState) [0x0004c] in <58ebd1c7ddab8ea7a7450383c7d1eb58>:0
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionProcessor.InteractiveCatch<b_REF> (Microsoft.FSharp.Compiler.ErrorLogger/ErrorLogger,Microsoft.FSharp.Core.FSharpFunc`2<b_REF, System.Tuple`2<b_REF, Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionStepStatus>>,b_REF) [0x00018] in <58ebd1c7ddab8ea7a7450383c7d1eb58>:0
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionProcessor.ExecInteraction (Microsoft.FSharp.Compiler.AbstractIL.Internal.Library/CompilationThreadToken,Microsoft.FSharp.Compiler.CompileOps/TcConfig,Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState,Microsoft.FSharp.Compiler.Ast/ParsedFsiInteraction,Microsoft.FSharp.Compiler.ErrorLogger/ErrorLogger) [0x00010] in <58ebd1c7ddab8ea7a7450383c7d1eb58>:0
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionProcessor.execParsedInteractions (Microsoft.FSharp.Compiler.AbstractIL.Internal.Library/CompilationThreadToken,Microsoft.FSharp.Compiler.CompileOps/TcConfig,Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState,Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Compiler.Ast/ParsedFsiInteraction>,Microsoft.FSharp.Compiler.ErrorLogger/ErrorLogger,Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionStepStatus>) [0x002a4] in <58ebd1c7ddab8ea7a7450383c7d1eb58>:0
  at Microsoft.FSharp.Compiler.Interactive.Shell/clo@2084-297.Invoke (Microsoft.FSharp.Compiler.AbstractIL.Internal.Library/CompilationThreadToken,Microsoft.FSharp.Compiler.CompileOps/TcConfig,Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState) [0x00003] in <58ebd1c7ddab8ea7a7450383c7d1eb58>:0
  at Microsoft.FSharp.Core.FSharpFunc`2<T_REF, TResult_REF>.InvokeFast<V_REF, W_REF> (Microsoft.FSharp.Core.FSharpFunc`2<T_REF, Microsoft.FSharp.Core.FSharpFunc`2<TResult_REF, Microsoft.FSharp.Core.FSharpFunc`2<V_REF, W_REF>>>,T_REF,TResult_REF,V_REF) [0x0000d] in <5893d081904cf4daa745038381d09358>:0
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionProcessor.mainThreadProcessAction<a_REF, b_REF> (a_REF,Microsoft.FSharp.Core.FSharpFunc`2<a_REF, Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Compiler.CompileOps/TcConfig, Microsoft.FSharp.Core.FSharpFunc`2<b_REF, System.Tuple`2<b_REF, Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionStepStatus>>>>,b_REF) [0x0004a] in <58ebd1c7ddab8ea7a7450383c7d1eb58>:0
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionProcessor.mainThreadProcessParsedInteractions (Microsoft.FSharp.Compiler.AbstractIL.Internal.Library/CompilationThreadToken,Microsoft.FSharp.Compiler.ErrorLogger/ErrorLogger,Microsoft.FSharp.Core.FSharpOption`1<Microsoft.FSharp.Compiler.Ast/ParsedFsiInteraction>,Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState) [0x0000b] in <58ebd1c7ddab8ea7a7450383c7d1eb58>:0
  at Microsoft.FSharp.Compiler.Interactive.Shell/EvalInteraction@2227.Invoke (Microsoft.FSharp.Compiler.Interactive.Shell/FsiDynamicCompilerState) [0x00013] in <58ebd1c7ddab8ea7a7450383c7d1eb58>:0
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionProcessor.InteractiveCatch<b_REF> (Microsoft.FSharp.Compiler.ErrorLogger/ErrorLogger,Microsoft.FSharp.Core.FSharpFunc`2<b_REF, System.Tuple`2<b_REF, Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionStepStatus>>,b_REF) [0x00018] in <58ebd1c7ddab8ea7a7450383c7d1eb58>:0
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionProcessor.EvalInteraction (Microsoft.FSharp.Compiler.AbstractIL.Internal.Library/CompilationThreadToken,string,string,Microsoft.FSharp.Compiler.ErrorLogger/ErrorLogger) [0x00058] in <58ebd1c7ddab8ea7a7450383c7d1eb58>:0
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiInteractionProcessor.EvalScript (Microsoft.FSharp.Compiler.AbstractIL.Internal.Library/CompilationThreadToken,string,Microsoft.FSharp.Compiler.ErrorLogger/ErrorLogger) [0x0001c] in <58ebd1c7ddab8ea7a7450383c7d1eb58>:0
  at Microsoft.FSharp.Compiler.Interactive.Shell/FsiEvaluationSession.EvalScript (string) [0x00003] in <58ebd1c7ddab8ea7a7450383c7d1eb58>:0
  at Yaaf.FSharp.Scripting.Helper/evalScript@1303.Invoke (string) [0x00001] in <5969d85fccf1c534a74503835fd86959>:0
  at Yaaf.FSharp.Scripting.Helper/saveScript@1295-1<a_REF>.Invoke (string) [0x00033] in <5969d85fccf1c534a74503835fd86959>:0
  at Yaaf.FSharp.Scripting.Helper/save_@1276-2<a_REF>.Invoke (Microsoft.FSharp.Core.Unit) [0x00001] in <5969d85fccf1c534a74503835fd86959>:0
  at Yaaf.FSharp.Scripting.Helper.consoleCapture<a_REF> (System.IO.TextWriter,System.IO.TextWriter,Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Core.Unit, a_REF>) [0x0001a] in <5969d85fccf1c534a74503835fd86959>:0
  at Yaaf.FSharp.Scripting.Helper.redirectOut@1247<a_REF> (bool,Yaaf.FSharp.Scripting.Helper/OutStreamHelper,Yaaf.FSharp.Scripting.Helper/OutStreamHelper,Microsoft.FSharp.Core.FSharpFunc`2<Microsoft.FSharp.Core.Unit, a_REF>) [0x0006e] in <5969d85fccf1c534a74503835fd86959>:0
  at Yaaf.FSharp.Scripting.Helper/save_@1275-1<a_REF>.Invoke (string) [0x0002c] in <5969d85fccf1c534a74503835fd86959>:0
  at Yaaf.FSharp.Scripting.Helper/session@1306.Yaaf-FSharp-Scripting-IFsiSession-EvalScriptWithOutput (string) [0x00001] in <5969d85fccf1c534a74503835fd86959>:0
  at Fake.FSIHelper.runScriptUncached (bool,string,System.Collections.Generic.IEnumerable`1<string>,bool,Fake.FSIHelper/CacheInfo,System.IO.TextWriter,System.IO.TextWriter) [0x00187] in <5969d85fccf1c534a74503835fd86959>:0
  at Fake.FSIHelper.runFAKEScriptWithFsiArgsAndRedirectMessages (bool,Fake.FSIHelper/FsiArgs,System.Collections.Generic.IEnumerable`1<System.Tuple`2<string, string>>,Microsoft.FSharp.Core.FSharpFunc`2<string, Microsoft.FSharp.Core.Unit>,Microsoft.FSharp.Core.FSharpFunc`2<string, Microsoft.FSharp.Core.Unit>,bool) [0x0015e] in <5969d85fccf1c534a74503835fd86959>:0
  at Fake.FSIHelper.runBuildScriptWithFsiArgsAt (bool,Fake.FSIHelper/FsiArgs,System.Collections.Generic.IEnumerable`1<System.Tuple`2<string, string>>,bool) [0x0002c] in <5969d85fccf1c534a74503835fd86959>:0
  at Program/clo@76-1.Invoke (Microsoft.FSharp.Core.Unit) [0x00320] in <5969d86cf91bc6c0a74503836cd86959>:0
  at <StartupCode$FAKE>.$Program.main@ () [0x00407] in <5969d86cf91bc6c0a74503836cd86959>:0
  at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) [0x0004c] in <400071ddcfe64ed8a3531490bb763536>:0

Known workarounds

None

Related information

paytonrules commented 6 years ago

Workaround:

I got past this by updating my mono installation via homebrew. This means I'm now using the homebrew one and not the one installed by Visual Studio for Mac. Interestingly this is an older version.

Mono JIT compiler version 5.2.0.104 (2017-04/4a0006f Wed May 10 05:06:51 EDT 2017) Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com TLS: normal SIGSEGV: altstack Notification: kqueue Architecture: amd64 Disabled: none Misc: softdebug LLVM: yes(3.6.0svn-mono-master/8b1520c) GC: sgen (concurrent by default)

sergey-tihon commented 6 years ago

Latest released Mono is 5.0.1.1

Mono JIT compiler version 5.0.1.1 (2017-02/5077205 Thu May 18 16:11:37 EDT 2017)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
    TLS:           normal
    SIGSEGV:       altstack
    Notification:  kqueue
    Architecture:  x86
    Disabled:      none
    Misc:          softdebug
    LLVM:          yes(3.6.0svn-mono-master/8b1520c)
    GC:            sgen (concurrent by default)

and FAKE works fine with this version