Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSB6006: "RunFsc.sh" exited with code 134 #460

Closed
ibnuda opened this issue Oct 17, 2017 · 20 comments
Closed

MSB6006: "RunFsc.sh" exited with code 134 #460

ibnuda opened this issue Oct 17, 2017 · 20 comments

Comments

@ibnuda
Copy link

ibnuda commented Oct 17, 2017

Description

Unable to compile a dotnet core 2.0 project which has SQLProvider as a dependency.

Repro steps

  1. dotnet new console -lang f#
  2. dotnet add package SQLProvider
  3. dotnet restore
  4. dotnet build

Expected behavior

Project compiled.

Actual behavior

 ➜  dotnet new console -lang f#
Getting ready...
The template "Console Application" was created successfully.

Processing post-creation actions...
Running 'dotnet restore' on /home/iaji/Sources/aoeu/aoeu.fsproj...
  Restoring packages for /home/iaji/Sources/aoeu/aoeu.fsproj...
  Generating MSBuild file /home/iaji/Sources/aoeu/obj/aoeu.fsproj.nuget.g.props.
  Generating MSBuild file /home/iaji/Sources/aoeu/obj/aoeu.fsproj.nuget.g.targets.
  Restore completed in 3.25 sec for /home/iaji/Sources/aoeu/aoeu.fsproj.


Restore succeeded.
➜  dotnet add package SQLProvider
  Writing /tmp/tmp9lvNYf.tmp
info : Adding PackageReference for package 'SQLProvider' into project '/home/iaji/Sources/aoeu/aoeu.fsproj'.
log  : Restoring packages for /home/iaji/Sources/aoeu/aoeu.fsproj...
info :   CACHE https://api.nuget.org/v3-flatcontainer/sqlprovider/index.json
info :   CACHE https://api.nuget.org/v3-flatcontainer/fsharp.core/index.json
info : Package 'SQLProvider' is compatible with all the specified frameworks in project '/home/iaji/Sources/aoeu/aoeu.fsproj'.
info : PackageReference for package 'SQLProvider' version '1.1.12' added to file '/home/iaji/Sources/aoeu/aoeu.fsproj'.
➜  dotnet restore
  Restoring packages for /home/iaji/Sources/aoeu/aoeu.fsproj...
  Restore completed in 758.68 ms for /home/iaji/Sources/aoeu/aoeu.fsproj.
➜  dotnet build
Microsoft (R) Build Engine version 15.3.409.57025 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

/usr/share/dotnet/sdk/2.0.0/FSharp/Microsoft.FSharp.Targets(224,9): error MSB6006: "RunFsc.sh" exited with code 134. [/home/iaji/Sources/aoeu/aoeu.fsproj]

Build FAILED.

/usr/share/dotnet/sdk/2.0.0/FSharp/Microsoft.FSharp.Targets(224,9): error MSB6006: "RunFsc.sh" exited with code 134. [/home/iaji/Sources/aoeu/aoeu.fsproj]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:08.02

Known workarounds

I don't know.

Related information

  • DB: MySQL.
  • Operating system: Windows 7 & Debian Stretch.
  • Branch
  • .NET Runtime, CoreCLR or Mono Version:
➜  dotnet --version
2.0.0
➜  mono --version 
Mono JIT compiler version 4.6.2 (Debian 4.6.2.7+dfsg-1)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  amd64
        Disabled:      none
        Misc:          softdebug 
        LLVM:          supported, not enabled.
        GC:            sgen

  • Performance information, links to performance testing scripts
@Thorium
Copy link
Member

Thorium commented Oct 17, 2017

Currently type providers need the fsc to defined in the project file. Please see the example project files (*.fsproj) from https://github.com/fsprojects/SQLProvider/tree/master/tests/SqlProvider.Core.Tests

@ibnuda
Copy link
Author

ibnuda commented Oct 17, 2017

After copied the sample into my fsproj, I got an error:

FSC : error FS0226: The file extension of '/home/iaji/Sources/Lol/@/tmp/tmp0235213770a94a59a5eab0a7aa18badb.rsp' is not recognized. Source files must have extension .fs, .fsi, .fsx, .fsscript, .ml or .mli. [/home/iaji/Sources/Lol/Nyamuk.fsproj]

And here's my fsproj at the moment (no osx because i don't have one.)

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <IsWindows Condition="'$(OS)' == 'Windows_NT'">true</IsWindows>
  </PropertyGroup>
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp2.0</TargetFramework>
    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
    <GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
  </PropertyGroup>
  <PropertyGroup Condition="'$(MSBuildRuntimeType)' == 'Core'">
    <IsLinux Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">true</IsLinux>
  </PropertyGroup>
  <PropertyGroup Condition="'$(IsWindows)' == 'true'">
    <FscToolPath>C:\Program Files (x86)\Microsoft SDKs\F#\4.1\Framework\v4.0</FscToolPath>
    <FscToolExe>fsc.exe</FscToolExe>
  </PropertyGroup>
  <PropertyGroup Condition="'$(IsLinux)' == 'true'">
    <FscToolPath>/usr/bin</FscToolPath>
    <FscToolExe>fsharpc</FscToolExe>
  </PropertyGroup>
  <ItemGroup>
    <Compile Include="NgomongDB.fs" />
    <Compile Include="Program.fs" />
  </ItemGroup>
  <ItemGroup>
    <PackageReference Include="M2MqttDotnetCore" Version="1.0.7" />
    <PackageReference Include="SQLProvider" Version="1.1.12" />
    <PackageReference Include="System.ComponentModel.TypeConverter" Version="4.3.0" />
    <PackageReference Include="System.Console" Version="4.3.0" />
    <PackageReference Include="System.Data.Common" Version="4.3.0" />
    <PackageReference Include="System.Runtime" Version="4.3.0" />
    <PackageReference Include="System.Runtime.Extensions" Version="4.3.0" />
    <PackageReference Include="System.Reflection" Version="4.3.0" />
    <PackageReference Include="System.Reflection.TypeExtensions" Version="4.4.0" />
    <PackageReference Include="System.Runtime.Serialization.Formatters" Version="4.3.0" />
  </ItemGroup>
</Project>

@dsyme
Copy link
Contributor

dsyme commented Oct 17, 2017

Could you provide the full build log, e.g. using dotnet build -v:d?

The response file argument is not being handed to the F# compiler correctly, this:

/home/iaji/Sources/Lol/@/tmp/tmp0235213770a94a59a5eab0a7aa18badb.rsp

is wrong and should be

@/home/iaji/Sources/Lol/tmp/tmp0235213770a94a59a5eab0a7aa18badb.rsp

or

@/tmp/tmp0235213770a94a59a5eab0a7aa18badb.rsp

But I don't understand where that is being generated, it may be a mistake in FSharp.Build.dll on Linux

cc @KevinRansom

@ibnuda
Copy link
Author

ibnuda commented Oct 17, 2017

Here's the detailed output. https://gist.github.com/ibnuda/30e3d113133d0b165d6e572228a9a2b0

@ibnuda
Copy link
Author

ibnuda commented Oct 17, 2017

While in Windows, still has the same error:

Microsoft (R) Build Engine version 15.3.409.57025 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

FSC : error FS0226: The file extension of 'C:\apaan\Lol\@C:\Users\Me\AppData\Local\Temp\tmpfcc50c8abcef444d8210a2cd20ed8570.rsp' is not recognized. Source files must have extension .fs, .fsi, .fsx, .fsscript, .ml or .mli. [C:\apaan\Lol\Nyamuk.fsproj]

Build FAILED.

FSC : error FS0226: The file extension of 'C:\apaan\Lol\@C:\Users\Me\AppData\Local\Temp\tmpfcc50c8abcef444d8210a2cd20ed8570.rsp' is not recognized. Source files must have extension .fs, .fsi, .fsx, .fsscript, .ml or .mli. [C:\apaan\Lol\Nyamuk.fsproj]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:02.55

And here's the gist of windows build.
https://gist.github.com/ibnuda/1e74dae386943ea56e6a0baad50c5950

@Thorium
Copy link
Member

Thorium commented Oct 17, 2017

If you clone this repo, can you build the example or does it fail also?

@ibnuda
Copy link
Author

ibnuda commented Oct 17, 2017

Cloned this repo, and ran ./build.sh in an Arch machine (dotnet core 2.0.0 and mono 5.0.0). Failed. Here's the snipped result.

/home/iaji/Sources/Dotnet/SQLProvider/src/SQLProvider.Standard/SQLProvider.Standard.fsproj.metaproj : error MSB4025: The project file could not be loaded. Could not find file '/home/iaji/Sources/Dotnet/SQLProvider/src/SQLProvider.Standard/SQLProvider.Standard.fsproj.metaproj'.                                                           

Build FAILED.

/home/iaji/Sources/Dotnet/SQLProvider/src/SQLProvider.Standard/SQLProvider.Standard.fsproj.metaproj : error MSB4025: The project file could not be loaded. Could not find file '/home/iaji/Sources/Dotnet/SQLProvider/src/SQLProvider.Standard/SQLProvider.Standard.fsproj.metaproj'.                                                           
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.17
Running build failed.
Error:                                                                                                                                                                  
System.Exception: Build failed on "build" "SQLProvider.Core.sln" --configuration Release                                                                                
  at [email protected] (System.String message) [0x00001] in <59b649fdccf1c534a7450383fd49b659>:0                                                        
  at Microsoft.FSharp.Core.PrintfImpl+StringPrintfEnv`1[TResult].Finalize () [0x00012] in <5893d081904cf4daa745038381d09358>:0                                          
  at Microsoft.FSharp.Core.PrintfImpl+Final1@224[TState,TResidue,TResult,A].Invoke (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] env, A a) [0x00038] in <5893d081904cf4daa745038381d09358>:0 
  at Microsoft.FSharp.Core.OptimizedClosures+Invoke@3253[T2,TResult,T1].Invoke (T2 u) [0x00001] in <5893d081904cf4daa745038381d09358>:0 
  at Fake.DotNetCli.Build (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] setBuildParams) [0x0023e] in <59b649fdccf1c534a7450383fd49b659>:0 
  at [email protected] (Microsoft.FSharp.Core.Unit _arg5) [0x00011] in <f9749d3d47054383b4d90a7d8cfa7214>:0 
  at Fake.TargetHelper+targetFromTemplate@209-1[a].Invoke (Microsoft.FSharp.Core.Unit unitVar0) [0x00001] in <59b649fdccf1c534a7450383fd49b659>:0 
  at Fake.TargetHelper.runSingleTarget (Fake.TargetHelper+TargetTemplate`1[a] target) [0x0004b] in <59b649fdccf1c534a7450383fd49b659>:0 

---------------------------------------------------------------------
Build Time Report
---------------------------------------------------------------------
Target         Duration
------         --------
Clean          00:00:00.0008769
AssemblyInfo   00:00:00.0150715
Build          00:00:27.8105966
BuildCore      Failure
Total:         00:00:40.6767902
---------------------------------------------------------------------
Status:        Failure
---------------------------------------------------------------------
---------------------------------------------------------------------
  1) System.Exception: Build failed on "build" "SQLProvider.Core.sln" --configuration Release 
  at [email protected] (System.String message) [0x00001] in <59b649fdccf1c534a7450383fd49b659>:0 
  at Microsoft.FSharp.Core.PrintfImpl+StringPrintfEnv`1[TResult].Finalize () [0x00012] in <5893d081904cf4daa745038381d09358>:0 
  at Microsoft.FSharp.Core.PrintfImpl+Final1@224[TState,TResidue,TResult,A].Invoke (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] env, A a) [0x00038] in <5893d081904cf4daa745038381d09358>:0 
  at Microsoft.FSharp.Core.OptimizedClosures+Invoke@3253[T2,TResult,T1].Invoke (T2 u) [0x00001] in <5893d081904cf4daa745038381d09358>:0 
  at Fake.DotNetCli.Build (Microsoft.FSharp.Core.FSharpFunc`2[T,TResult] setBuildParams) [0x0023e] in <59b649fdccf1c534a7450383fd49b659>:0 
  at [email protected] (Microsoft.FSharp.Core.Unit _arg5) [0x00011] in <f9749d3d47054383b4d90a7d8cfa7214>:0 
  at Fake.TargetHelper+targetFromTemplate@209-1[a].Invoke (Microsoft.FSharp.Core.Unit unitVar0) [0x00001] in <59b649fdccf1c534a7450383fd49b659>:0 
  at Fake.TargetHelper.runSingleTarget (Fake.TargetHelper+TargetTemplate`1[a] target) [0x0004b] in <59b649fdccf1c534a7450383fd49b659>:0 
---------------------------------------------------------------------
We don't try to cache, see https://github.com/fsharp/FAKE/pull/1534

Sorry for using many machines.

@Thorium
Copy link
Member

Thorium commented Oct 18, 2017

@dsyme, I created test Ubuntu machine to Azure, and this is reproducable.

FSC : error FS0226: The file extension of '/home/tuomas/SQLProvider/tests/SqlProvider.Core.Tests/Postgres/@/tmp/tmp8a39744e663844d191a70e2dc6b67f6f.rsp' is not recognized. Source files must have extension .fs, .fsi, .fsx, .fsscript, .ml or .mli. [/home/tuomas/SQLProvider/tests/SqlProvider.Core.Tests/Postgres/SqlProvider.Core.Tests.fsproj]

Trying to mount a link to this Postgers-folder:

sudo mkdir @
sudo mount --bind /tmp ./@

and now the path /home/tuomas/SQLProvider/tests/SqlProvider.Core.Tests/Postgres/@/tmp/ is accessible, but still the same error.
The file is there though, the content is just:

-o:obj/Debug/netcoreapp2.0/SqlProvider.Core.Tests.dll
-g
--debug:portable
--noframework
--define:TRACE
--define:DEBUG
--define:NETCOREAPP2_0
--optimize-
-r:/home/tuomas/.nuget/packages/fsharp.core/4.2.3/lib/netstandard1.6/FSharp.Core.dll
-r:/home/tuomas/.nuget/packages/sqlprovider/1.1.12/lib/netstandard2.0/FSharp.Data.SqlProvider.dll
-r:/usr/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/Microsoft.CSharp.dll
...<cut - here is a long list of SDK dlls>...
r:/usr/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/System.Xml.XPath.XDocument.dll
-r:/usr/share/dotnet/sdk/NuGetFallbackFolder/microsoft.netcore.app/2.0.0/ref/netcoreapp2.0/WindowsBase.dll
--target:exe
--warn:3
--warnaserror:76
--fullpaths
--flaterrors
--highentropyva-
--targetprofile:netcore
--simpleresolution
--nocopyfsharpcore
/tmp/.NETCoreApp,Version=v2.0.AssemblyAttributes.fs
Program.fs

@Thorium
Copy link
Member

Thorium commented Oct 19, 2017

@ibnuda how did you get error with Windows?
I created dotnet new console -lang f# then replaced the fsproj with your project file, excluded NgomongDB.fs, run dotnet restore and dotnet run without errors.

Also Arch machine error seems to be different.

@Thorium
Copy link
Member

Thorium commented Oct 19, 2017

@ibnuda on Ubuntu:
First, check if there are updates to FSharp:

sudo apt-get update
sudo apt-get install fsharp

.metaproj failing is MSBuild error on Ubuntu. It can be avoided by running dotnet on *.fsproj level folders and not for the whole *.sln file.

If project level fails, try this:

rm -r -f bin
rm -r -f obj
sudo dotnet restore
sudo dotnet build

...at least the error message probably changes to the next one... ;-)

@KevinRansom
Copy link

So ... that doesn't look like it's running the coreclr F# compiler.

It looks like it's using: /usr/bin/fsharpc as it's compiler. I'm guessing somewhere in the project or targets for your project or perhaps environment there is something that sets $(FscToolExe) or $(FscToolPath) to that location.

It is my guess ... and I can't confirm it right now ... that the F# 4.0 compiler does not support response files. If you can get an F# 4.1 compiler that should work better, or use the one shipped with dotnet cli.

@Thorium
Copy link
Member

Thorium commented Oct 20, 2017

Thread at dotnet/fsharp#3303 recommends /usr/bin/fsharpc for linux:

  <PropertyGroup Condition="'$(IsLinux)' == 'true'">
    <FscToolPath>/usr/bin</FscToolPath>
    <FscToolExe>fsharpc</FscToolExe>
  </PropertyGroup>

At least in my Ubuntu 17 which I installed 2 days ago, it seems to be 4.1:

~$ /usr/bin/fsharpc
Microsoft (R) F# Compiler version 4.1
Copyright (c) Microsoft Corporation. All Rights Reserved.
error FS0207: No inputs specified
~$

@KevinRansom
Copy link

Well I don't have much to say about the recommendation.

Linux repro: https://gist.github.com/ibnuda/30e3d113133d0b165d6e572228a9a2b0#file-outputofbuild-txt-L3263

         F# Compiler for F# 4.0 (Open Source Edition)

         Freely distributed under the Apache 2.0 Open Source License

Windows repro:https://gist.github.com/ibnuda/1e74dae386943ea56e6a0baad50c5950#file-outputbuildwindows-txt-L2156


         Copyright (c) Microsoft Corporation. All Rights Reserved.

We try to make sure that the compiler we ship with the dotnetsdk in the dotnet cli is capable of using the settings and techniques we specify in the dotnet sdk.

If I was making a recommendation it would be use the shipped compiler, it's likely to be faster, better and with more bugs fixed.

@ibnuda
Copy link
Author

ibnuda commented Oct 20, 2017

@Thorium

-- NgomongDB.fs
module DB

open System
open FSharp.Data.Sql
-- Program.fs
open System

open uPLibrary.Networking.M2Mqtt
open uPLibrary.Networking.M2Mqtt.Messages
open uPLibrary.Networking.M2Mqtt.Exceptions
open uPLibrary.Networking.M2Mqtt.Session
open uPLibrary.Networking.M2Mqtt.Utility
open uPLibrary.Networking.M2Mqtt.Internal
open System.Text

[<EntryPoint>]
let main argv =
    /// http://caxelrud.blogspot.com/2015/05/f-and-mqtt-example-1.html
    let node = MqttClient("localhost")
    let msgReceived (e : MqttMsgPublishEventArgs) =
        printfn "Sub received topic   : %s" e.Topic
        printfn "Sub received qos     : %u" e.QosLevel
        printfn "Sub received retain  : %b" e.Retain
        printfn "Sub received message : %s" (Encoding.ASCII.GetString e.Message)

    let msgPublish (e : MqttMsgPublishedEventArgs) =
        printfn "Pub message published : %b" e.IsPublished

    let msgSubscribed (e : MqttMsgSubscribedEventArgs) =
        printfn "Sub message subscribed : %s" (Encoding.ASCII.GetString e.GrantedQoSLevels)

    let msgUnsubscribed (e : MqttMsgUnsubscribedEventArgs) =
        printfn "Sub message unsubscribed : %i" e.MessageId

    node.MqttMsgPublishReceived.Add(msgReceived)
    node.MqttMsgPublished.Add(msgPublish)
    node.MqttMsgSubscribed.Add(msgSubscribed)
    node.MqttMsgUnsubscribed.Add(msgUnsubscribed)

    let clientId = "F#"
    let username = "iotuser"
    let password = "open please"
    let willRetain = false
    let willQosLevel = 0uy
    let willFlag = true
    let willTopic = "topic/subtopica"
    let willMessage = "please tell me something."
    let cleanSession = true
    let keepAlivePeriod = 60us

    node.Connect(clientId,
                 username,
                 password,
                 willRetain,
                 willQosLevel,
                 willFlag,
                 willTopic,
                 willMessage,
                 cleanSession,
                 keepAlivePeriod)
    |> printfn "%A"

    let topics = [| "topic/subtopica"; "topic/subtopicb" |]
    let qosLevels = [| MqttMsgBase.QOS_LEVEL_AT_LEAST_ONCE
                       MqttMsgBase.QOS_LEVEL_AT_MOST_ONCE |]

    let grantedQos = node.Subscribe(topics, qosLevels)

    node.Publish(topics.[0], Encoding.UTF8.GetBytes(Guid.Empty.ToString())) |> ignore
    node.Publish(topics.[0], Encoding.UTF8.GetBytes(Guid.NewGuid().ToString())) |> ignore
    0
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <IsWindows Condition="'$(OS)' == 'Windows_NT'">true</IsWindows>
  </PropertyGroup>
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp2.0</TargetFramework>
    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
    <GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
  </PropertyGroup>
  <PropertyGroup Condition="'$(MSBuildRuntimeType)' == 'Core'">
    <IsLinux Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">true</IsLinux>
  </PropertyGroup>
  <PropertyGroup Condition="'$(IsWindows)' == 'true'">
    <FscToolPath>C:\Program Files (x86)\Microsoft SDKs\F#\4.0\Framework\v4.0</FscToolPath>
    <FscToolExe>fsc.exe</FscToolExe>
  </PropertyGroup>
  <PropertyGroup Condition="'$(IsLinux)' == 'true'">
    <FscToolPath>/usr/bin</FscToolPath>
    <FscToolExe>fsharpc</FscToolExe>
  </PropertyGroup>
  <ItemGroup>
    <Compile Include="NgomongDB.fs" />
    <Compile Include="Program.fs" />
  </ItemGroup>
  <ItemGroup>
    <PackageReference Include="M2MqttDotnetCore" Version="1.0.7" />
    <PackageReference Include="SQLProvider" Version="1.1.12" />
  </ItemGroup>
</Project>
  • Deleted the obj and bin directories.
  • Ran dotnet restore -> okay.
  • Ran dotnet build -> err
Microsoft (R) Build Engine version 15.3.409.57025 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

FSC : error FS0226: The file extension of 'C:\apaan\Lol\@C:\Users\IT Support\AppData\Local\Temp\tmpbbd82e5f42844dd3b1990a6691518bed.rsp' is not recognized. Source files must have extension .fs, .fsi, .fsx, .fsscript, .ml or .mli. [C:\apaan\Lol\Nyamuk.fsproj]

Build FAILED.

FSC : error FS0226: The file extension of 'C:\apaan\Lol\@C:\Users\IT Support\AppData\Local\Temp\tmpbbd82e5f42844dd3b1990a6691518bed.rsp' is not recognized. Source files must have extension .fs, .fsi, .fsx, .fsscript, .ml or .mli. [C:\apaan\Lol\Nyamuk.fsproj]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:02.59

And debian's error:

Microsoft (R) Build Engine version 15.3.409.57025 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

FSC : error FS0226: The file extension of '/home/iaji/Sources/Lol/@/tmp/tmp8684e5fb636f40fb9195f05ce561ce1e.rsp' is not recognized. Source files must have extension .fs, .fsi, .fsx, .fsscript, .ml or .mli. [/home/iaji/Sources/Lol/Nyamuk.fsproj]

Build FAILED.

FSC : error FS0226: The file extension of '/home/iaji/Sources/Lol/@/tmp/tmp8684e5fb636f40fb9195f05ce561ce1e.rsp' is not recognized. Source files must have extension .fs, .fsi, .fsx, .fsscript, .ml or .mli. [/home/iaji/Sources/Lol/Nyamuk.fsproj]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:09.07

@Thorium
Copy link
Member

Thorium commented Oct 20, 2017

@ibnuda works on my machine.
Just wanted a reference to <PackageReference Include="Microsoft.Build.Utilities.Core" Version="15.3.409" />

Although it seems that I have more recent version of .NET:

C:\Temp\test2>dotnet build
Microsoft (R) Build Engine version 15.4.8.50001 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

My fsc.exe is in place:

C:\Temp\test2>"C:\Program Files (x86)\Microsoft SDKs\F#\4.1\Framework\v4.0\fsc.exe"
Microsoft (R) F# Compiler version 4.1
Copyright (c) Microsoft Corporation. All Rights Reserved.

@ibnuda
Copy link
Author

ibnuda commented Oct 20, 2017

I've added <PackageReference Include="Microsoft.Build.Utilities.Core" Version="15.3.409" /> in my arch and debian machine. Got an error and a warning:

error FS3053 : The type provider 'FSharp.Data.Sql.SqlTypeProvider' reported an error : The type provider constructor has thrown an exception: The method or operation is not implemented. [/home/iaji/Sources/Dotnet/Nyamuk/Nyamuk.fsproj]                                                                                                      
FSC : warning FS3005: Referenced assembly '/home/iaji/.nuget/packages/sqlprovider/1.1.12/lib/netstandard2.0/FSharp.Data.SqlProvider.dll' has assembly level attribute 'Microsoft.FSharp.Core.CompilerServices.TypeProviderAssemblyAttribute' but no public type provider classes were found [/home/iaji/Sources/Dotnet/Nyamuk/Nyamuk.fsproj]    

While the output of fsharpc version is

> fsharpc --version                       
F# Compiler for F# 4.1
Freely distributed under the Apache 2.0 Open Source License
> pacman -Si fsharp 
[sudo] wachtwoord voor iaji: 
Repository                 : extra
Naam                       : fsharp
Versie                     : 4.1.18-1

In debian machine, still the same error. The version of fsharp is:

> apt show fsharp
Package: fsharp
Version: 4.0.0.4+dfsg2-2
Priority: optional
Section: cli-mono

And sorry, I can't report the version of fsharp in windows machine at the moment. Next week, I promise.

@Thorium
Copy link
Member

Thorium commented Oct 21, 2017

Now, the last problem is same as this.

@ibnuda
Copy link
Author

ibnuda commented Oct 23, 2017

@Thorium, here's the version of dotnetcore and fsharp compiler in the windows system, and upgraded to SQLProvider version 1.1.15 as suggested in #461, still the same error.

> dotnet --version
2.0.0
> fsc --version
Microsoft (R) F# Compiler version 14.0.23020.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

If nobody could reproduce this issue, I'll close it.

@Thorium
Copy link
Member

Thorium commented Oct 23, 2017

Status is:

  • According to limitations of the documentation, the example projects should work on Mac/Ubuntu/Win. (Except from SQLite which compiles only with Win, which is more a problem of Microsoft.Data.SQLite project not providing Mono compatible library.) The main limitation is that you have to compile the solution with Mono fsharpc compiler but it produces netcoreapp2.0 code.

  • I had to use remove bin and obj folders and use sudo with my dotnet command when working with Ubuntu.

  • You can copy the properties from the example projects to your custom project.

  • Also the SQLProvider project compiles on Mac/Ubuntu/Win. Sln-files not, but you should have to compile those directly.

I'm still happy to help, but what is "the same error" as this thread has a lot of different errors? :-)

@ibnuda
Copy link
Author

ibnuda commented Oct 23, 2017

Thank you very much for your helps so far, Thorium. But considering a few other considerations, I have to drop my project. (My colleagues uses PHP)
Again, thank you very much.

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

No branches or pull requests

4 participants