CLR inline test app not building on windows
fsc.exe is only in the path on my Windows 10 machine when I open the Developer Command Prompt for VS2015 , but even so, doing a stack build
fails. It might need an explicit path?
Is any of this code here useful to make it idiot proof for people like myself?: https://gitlab.com/tim-m89/clr-haskell/blob/master/libs/clr-host/Setup.hs#L37
Here's some output to show the somewhat-in-path problem:
C:\Users\Tim\Documents\projects\haskell\clr-haskell>stack build
Cabal file warning in C:\Users\Tim\Documents\projects\haskell\clr-haskell\libs\clr-host\clr-host.cabal: Ignoring unknown section type: custom-setup
Warning: File listed in libs\clr-bindings\clr-bindings.cabal file does not exist: README.md
Warning: File listed in examples\clr-test-app\clr-test-app.cabal file does not exist: README.md
clr-bindings-0.1.0.0: unregistering (missing dependencies: clr-host)
... lots of other irrelevant output here was deleted for shorter reading time...
pipes-bytestring-2.1.4: build
pipes-bytestring-2.1.4: copy/register
streaming-commons-0.1.17: copy/register
Log files have been written to: C:\Users\Tim\Documents\projects\haskell\clr-haskell\.stack-work\logs\
Progress: 7/9
-- While building package clr-inline-test-app-0.1.0.0 using:
C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_1.24.2.0_ghc-8.0.2.exe --builddir=.stack-work\dist\ca59d0ab build exe:clr-inline-test-app --ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure 1
Logs have been written to: C:\Users\Tim\Documents\projects\haskell\clr-haskell\.stack-work\logs\clr-inline-test-app-0.1.0.0.log
Preprocessing executable 'clr-inline-test-app' for
clr-inline-test-app-0.1.0.0...
[1 of 1] Compiling Main ( src\Main.hs, .stack-work\dist\ca59d0ab\build\clr-inline-test-app\clr-inline-test-app-tmp\Main.o )
'fsc' is not recognized as an internal or external command,
operable program or batch file.
callCommand: fsc --nologo --target:library --out:C:\Users\Tim\AppData\Local\Temp\inline-fsharp8060\Inlinefsharp__main_Main.dll C:\Users\Tim\AppData\Local\Temp\inline-fsharp8060\Inlinefsharp__main_Main.fs (exit 1): failed
C:\Users\Tim\Documents\projects\haskell\clr-haskell>fsc
Microsoft (R) F# Compiler version 14.0.23413.0
Copyright (c) Microsoft Corporation. All Rights Reserved.
error FS0207: No inputs specified
C:\Users\Tim\Documents\projects\haskell\clr-haskell>
I haven't otherwise attempted to look into the problem for a cause or resolution.