SAFE-BookStore
SAFE-BookStore copied to clipboard
It does not compile
ERROR in C:/Users/kirichenko/.nuget/packages/fable.elmish.browser/1.0.0/fable/navigation.fs Module not found: Error: Can't resolve '../../../fable.core/1.2.4/fable-core/Option' in 'C:\Users\kirichenko.nuget\packages\fable.elmish.browser\1.0.0\fable' @ C:/Users/kirichenko/.nuget/packages/fable.elmish.browser/1.0.0/fable/navigation.fs 8:0-71 @ ./App.fs @ ./Client.fsproj
ERROR in C:/Users/kirichenko/.nuget/packages/fable.elmish.browser/1.0.0/fable/parser.fs Module not found: Error: Can't resolve '../../../fable.core/1.2.4/fable-core/Option' in 'C:\Users\kirichenko.nuget\packages\fable.elmish.browser\1.0.0\fable' @ C:/Users/kirichenko/.nuget/packages/fable.elmish.browser/1.0.0/fable/parser.fs 13:0-79 @ ./Pages.fs @ ./App.fs @ ./Client.fsproj
ERROR in C:/Users/kirichenko/.nuget/packages/fable.elmish.browser/1.0.0/fable/prelude.fs Module not found: Error: Can't resolve '../../../fable.core/1.2.4/fable-core/Option' in 'C:\Users\kirichenko.nuget\packages\fable.elmish.browser\1.0.0\fable' @ C:/Users/kirichenko/.nuget/packages/fable.elmish.browser/1.0.0/fable/prelude.fs 1:0-77 @ C:/Users/kirichenko/.nuget/packages/fable.elmish.browser/1.0.0/fable/parser.fs @ ./Pages.fs @ ./App.fs @ ./Client.fsproj
ERROR in C:/Users/kirichenko/.nuget/packages/fable.elmish.react/1.0.0/fable/react.fs Module not found: Error: Can't resolve '../../../fable.core/1.2.4/fable-core/Option' in 'C:\Users\kirichenko.nuget\packages\fable.elmish.react\1.0.0\fable' @ C:/Users/kirichenko/.nuget/packages/fable.elmish.react/1.0.0/fable/react.fs 1:0-71 @ ./App.fs @ ./Client.fsproj
ERROR in ./App.fs Module not found: Error: Can't resolve 'C:/Users/kirichenko/.nuget/packages/fable.core/1.2.4/fable-core/Option' in 'D:\WLCR\github\SAFE-BookStore\src\Client' @ ./App.fs 12:0-98 @ ./Client.fsproj
ERROR in ./Utils.fs Module not found: Error: Can't resolve 'C:/Users/kirichenko/.nuget/packages/fable.core/1.2.4/fable-core/Option' in 'D:\WLCR\github\SAFE-BookStore\src\Client' @ ./Utils.fs 2:0-100 @ ./App.fs @ ./Client.fsproj
ERROR in ./pages/Login.fs Module not found: Error: Can't resolve 'C:/Users/kirichenko/.nuget/packages/fable.core/1.2.4/fable-core/Option' in 'D:\WLCR\github\SAFE-BookStore\src\Client\pages' @ ./pages/Login.fs 15:0-98 @ ./App.fs @ ./Client.fsproj
ERROR in ./pages/WishList.fs Module not found: Error: Can't resolve 'C:/Users/kirichenko/.nuget/packages/fable.core/1.2.4/fable-core/Option' in 'D:\WLCR\github\SAFE-BookStore\src\Client\pages' @ ./pages/WishList.fs 18:0-110 @ ./App.fs @ ./Client.fsproj Running build failed. Error: System.Exception: dotnet fable webpack -- -p failed at Microsoft.FSharp.Core.PrintfModule.PrintFormatToStringThenFail@1379.Invoke(String message) at FSI_0005.Build.runDotnet(String workingDir, String args) in D:\WLCR\github\SAFE-BookStore\build.fsx:line 79 at [email protected](Unit _arg7) in D:\WLCR\github\SAFE-BookStore\build.fsx:line 155 at Fake.TargetHelper.runSingleTarget(TargetTemplate`1 target) in D:\code\FAKE\src\app\FakeLib\TargetHelper.fs:line 626
Build Time Report
Target Duration
Clean 00:00:00.0206735 InstallDotNetCore 00:00:00.0746721 InstallClient 00:00:14.4629907 SetReleaseNotes 00:00:00.0021216 BuildServer 00:00:07.5078958 BuildClient Failure Total: 00:00:37.2132129
Status: Failure
- System.Exception: dotnet fable webpack -- -p failed at Microsoft.FSharp.Core.PrintfModule.PrintFormatToStringThenFail@1379.Invoke(String message) at FSI_0005.Build.runDotnet(String workingDir, String args) in D:\WLCR\github\SAFE-BookStore\build.fsx:line 79 at [email protected](Unit _arg7) in D:\WLCR\github\SAFE-BookStore\build.fsx:line 155 at Fake.TargetHelper.runSingleTarget(TargetTemplate`1 target) in D:\code\FAKE\src\app\FakeLib\TargetHelper.fs:line 626
cc @MangelMaxime @enricosada @alfonsogarciacaro ideas?
This path seems strange: C:\Users\kirichenko.nuget\packages\fable.elmish.browser\1.0.0\fable
I don't know if this is the copy/paste doing that but it's missing a \ before .nuget
Can you try to install the project in the C drive ?
I am guessing from this line, that you are using D drive for the project. But the .nuget folder is on the C drive.
Module not found: Error: Can't resolve 'C:/Users/kirichenko/.nuget/packages/fable.core/1.2.4/fable-core/Option' in 'D:\WLCR\github\SAFE-BookStore\src\Client\pages'
Also, can you tell us a little more about your env ? Version of dotnet. Do you use, a fresh clone from this repo or upated the dependencies etc. ? :)
I can confirm that on fresh clone the issue is reproducible.
But after yarn upgrade [email protected] and paket update the repo is at least builds.
So I guess it just repo using outdated versions of Fable libs.
I can repro this today with the 2.1.3 Preview CLI/SDK drop and the latest master of this repository. This drop is what we're currently using for validating this project.
Full log:
Paket version 5.124.0
Downloading dotnet-fable 1.3.2
Downloading Fable.FCS 16.0.3
Downloading Fable.Elmish.Debugger 1.0.1
Downloading Fable.Import.Browser 0.1.2
Downloading Fable.Elmish 1.0.1
Downloading Fable.Compiler 1.3.2
Downloading Dotnet.ProjInfo 0.9
Downloading Fable.Core 1.3.1
Downloading Fable.PowerPack 1.3.1
Downloading Fable.React 1.2.2
Downloading Microsoft.NETCore.App 2.0.3
Downloading Microsoft.NETCore.DotNetHostPolicy 2.0.3
Downloading Microsoft.NETCore.DotNetHostResolver 2.0.3
Downloading Microsoft.NETCore.Platforms 2.0.1
Downloading Microsoft.NETCore.DotNetAppHost 2.0.3
Downloading System.Security.Cryptography.Algorithms 4.3.1
Downloading System.Security.Cryptography.X509Certificates 4.3.2
Downloading WindowsAzure.Storage 8.6
Downloading Mono.Cecil 0.10.0-beta7 (ServerTests)
Downloading canopy 1.6.1 (UITests)
Downloading Selenium.WebDriver 3.7 (UITests)
Performance:
- Disk IO: 8 seconds
- Average Download Time: 832 milliseconds
- Number of downloads: 21
- Average Request Time: 562 milliseconds
- Number of Requests: 21
- Runtime: 9 seconds
Building project with version: LocalBuild
Shortened DependencyGraph for Target All:
<== All
<== BundleClient
<== RunClientTests
<== RenameDrivers
<== BuildClientTests
<== RunServerTests
<== BuildServerTests
<== BuildClient
<== BuildServer
<== SetReleaseNotes
<== InstallClient
<== InstallDotNetCore
<== Clean
The running order is:
- Clean
- InstallDotNetCore
- InstallClient
- SetReleaseNotes
- BuildServer
- BuildClient
- BuildServerTests
- RunServerTests
- BuildClientTests
- RenameDrivers
- RunClientTests
- BundleClient
- All
Running build with 1 worker
Starting Target: Clean
Deleting contents of C:\repos\SAFE-BookStore\src\Client\bin
Deleting contents of C:\repos\SAFE-BookStore\src\Server\bin
Deleting contents of C:\repos\SAFE-BookStore\test\ServerTests\bin
Deleting contents of C:\repos\SAFE-BookStore\test\UITests\bin
Deleting contents of bin
Deleting contents of temp
Deleting contents of docs/output
Deleting contents of ./deploy
Deleting contents of C:\repos\SAFE-BookStore\src\Client\public/bundle
Finished Target: Clean
Starting Target: InstallDotNetCore (==> Clean)
dotnet --version
C:\Users\Phillip Carter\AppData\Local\dotnetcore\dotnet.exe --version
cmd 2.0.3 already installed in LocalApplicationData
Finished Target: InstallDotNetCore
Starting Target: InstallClient (==> InstallDotNetCore)
Node version:
C:\Program Files\nodejs\node.exe --version
v8.9.1
Yarn version:
C:\Program Files (x86)\Yarn\bin\yarn.cmd --version
1.3.2
C:\Program Files (x86)\Yarn\bin\yarn.cmd install --frozen-lockfile
yarn install v1.3.2
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
Done in 4.24s.
Finished Target: InstallClient
Starting Target: SetReleaseNotes (==> InstallClient)
Finished Target: SetReleaseNotes
Starting Target: BuildServer (==> SetReleaseNotes)
C:\Users\Phillip Carter\AppData\Local\dotnetcore\dotnet.exe build
Microsoft (R) Build Engine version 15.4.8.50001 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Server -> C:\repos\SAFE-BookStore\src\Server\bin\Debug\netcoreapp2.0\Server.dll
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:05.04
Finished Target: BuildServer
Starting Target: BuildClient (==> BuildServer)
C:\Users\Phillip Carter\AppData\Local\dotnetcore\dotnet.exe restore
Restoring packages for C:\repos\SAFE-BookStore\src\Client\Client.fsproj...
Restoring packages for C:\repos\SAFE-BookStore\src\Client\Client.fsproj...
Restore completed in 197.7 ms for C:\repos\SAFE-BookStore\src\Client\Client.fsproj.
Restore completed in 623.31 ms for C:\repos\SAFE-BookStore\src\Client\Client.fsproj.
C:\Users\Phillip Carter\AppData\Local\dotnetcore\dotnet.exe fable webpack -- -p
Fable (1.3.2) daemon started on port 61225
CWD: C:\repos\SAFE-BookStore\src\Client
cmd /C node "C:\repos\SAFE-BookStore\node_modules\webpack\bin\webpack.js" -p
Bundling for production...
ERROR: MSBuild failed with exitCode -2147450735 Working Directory: 'C:\repos\SAFE-BookStore\src\Client' Exe Path: 'dotnet' Args: 'msbuild C:\repos\SAFE-BookStore\src\Client\Client.fsproj /p:SkipCompilerExecution=true /p:ProvideCommandLineArgs=true /p:CopyBuildOutputToOutputDirectory=false /p:UseCommonOutputDirectory=true /t:_Inspect_FscArgs "/p:_Inspect_FscArgs_OutFile=C:\Users\Phillip Carter\AppData\Local\Temp\tmpA729.tmp.FscArgs.txt" /p:DesignTimeBuild=true /t:_Inspect_GetResolvedProjectReferences "/p:_Inspect_GetResolvedProjectReferences_OutFile=C:\Users\Phillip Carter\AppData\Local\Temp\tmpA72A.tmp.GetResolvedProjectReferences.txt" /t:_Inspect_GetProperties "/p:_Inspect_GetProperties_OutFile=C:\Users\Phillip Carter\AppData\Local\Temp\tmpA72B.tmp.GetProperties.txt" /nologo /verbosity:quiet'
at Fable.CLI.ProjectCoreCracker.projInfo(FSharpList`1 additionalMSBuildProps, String file)
at Fable.CLI.ProjectCracker.fullyCrackFsproj(String projFile)
at Fable.CLI.ProjectCracker.getProjectOptionsFromFsproj(Message msg, String projFile)
at Fable.CLI.ProjectCracker.retry@275(FSharpChecker checker, Message msg, String projFile, DateTime retryUntil, Unit unitVar0)
at Fable.CLI.ProjectCracker.retryGetProjectOpts(FSharpChecker checker, Message msg, String projFile)
at Fable.CLI.ProjectCracker.getFullProjectOpts(FSharpChecker checker, Message msg, String projFile)
at Fable.CLI.StateUtil.createProject(FSharpChecker checker, String[] dirtyFiles, FSharpOption`1 prevProject, Message msg, String projFile)
at Fable.CLI.StateUtil.updateState(FSharpChecker checker, FSharpMap`2 state, Message msg)
at [email protected](Tuple`2 _arg1)
Hash: fd4d9d487f7be4f2b287
Version: webpack 3.8.1
Time: 549ms
Asset Size Chunks Chunk Names
bundle.js 1.53 kB 0 [emitted] main
bundle.js.map 6.88 kB 0 [emitted] main
[0] ./Client.fsproj 1.01 kB {0} [built] [failed] [1 error]
ERROR in ./Client.fsproj
Module build failed: Error: MSBuild failed with exitCode -2147450735 Working Directory: 'C:\repos\SAFE-BookStore\src\Client' Exe Path: 'dotnet' Args: 'msbuild C:\repos\SAFE-BookStore\src\Client\Client.fsproj /p:SkipCompilerExecution=true /p:ProvideCommandLineArgs=true /p:CopyBuildOutputToOutputDirectory=false /p:UseCommonOutputDirectory=true /t:_Inspect_FscArgs "/p:_Inspect_FscArgs_OutFile=C:\Users\Phillip Carter\AppData\Local\Temp\tmpA729.tmp.FscArgs.txt" /p:DesignTimeBuild=true /t:_Inspect_GetResolvedProjectReferences "/p:_Inspect_GetResolvedProjectReferences_OutFile=C:\Users\Phillip Carter\AppData\Local\Temp\tmpA72A.tmp.GetResolvedProjectReferences.txt" /t:_Inspect_GetProperties "/p:_Inspect_GetProperties_OutFile=C:\Users\Phillip Carter\AppData\Local\Temp\tmpA72B.tmp.GetProperties.txt" /nologo /verbosity:quiet'
at Loader.fableUtils.client.send.then.r (C:\repos\SAFE-BookStore\node_modules\fable-loader\index.js:67:22)
at <anonymous>
Closing Fable daemon...
Running build failed.
Error:
System.Exception: dotnet fable webpack -- -p failed
at Microsoft.FSharp.Core.PrintfModule.PrintFormatToStringThenFail@1379.Invoke(String message)
at FSI_0005.Build.runDotnet(String workingDir, String args)
at [email protected](Unit _arg7)
at Fake.TargetHelper.runSingleTarget(TargetTemplate`1 target) in D:\code\FAKE\src\app\FakeLib\TargetHelper.fs:line 626
---------------------------------------------------------------------
Build Time Report
---------------------------------------------------------------------
Target Duration
------ --------
Clean 00:00:00.0442948
InstallDotNetCore 00:00:00.2059501
InstallClient 00:00:04.9168186
SetReleaseNotes 00:00:00.0049815
BuildServer 00:00:07.8239116
BuildClient Failure
Total: 00:00:16.3544592
---------------------------------------------------------------------
Status: Failure
---------------------------------------------------------------------
---------------------------------------------------------------------
1) System.Exception: dotnet fable webpack -- -p failed
at Microsoft.FSharp.Core.PrintfModule.PrintFormatToStringThenFail@1379.Invoke(String message)
at FSI_0005.Build.runDotnet(String workingDir, String args)
at [email protected](Unit _arg7)
at Fake.TargetHelper.runSingleTarget(TargetTemplate`1 target) in D:\code\FAKE\src\app\FakeLib\TargetHelper.fs:line 626
---------------------------------------------------------------------
But things were fixed!?
Am 30.11.2017 19:04 schrieb "Phillip Carter" [email protected]:
I can repro this today with the 2.1.3 Preview CLI/SDK drop https://dotnetcli.blob.core.windows.net/licavalc/Sdk/2.1.3-preview3-fnl-007228/dotnet-sdk-2.1.3-win-x64.exe and the latest master of this repository.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SAFE-Stack/SAFE-BookStore/issues/242#issuecomment-348271094, or mute the thread https://github.com/notifications/unsubscribe-auth/AADgNHhnuLzWsWN7FQniCQoZMIfNQPmFks5s7u4-gaJpZM4Qm9VO .
So this works if I use 2.1.1-preview-007094 (a build which has been on my machine since early November). There isn't really a big difference here though:
CLI/SDK 2.1.1-preview-007094 carries runtime version 2.0.3. CLI SDK 2.1.3 carries runtime version 2.0.4.
All other test cases we have work.
I think the issue @vasily-kirichenko saw is fixed. My observed failure is still from dotnet fable webpack, but it's MSBuild failing when invoked from the project cracker.
My observed failure is still from dotnet fable webpack, but it's MSBuild failing when invoked from the project cracker
@cartermp interesting. Can you open an issue in https://github.com/enricosada/dotnet-proj-info/issues about it?
Yep, will do.