Questions tagged [fsc]

25 questions
14
votes
2 answers

How do I turn off the Scala Fast Compilation server's (FSC) timeout?

I am using a Scala compilation server. This is probably not related to my IDE IntelliJ IDEA, but I will just inform you that I start the Scala compilation server through a special run configuration in that IDE. After some time that goes by without…
Madoc
  • 5,841
  • 4
  • 25
  • 38
12
votes
1 answer

F# compiler throws OutOfMemoryException

The project I use contains a lot of classes inherited from single base class. In unit tests I need to compare received results by types and data. When I use match comparison by types in the case when conditions list contains about enough many…
Vitaliy
  • 2,744
  • 1
  • 24
  • 39
8
votes
1 answer

Maven improperly starting fsc?

I am trying to use fsc (fast scala compiler) with my maven project. My pom.xml has: ... cc cc compile true
riothamus
  • 111
  • 5
6
votes
3 answers

How to directly invoke F# compiler on .NET Core?

UPD.: I want to invoke F# compiler (i.e. fsc) from .NET Core SDK directly. I know about dotnet build & co, but I don't want to involve them when I only need to compile a simple problem, i.e. in cases when fsc file.fs would be enough. I've tried to…
isnullxbh
  • 807
  • 13
  • 20
6
votes
0 answers

MSBuild F# project with AssemblyInfo.fs file. Error during CoreCompile with fsc.exe

I have problem with building my solution by MSBuild. In my solution I have the F# projects to which I have added the AssemblyInfo.fs files, such file looks as follows: namespace namespaceName open System.Reflection open…
user2323704
  • 853
  • 1
  • 7
  • 13
6
votes
1 answer

fast scala compiler: Unable to establish connection to compilation daemon

I have a ubuntu machine under OpenVZ virtualization. When I run fsc test.scala I get: Unable to establish connection to compilation daemon Then ps aux shows me lots of processes that look like this ren 17482 0.0 0.0 4908 1400 pts/0 S …
ren
  • 3,843
  • 9
  • 50
  • 95
5
votes
1 answer

How do I run a Fast Scala Compiler remote server?

I want to set an fsc process running on a box that I can then access remotely. I understand I need to share a temp directory. However, I'm struggling to even get it going on my laptop. I'm trying: fsc -Djava.io.tmpdir=/tempscala -server…
R u c k s a c k
  • 784
  • 6
  • 17
5
votes
1 answer

Changing the F# tools Visual Studio 2010 uses

I rebuilt F# with few syntax additions. I was able to tell VS2010 to use them for F# Interactive and for building, but the code editor still claims I'm making errors (even though the project builds just fine). Is it even possible to change this? If…
Ramon Snir
  • 7,520
  • 3
  • 43
  • 61
4
votes
2 answers

FSC compilation warning: Assembly 'SMDiagnostics' was referenced transitively and the assembly could not be resolved automatically

Intermittently when compiling my project (it is a Console Application implementing a Windows Service) the above warning is posted. (here full warning text) Warning 1 Assembly 'SMDiagnostics' was referenced transitively and the assembly could not…
Henrik K
  • 1,051
  • 1
  • 15
  • 34
3
votes
0 answers

Unable to load assemby built with F# compiler services via reflection

I keep getting the following error message when I tried to load (via reflection) a .dll built using F# compiler services (even though the Equals method being complained about does exist in the build): Unhandled Exception:…
Tolu
  • 1,081
  • 1
  • 8
  • 23
3
votes
1 answer

When creats fsc an init@ variable?

If I deserialize from XML I get the following error:The initialization of an object or value resulted in an object or value being accessed recursively before it was fully initialized. My F# code looks as…
Peter Siebke
  • 196
  • 1
  • 8
3
votes
1 answer

How to use fsc with sbt?

Related question: Does SBT use the Fast Scala Compiler (fsc)? Can fsc be used with sbt; would it be practical; and if so, how to integrate fsc into sbt?
Dominykas Mostauskis
  • 7,797
  • 3
  • 48
  • 67
3
votes
1 answer

Is there a workaround for Scala 2.9.1's buggy fsc Ant task?

The fsc Ant task provided with Scala 2.9.1 is buggy (issues SI-5174 and SI-5196): if the compile fails, everything proceeds as normal. If the compile succeeds, on the other hand, then an internal compilation error is reported—even though everything…
Antal Spector-Zabusky
  • 36,191
  • 7
  • 77
  • 140
2
votes
1 answer

Speed up F# compile with Reference Assembly

I thought I'd try out speeding up my compiles with Reference Assemblies. So I add this to my projects: true true But get a nasty error for my F#…
Ray
  • 2,974
  • 20
  • 26
2
votes
1 answer

How to include app.config file with fsc.exe (F#) or csc.exe (C#)?

I have a console application that uses an app.config file however I can't figure out how to include that in the command line parameters so that the output will create the Program.exe.config when I compile it programmatically with fsc.exe. Right now…
Beaker
  • 2,804
  • 5
  • 33
  • 54
1
2