{"action":"created","issue":{"url":"https://api.github.com/repos/fable-compiler/fable-suave-scaffold/issues/148","repository_url":"https://api.github.com/repos/fable-compiler/fable-suave-scaffold","labels_url":"https://api.github.com/repos/fable-compiler/fable-suave-scaffold/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/fable-compiler/fable-suave-scaffold/issues/148/comments","events_url":"https://api.github.com/repos/fable-compiler/fable-suave-scaffold/issues/148/events","html_url":"https://github.com/fable-compiler/fable-suave-scaffold/issues/148","id":253213164,"number":148,"title":"Build fails when running unit tests","user":{"login":"rookboom","id":1814791,"avatar_url":"https://avatars0.githubusercontent.com/u/1814791?v=4","gravatar_id":"","url":"https://api.github.com/users/rookboom","html_url":"https://github.com/rookboom","followers_url":"https://api.github.com/users/rookboom/followers","following_url":"https://api.github.com/users/rookboom/following{/other_user}","gists_url":"https://api.github.com/users/rookboom/gists{/gist_id}","starred_url":"https://api.github.com/users/rookboom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rookboom/subscriptions","organizations_url":"https://api.github.com/users/rookboom/orgs","repos_url":"https://api.github.com/users/rookboom/repos","events_url":"https://api.github.com/users/rookboom/events{/privacy}","received_events_url":"https://api.github.com/users/rookboom/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":26,"created_at":"2017-08-28T02:45:32Z","updated_at":"2017-08-30T07:20:13Z","closed_at":"2017-08-30T06:45:07Z","author_association":"NONE","body":"### Description\r\n\r\nWhen running build.cmd I get an error stating:\r\n\"d:\\repos2\\fable-suave-scaffold\\test\\ServerTests\\Tests.fs(3,6): error FS0039: The namespace or module 'Expecto' is not defined.\"\r\n\r\nFrom looking at the fsproj file, I cannot see where it is referenced.\r\n\r\n### Repro steps\r\n\r\n1. Step A\r\ngit clone \r\n\r\n2. Step B\r\nrun build.cmd from Command window.\r\n\r\n### Expected behavior\r\n\r\nI expected the build to pass without errors\r\n\r\n### Actual behavior\r\n\r\nThere are test errors. Packages seems to be missing, although they are downloaded to packages\\test\\Expecto\r\n\r\n### Known workarounds\r\nNone that I know of. I'm new to .Net core so I have no idea how to fix this.\r\n\r\n### Related information \r\n\r\n* Operating system - Windows 10\r\n* Branch - master\r\n* .NET Runtime, CoreCLR or Mono Version\r\n.NET Core 2.0\r\n* Performance information, links to performance testing scripts\r\n\r\nHere is a more detailed screen dump:\r\n//================================================================\r\nStarting Target: BuildServerTests (==> BuildClient)\r\ndotnet build\r\nMicrosoft (R) Build Engine version 15.3.409.57025 for .NET Core\r\nCopyright (C) Microsoft Corporation. All rights reserved.\r\n\r\n  Server -> d:\\repos2\\fable-suave-scaffold\\src\\Server\\bin\\Debug\\netcoreapp2.0\\Server.dll\r\n\r\nBuild succeeded.\r\n    0 Warning(s)\r\n    0 Error(s)\r\n\r\nTime Elapsed 00:00:01.10\r\nFinished Target: BuildServerTests\r\nStarting Target: RunServerTests (==> BuildServerTests)\r\ndotnet run\r\nd:\\repos2\\fable-suave-scaffold\\test\\ServerTests\\Tests.fs(3,6): error FS0039: The namespace or module 'Expecto' is not defined. [d:\\repos2\\fable-suave-scaffold\\test\\ServerTests\\ServerTests.fsproj]\r\nd:\\repos2\\fable-suave-scaffold\\test\\ServerTests\\Tests.fs(7,3): error FS0039: The value or constructor 'testList' is not defined. Maybe you want one of the following:\u001D   WishList [d:\\repos2\\fable-suave-scaffold\\test\\ServerTests\\ServerTests.fsproj]\r\nd:\\repos2\\fable-suave-scaffold\\test\\ServerTests\\Program.fs(3,6): error FS0039: The namespace or module 'Expecto' is not defined. [d:\\repos2\\fable-suave-scaffold\\test\\ServerTests\\ServerTests.fsproj]\r\nd:\\repos2\\fable-suave-scaffold\\test\\ServerTests\\Program.fs(7,9): error FS0039: The value or constructor 'runTestsWithArgs' is not defined. [d:\\repos2\\fable-suave-scaffold\\test\\ServerTests\\ServerTests.fsproj]\r\n\r\nThe build failed. Please fix the build errors and run again.\r\nRunning build failed.\r\nError:\r\nSystem.Exception: dotnet run failed\r\n   at Microsoft.FSharp.Core.PrintfModule.PrintFormatToStringThenFail@1379.Invoke(String message)\r\n   at FSI_0005.Build.runDotnet(String workingDir, String args)\r\n   at FSI_0005.Build.clo@160-13.Invoke(Unit _arg12)\r\n   at Fake.TargetHelper.runSingleTarget(TargetTemplate`1 target) in D:\\code\\fake\\src\\app\\FakeLib\\TargetHelper.fs:line 626\r\n\r\n---------------------------------------------------------------------\r\nBuild Time Report\r\n---------------------------------------------------------------------\r\nTarget               Duration\r\n------               --------\r\nClean                00:00:00.0252372\r\nInstallDotNetCore    00:00:00.0710740\r\nInstallServer        00:00:07.0040820\r\nInstallServerTests   00:00:11.5556242\r\nInstallClientTests   00:00:05.2271147\r\nInstallClient        00:00:07.6406079\r\nBuildServer          00:00:11.6913353\r\nBuildClient          00:00:21.4524359\r\nBuildServerTests     00:00:07.5373696\r\nRunServerTests       Failure\r\nTotal:               00:01:27.5267116\r\n---------------------------------------------------------------------\r\nStatus:              Failure\r\n---------------------------------------------------------------------\r\n---------------------------------------------------------------------\r\n  1) System.Exception: dotnet run failed\r\n   at Microsoft.FSharp.Core.PrintfModule.PrintFormatToStringThenFail@1379.Invoke(String message)\r\n   at FSI_0005.Build.runDotnet(String workingDir, String args)\r\n   at FSI_0005.Build.clo@160-13.Invoke(Unit _arg12)\r\n   at Fake.TargetHelper.runSingleTarget(TargetTemplate`1 target) in D:\\code\\fake\\src\\app\\FakeLib\\TargetHelper.fs:line 626\r\n---------------------------------------------------------------------\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fable-compiler/fable-suave-scaffold/issues/comments/325905027","html_url":"https://github.com/fable-compiler/fable-suave-scaffold/issues/148#issuecomment-325905027","issue_url":"https://api.github.com/repos/fable-compiler/fable-suave-scaffold/issues/148","id":325905027,"user":{"login":"alfonsogarciacaro","id":8275461,"avatar_url":"https://avatars0.githubusercontent.com/u/8275461?v=4","gravatar_id":"","url":"https://api.github.com/users/alfonsogarciacaro","html_url":"https://github.com/alfonsogarciacaro","followers_url":"https://api.github.com/users/alfonsogarciacaro/followers","following_url":"https://api.github.com/users/alfonsogarciacaro/following{/other_user}","gists_url":"https://api.github.com/users/alfonsogarciacaro/gists{/gist_id}","starred_url":"https://api.github.com/users/alfonsogarciacaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfonsogarciacaro/subscriptions","organizations_url":"https://api.github.com/users/alfonsogarciacaro/orgs","repos_url":"https://api.github.com/users/alfonsogarciacaro/repos","events_url":"https://api.github.com/users/alfonsogarciacaro/events{/privacy}","received_events_url":"https://api.github.com/users/alfonsogarciacaro/received_events","type":"User","site_admin":false},"created_at":"2017-08-30T07:20:13Z","updated_at":"2017-08-30T07:20:13Z","author_association":"OWNER","body":"ServerTests was a full framework project before indeed. I was just trying to update everything to netcore after dotnet SDK 2 was released, but had issues with the UITests project.\r\n\r\nAbout existing users, I hope they are pulling changes from this repo from time to time, we don't have another way to propagate fixes :/ In any case, the problem should only have happened during the time window when ServerTests was updated to netcore2 and Paket 5.91.0 was released, so hopefully it didn't affect many users 🙏 "}}
{"actor":{"display_login":"alfonsogarciacaro"}}