{"action":"created","issue":{"url":"https://api.github.com/repos/tpetricek/FsLab/issues/80","labels_url":"https://api.github.com/repos/tpetricek/FsLab/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/tpetricek/FsLab/issues/80/comments","events_url":"https://api.github.com/repos/tpetricek/FsLab/issues/80/events","html_url":"https://github.com/tpetricek/FsLab/issues/80","id":61789141,"number":80,"title":"FsLab.Runner in plain vanilla sample throws ugly compiler exception about FSharp.Core","user":{"login":"damageboy","id":125730,"avatar_url":"https://avatars.githubusercontent.com/u/125730?v=3","gravatar_id":"","url":"https://api.github.com/users/damageboy","html_url":"https://github.com/damageboy","followers_url":"https://api.github.com/users/damageboy/followers","following_url":"https://api.github.com/users/damageboy/following{/other_user}","gists_url":"https://api.github.com/users/damageboy/gists{/gist_id}","starred_url":"https://api.github.com/users/damageboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damageboy/subscriptions","organizations_url":"https://api.github.com/users/damageboy/orgs","repos_url":"https://api.github.com/users/damageboy/repos","events_url":"https://api.github.com/users/damageboy/events{/privacy}","received_events_url":"https://api.github.com/users/damageboy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-15T10:29:20Z","updated_at":"2015-03-16T11:56:34Z","closed_at":null,"body":"I've uploaded a sample fslab.runner wrapper that seems to throw a very weird exception:\r\n\r\n```\r\n$ ./fslabrunner_test.exe                                                                                                                                                            \r\n                                                                                                                                                                                    \r\nUnhandled Exception: System.Exception: Error creating evaluation session: StopProcessing                                                                                            \r\n  \"{Exception =                                                                                                                                                                     \r\n  Error                                                                                                                                                                             \r\n    ((3160,                                                                                                                                                                         \r\n      \"Problem reading assembly 'FSharp.Core, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a': Exception of type 'Microsoft.FSharp.Compiler.ErrorLogger+StopProcessing' was thrown.\"),                                                                                                                                                               \r\n     unknown (1,0--1,80) IsSynthetic=false);                                                                                                                                        \r\n Phase = Interactive;}\"                                                                                                                                                             \r\n   at Microsoft.FSharp.Compiler.Interactive.Shell.-ctor@2443-115.Invoke(String message) in C:\\GitHub\\fsharp\\FSharp.Compiler.Service\\src\\fsharp\\fsi\\fsi.fs:line 2443                 \r\n   at Microsoft.FSharp.Compiler.Interactive.Shell.FsiEvaluationSession..ctor(FsiEvaluationSessionHostConfig fsiConfig, String[] argv, TextReader inReader, TextWriter outWriter, TextWriter errorWriter, Boolean fsiCollectible) in C:\\GitHub\\fsharp\\FSharp.Compiler.Service\\src\\fsharp\\fsi\\fsi.fs:line 2443                                                            \r\n   at Microsoft.FSharp.Compiler.Interactive.Shell.FsiEvaluationSession.Create(FsiEvaluationSessionHostConfig fsiConfig, String[] argv, TextReader inReader, TextWriter outWriter, TextWriter errorWriter, FSharpOption`1 collectible) in C:\\GitHub\\fsharp\\FSharp.Compiler.Service\\src\\fsharp\\fsi\\fsi.fs:line 2703                                                       \r\n   at FSharp.Literate.FsiEvaluator..ctor(FSharpOption`1 options) in c:\\Tomas\\Public\\FSharp.Formatting\\src\\FSharp.Literate\\Evaluator.fs:line 117                                     \r\n   at FsLab.Formatters.createFsiEvaluator(String root, String output, String floatFormat) in c:\\Tomas\\Public\\FsLab\\src\\FsLab.Runner\\Formatters.fs:line 308                          \r\n   at FsLab.Runner.processScriptFiles(ProcessingContext ctx) in c:\\Tomas\\Public\\FsLab\\src\\FsLab.Runner\\Runner.fs:line 152                                                           \r\n   at FsLab.Journal.Process(FSharpOption`1 browse, FSharpOption`1 root, FSharpOption`1 outputKind, FSharpOption`1 templateLocation, FSharpOption`1 floatFormat) in c:\\Tomas\\Public\\FsLab\\src\\FsLab.Runner\\Main.fs:line 32                                                                                                                                               \r\n   at Program.main(String[] argv) in c:\\temp\\fslabrunner-test\\fslabrunner-test\\Program.fs:line 6                                                                                    \r\nSignal 67                                                                                                                                                                           \r\n```\r\n\r\nI've uploaded the sample project to here: https://github.com/damageboy/fslab-runner-weirdness\r\n\r\nCan someone advise?"},"comment":{"url":"https://api.github.com/repos/tpetricek/FsLab/issues/comments/81604369","html_url":"https://github.com/tpetricek/FsLab/issues/80#issuecomment-81604369","issue_url":"https://api.github.com/repos/tpetricek/FsLab/issues/80","id":81604369,"user":{"login":"damageboy","id":125730,"avatar_url":"https://avatars.githubusercontent.com/u/125730?v=3","gravatar_id":"","url":"https://api.github.com/users/damageboy","html_url":"https://github.com/damageboy","followers_url":"https://api.github.com/users/damageboy/followers","following_url":"https://api.github.com/users/damageboy/following{/other_user}","gists_url":"https://api.github.com/users/damageboy/gists{/gist_id}","starred_url":"https://api.github.com/users/damageboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damageboy/subscriptions","organizations_url":"https://api.github.com/users/damageboy/orgs","repos_url":"https://api.github.com/users/damageboy/repos","events_url":"https://api.github.com/users/damageboy/events{/privacy}","received_events_url":"https://api.github.com/users/damageboy/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T11:56:34Z","updated_at":"2015-03-16T11:56:34Z","body":"OK... I'm about to offer something a bit disgusting...\r\nSo please keep in mind that this is temporary until the build gods are nicer to us...\r\n\r\nWould it be OK (In your view) if the .nupkg would incorporate a .targets file (that will be automatically imported into the consuming project by NuGet, as customary) that forces a project using the FsLab.Runner NuGet package to add a reference to the settings DLL, and forces the FSharp.Core reference to become a `Private=False` reference?\r\n\r\nThis would mean that the amount of deviation between the FsLab VS Extension and installing FsLab via NuGet is minimized even more, and the template really becomes *almost* useless (i.e. it's nice sugar coating, but it stops being a \"critical\" component...)\r\n\r\nThis sort of .targets extension would even be \"better\" than the existing project template in the following way:\r\nToday, if I use your project template as a starting point, but later on, I add a FSharp.Core dependency, it *might* become `Private=True` reference. With the targets file, the `Private=False` would be set on each compilation, so that it would be impossible to much up the FSharp.Core thing...\r\n\r\nDid I manage to make myself clear?"}}