Skip to content
This repository has been archived by the owner on Sep 26, 2020. It is now read-only.

Forge does not create working projects under Linux #68

Closed
CarstenKoenig opened this issue Jun 4, 2017 · 2 comments
Closed

Forge does not create working projects under Linux #68

CarstenKoenig opened this issue Jun 4, 2017 · 2 comments

Comments

@CarstenKoenig
Copy link
Contributor

CarstenKoenig commented Jun 4, 2017

When working in Linux I get lot's of "Input string was not in a correct format" when working with forge.

You can reproduce with:

forge new project -t console -n ForgeTest --folder ForgeTest

this outputs on my machine:

Forge should be run from solution/repository root. Please ensure you don't run it from folder containing other solutions

Do You want to continue? [Y/n]

Generating project...
Creating /coding/ForgeTest/ForgeTest
/coding/Languages/Fsharp/Forge/temp/bin/../templates/console/App.config => /coding/ForgeTest/ForgeTest/App.config
/coding/Languages/Fsharp/Forge/temp/bin/../templates/console/ApplicationName.fs => /coding/ForgeTest/ForgeTest/ApplicationName.fs
/coding/Languages/Fsharp/Forge/temp/bin/../templates/console/ApplicationName.fsproj => /coding/ForgeTest/ForgeTest/ApplicationName.fsproj
/coding/Languages/Fsharp/Forge/temp/bin/../templates/console/paket.references => /coding/ForgeTest/ForgeTest/paket.references
mono  "/coding/.paket/paket.exe" init
Paket version 4.8.7
Saving file /coding/paket.dependencies
/coding/.paket/paket.targets
Downloading file from https://github.com/fsprojects/Paket/releases/download/4.8.7/paket.targets to /coding/.paket/paket.targets
4 seconds - ready.
mono  "/coding/.paket/paket.exe" add nuget FSharp.Core --no-install
Ignoring the following unknown argument(s): nuget, FSharp.Core, --no-install
Checking Paket version (version add requested)...
Input string was not in a correct format. (Github - cached)
mono  "/coding/.paket/paket.exe" install
Checking Paket version (version install requested)...
Input string was not in a correct format. (Github - cached)
mono  "/coding/.paket/paket.exe" add nuget FAKE
Ignoring the following unknown argument(s): nuget, FAKE
Checking Paket version (version add requested)...
Input string was not in a correct format. (Github - cached)
Done!

Expected Behavior

get a working console project

Current Behavior

get the same kind of errors when doing a ./build.sh

Your Environment

Mono 5.0.1.1
F# 4.1

dotnet-core:

Product Information:
Version: 1.0.1
Commit SHA-1 hash: 005db40cd1

Runtime Environment:
OS Name: linuxmint
OS Version: 18.1
OS Platform: Linux
RID: ubuntu.16.04-x64
Base Path: /usr/share/dotnet/sdk/1.0.1

@CarstenKoenig
Copy link
Contributor Author

CarstenKoenig commented Jun 4, 2017

maybe this is an deeper issue as I cannot rebuild Forge anymore on my system as well - there I get a MethodNotSupported Exception with FAKE:

Error: System.NotSupportedException: Type 'FSI_0005.Build' was not completed.
  at System.Reflection.Emit.ModuleBuilder.Save () [0x00048] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Reflection.Emit.AssemblyBuilder.Save (System.String assemblyFileName, System.Reflection.PortableExecutableKinds portableExecutableKind, System.Reflection.ImageFileMachine imageFileMachine) [0x0022b] in <a07d6bf484a54da2861691df910339b1>:0 
  at System.Reflection.Emit.AssemblyBuilder.Save (System.String assemblyFileName) [0x00000] in <a07d6bf484a54da2861691df910339b1>:0 
  at Fake.FSIHelper.handleCaching[a] (System.Boolean printDetails, Yaaf.FSharp.Scripting.IFsiSession session, a fsiErrorOutput, System.IO.DirectoryInfo cacheDir, Fake.FSIHelper+CacheInfo cacheInfo) [0x00046] in <572063baccf1c534a7450383ba632057>:0 

so I guess I better open an issue with FAKE

@CarstenKoenig
Copy link
Contributor Author

after some discussion on the FAKE issue and a manual paket update the errors are now as listed in the attached file:
error.txt

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant