SuaveIO / mono-script-buildpack

4 stars 25 forks source link

Couldn't find project file #5

Closed haf closed 9 years ago

haf commented 9 years ago

@devboy I'm trying to publish https://github.com/haf/suave-presentation.2015-09-03 to heroku, but I'm getting this stack trace:

remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Fetching custom git buildpack... done
remote: -----> SuaveFramework app detected
remote: -----> Downloading mono to /app/tmp/cache/cedar-14/vendor
remote:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
remote:                                  Dload  Upload   Total   Spent    Left  Speed
remote: 100   154  100   154    0     0   1378      0 --:--:-- --:--:-- --:--:--  1387
remote: 100   167  100   167    0     0    347      0 --:--:-- --:--:-- --:--:--   347
remote: 100 1647k  100 1647k    0     0  3120k      0 --:--:-- --:--:-- --:--:-- 3120k
remote:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
remote:                                  Dload  Upload   Total   Spent    Left  Speed
remote: 100   387    0   387    0     0  10530      0 --:--:-- --:--:-- --:--:-- 10750
remote: 100 3807k  100 3807k    0     0  1292k      0  0:00:02  0:00:02 --:--:-- 1553k
remote: -----> Copying /app/tmp/cache/cedar-14/vendor/mono to /tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/vendor
remote: -----> Linking /tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/vendor/mono --> /app
remote: -----> Setting envvars
remote: -----> Importing trusted root certificates
remote: Mozilla Roots Importer - version 3.12.1.0
remote: Download and import trusted root certificates from Mozilla's MXR.
remote: Copyright 2002, 2003 Motus Technologies. Copyright 2004-2008 Novell. BSD licensed.
remote:
remote: Downloading from 'http://mxr.mozilla.org/seamonkey/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1'...
remote: Importing certificates into user store...
remote: 140 new root certificates were added to your trust store.
remote: Import process completed.
remote:
remote: -----> paket.lock found, restoring packages with paket
remote: Paket version 0.35.0.0
remote: found: /tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/paket.dependencies
remote: Downloading Aether 6.0.0 to /app/.local/share/NuGet/Cache/Aether.6.0.0.nupkg
remote: Downloading FSharp.Core 4.0.0.1 to /app/.local/share/NuGet/Cache/FSharp.Core.4.0.0.1.nupkg
remote: Downloading Suave 0.31.1 to /app/.local/share/NuGet/Cache/Suave.0.31.1.nupkg
remote: Downloading FSharp.Actor-logary 3.4.0 to /app/.local/share/NuGet/Cache/FSharp.Actor-logary.3.4.0.nupkg
remote: Downloading Logary 3.4.0 to /app/.local/share/NuGet/Cache/Logary.3.4.0.nupkg
remote: Downloading NodaTime 1.3.1 to /app/.local/share/NuGet/Cache/NodaTime.1.3.1.nupkg
remote: Downloading Newtonsoft.Json.FSharp 3.2.2 to /app/.local/share/NuGet/Cache/Newtonsoft.Json.FSharp.3.2.2.nupkg
remote: Downloading FParsec 1.0.1 to /app/.local/share/NuGet/Cache/FParsec.1.0.1.nupkg
remote: Downloading Logary.Adapters.Suave 3.4.0 to /app/.local/share/NuGet/Cache/Logary.Adapters.Suave.3.4.0.nupkg
remote: Downloading NodaTime.Serialization.JsonNet 1.3.1 to /app/.local/share/NuGet/Cache/NodaTime.Serialization.JsonNet.1.3.1.nupkg
remote: Downloading Newtonsoft.Json 7.0.1 to /app/.local/share/NuGet/Cache/Newtonsoft.Json.7.0.1.nupkg
remote: Downloading FsPickler 1.3.7 to /app/.local/share/NuGet/Cache/FsPickler.1.3.7.nupkg
remote: Downloading Chiron 4.1.0 to /app/.local/share/NuGet/Cache/Chiron.4.1.0.nupkg
remote: Downloading Hopac 0.0.0.48 to /app/.local/share/NuGet/Cache/Hopac.0.0.0.48.nupkg
remote: FSharp.Actor-logary 3.4.0 unzipped to /tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/packages/FSharp.Actor-logary
remote: Suave 0.31.1 unzipped to /tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/packages/Suave
remote: NodaTime 1.3.1 unzipped to /tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/packages/NodaTime
remote: FParsec 1.0.1 unzipped to /tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/packages/FParsec
remote: Newtonsoft.Json.FSharp 3.2.2 unzipped to /tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/packages/Newtonsoft.Json.FSharp
remote: Aether 6.0.0 unzipped to /tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/packages/Aether
remote: Logary 3.4.0 unzipped to /tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/packages/Logary
remote: Logary.Adapters.Suave 3.4.0 unzipped to /tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/packages/Logary.Adapters.Suave
remote: NodaTime.Serialization.JsonNet 1.3.1 unzipped to /tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/packages/NodaTime.Serialization.JsonNet
remote: Chiron 4.1.0 unzipped to /tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/packages/Chiron
remote: Newtonsoft.Json 7.0.1 unzipped to /tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/packages/Newtonsoft.Json
remote: FsPickler 1.3.7 unzipped to /tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/packages/FsPickler
remote: Hopac 0.0.0.48 unzipped to /tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/packages/Hopac
remote: FSharp.Core 4.0.0.1 unzipped to /tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/packages/FSharp.Core
remote: 5 seconds - ready.
remote: -----> Compiling application
remote: XBuild Engine Version 4.0
remote: Mono, Version 3.12.1.0
remote: Copyright (C) 2005-2013 Various Mono authors
remote:
remote: Build started 9/3/2015 3:11:53 PM.
remote: __________________________________________________
remote: /tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/src/Site/Site.fsproj:  warning : Could not find project file /tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/vendor/mono/lib/mono/Microsoft SDKs/F#/3.1/Framework/v4.0/Microsoft.FSharp.Targets, to import. Ignoring.
remote: Project "/tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/Site.sln" (default target(s)):
remote:     Target ValidateSolutionConfiguration:
remote:         Building solution configuration "Debug|AnyCPU".
remote:     Target Build:
remote: /tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/src/Site/Site.fsproj: error : /tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/src/Site/Site.fsproj: /tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/src/Site/Site.fsproj could not import "$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.1\Framework\v4.0\Microsoft.FSharp.Targets"
remote:     Task "MSBuild" execution -- FAILED
remote:     Done building target "Build" in project "/tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/Site.sln".-- FAILED
remote: Done building project "/tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/Site.sln".-- FAILED
remote:
remote: Build FAILED.
remote:
remote: Warnings:
remote:
remote: /tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/src/Site/Site.fsproj:  warning : Could not find project file /tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/vendor/mono/lib/mono/Microsoft SDKs/F#/3.1/Framework/v4.0/Microsoft.FSharp.Targets, to import. Ignoring.
remote:
remote: Errors:
remote:
remote: /tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/Site.sln (default targets) ->
remote: (Build target) ->
remote:
remote:     /tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/src/Site/Site.fsproj: error : /tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/src/Site/Site.fsproj: /tmp/build_b8cc599ca7d5d8b68773e839f70e7c7e/src/Site/Site.fsproj could not import "$(MSBuildExtensionsPath32)\..\Microsoft SDKs\F#\3.1\Framework\v4.0\Microsoft.FSharp.Targets"
remote:
remote:      1 Warning(s)
remote:      1 Error(s)
remote:
remote: Time Elapsed 00:00:00.2081850
remote:
remote:  !     Push rejected, failed to compile SuaveFramework app
remote:
remote: Verifying deploy....
remote:
remote: !   Push rejected to mcstreamy.
remote:

Do you recognise F# target files not being able to be found?

devboy commented 9 years ago

I haven't had that issue on heroku yet, but on my local machine i run into that multiple times. Could you try and use Mono 4.x.x, not sure if that is going to fix it, probably some target is hardcoded to point at F# 3.x files?

haf commented 9 years ago

The solution to this: https://github.com/haf/suave-presentation.2015-09-03/commit/82ca3eb740e0eca4ffa422b42d6d9b8b90a4ee06

@devboy thanks for the help; you were right about the versions being the culprit.

devboy commented 9 years ago

:+1: Next time i'll try to answer earlier ;)