{"action":"created","issue":{"url":"https://api.github.com/repos/Krzysztof-Cieslak/Fornax/issues/5","repository_url":"https://api.github.com/repos/Krzysztof-Cieslak/Fornax","labels_url":"https://api.github.com/repos/Krzysztof-Cieslak/Fornax/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/Krzysztof-Cieslak/Fornax/issues/5/comments","events_url":"https://api.github.com/repos/Krzysztof-Cieslak/Fornax/issues/5/events","html_url":"https://github.com/Krzysztof-Cieslak/Fornax/issues/5","id":339825332,"node_id":"MDU6SXNzdWUzMzk4MjUzMzI=","number":5,"title":"Unable to run 'fornax build' or 'fornax watch' - seemingly due to error \"Could not locate the assembly \"FSharp.Core...\"","user":{"login":"drk-mtr","id":40315783,"node_id":"MDQ6VXNlcjQwMzE1Nzgz","avatar_url":"https://avatars0.githubusercontent.com/u/40315783?v=4","gravatar_id":"","url":"https://api.github.com/users/drk-mtr","html_url":"https://github.com/drk-mtr","followers_url":"https://api.github.com/users/drk-mtr/followers","following_url":"https://api.github.com/users/drk-mtr/following{/other_user}","gists_url":"https://api.github.com/users/drk-mtr/gists{/gist_id}","starred_url":"https://api.github.com/users/drk-mtr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drk-mtr/subscriptions","organizations_url":"https://api.github.com/users/drk-mtr/orgs","repos_url":"https://api.github.com/users/drk-mtr/repos","events_url":"https://api.github.com/users/drk-mtr/events{/privacy}","received_events_url":"https://api.github.com/users/drk-mtr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-10T12:43:28Z","updated_at":"2018-07-10T13:12:13Z","closed_at":null,"author_association":"NONE","body":"Firstly, huge thanks for sharing your software in the public domain - incredibly generous.\r\n\r\nUnfortunately I was unable to get this working on a Windows PC or a Mac. I suspect this may be due to it not being able to find the correct F# version, but I'm too new to coding to know whether this is actually the case.\r\n\r\nHere are the errors I get with a 'build':\r\n\r\n```\r\nC:\\Projects\\FornaxTrial\r\n> fornax build\r\nError: System.Exception: Error creating evaluation session: StopProcessingExn null\r\n   at Microsoft.FSharp.Compiler.Interactive.Shell.-ctor@2571-142.Invoke(String message)\r\n   at Microsoft.FSharp.Compiler.Interactive.Shell.FsiEvaluationSession..ctor(FsiEvaluationSessionHostConfig fsi, String[] argv, TextReader inReader, TextWriter outWriter, TextWriter errorWriter, Boolean fsiCollectible, Boolean msbuildEnabled)\r\n   at Microsoft.FSharp.Compiler.Interactive.Shell.FsiEvaluationSession.Create(FsiEvaluationSessionHostConfig fsiConfig, String[] argv, TextReader inReader, TextWriter outWriter, TextWriter errorWriter, FSharpOption`1 collectible, FSharpOption`1 msbuildEnabled)\r\n   at <StartupCode$Fornax>.$Generator..cctor()\r\nInner: <null>\r\nErrorStream:\r\n\r\nerror FS0082: Could not resolve this reference. Could not locate the assembly \"FSharp.Core, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. (Code=MSB3245)\r\n\r\n\r\nerror FS0073: internal error: BuildFrameworkTcImports: no resolution of 'FSharp.Core, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'\r\n\r\n\r\nUnhandled Exception: System.TypeInitializationException: The type initializer for '<StartupCode$Fornax>.$Generator' threw an exception. ---> System.Exception: Error creating evaluation session: StopProcessingExn null\r\n   at <StartupCode$Fornax>.$Generator..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at Generator.f@1(String n)\r\n   at Generator.getPosts(String projectRoot)\r\n   at Generator.generateFolder(String projectRoot)\r\n   at Fornax.main$cont@57(String[] argv, ArgumentParser`1 parser, Unit unitVar)\r\n   at Fornax.main(String[] argv)\r\n```\r\n\r\nThe error is essentially the same for a 'watch'.\r\n\r\nAs I say, this may well be me misunderstanding where F# should be installed (in which case I apologise for recording this as an issue with Fornax!), however I can successfully run F# code on both computers and can use FSI successfully from the command line.\r\n\r\nOn the Windows PC, I have the following folders on this PC which suggest F# is installed:\r\n\r\n`C:\\Program Files (x86)\\Microsoft SDKs\\F#\\4.1`\r\n`C:\\Program Files (x86)\\Microsoft SDKs\\F#\\10.1`\r\n\r\nUnder both of these there is a 'Framework\\v4.0' folder, the contents appear to be the same in each.\r\n\r\nWhen starting FSI on the PC I get:\r\n\r\n`Microsoft (R) F# Interactive version 4.1`\r\n\r\nI have various dotnet framework version installed (including 4.6.2 and 4.7) and plenty of dotnet core versions - please let me know if you need any further info in this respect."},"comment":{"url":"https://api.github.com/repos/Krzysztof-Cieslak/Fornax/issues/comments/403816714","html_url":"https://github.com/Krzysztof-Cieslak/Fornax/issues/5#issuecomment-403816714","issue_url":"https://api.github.com/repos/Krzysztof-Cieslak/Fornax/issues/5","id":403816714,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzgxNjcxNA==","user":{"login":"Krzysztof-Cieslak","id":5427083,"node_id":"MDQ6VXNlcjU0MjcwODM=","avatar_url":"https://avatars1.githubusercontent.com/u/5427083?v=4","gravatar_id":"","url":"https://api.github.com/users/Krzysztof-Cieslak","html_url":"https://github.com/Krzysztof-Cieslak","followers_url":"https://api.github.com/users/Krzysztof-Cieslak/followers","following_url":"https://api.github.com/users/Krzysztof-Cieslak/following{/other_user}","gists_url":"https://api.github.com/users/Krzysztof-Cieslak/gists{/gist_id}","starred_url":"https://api.github.com/users/Krzysztof-Cieslak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Krzysztof-Cieslak/subscriptions","organizations_url":"https://api.github.com/users/Krzysztof-Cieslak/orgs","repos_url":"https://api.github.com/users/Krzysztof-Cieslak/repos","events_url":"https://api.github.com/users/Krzysztof-Cieslak/events{/privacy}","received_events_url":"https://api.github.com/users/Krzysztof-Cieslak/received_events","type":"User","site_admin":false},"created_at":"2018-07-10T13:12:13Z","updated_at":"2018-07-10T13:12:13Z","author_association":"OWNER","body":"Probably updating `FSharp.Compiler.Services` that Fornax is using would solve this problem. Fornax hasn't been updated in a while, and FCS version is fairly outdated - and as such it may have outdated assumptions about F# installation path (for example - `C:\\Program Files (x86)\\Microsoft SDKs\\F#\\10.1` has been introduced in one of the recent VS 2017 updates)"}}
{"actor":{"display_login":"Krzysztof-Cieslak"}}