Skip to content

F# requires more than 4GB of disk and/or memory to compile projects #9175

@jzabroski

Description

@jzabroski

F# is telling me there is not enough storage to finish compiling. It is not clear if this is RAM storage or disk storage, but I am assuming it is disk storage. However, given Visual Studio 2019 remains 32-bit, it is not unthinkable that F# is running out of 32-bit address space if hosted in-process as opposed to out-of-process with IPC message pump a'la Visual Studio Code.

Possibly related to #6866, #8044. For 8044, see also my comment there: #8044 (comment) for FS error numbers and error messages produced.

Repro steps

Provide the steps required to reproduce the problem:

  1. Run Visual Studio 2019 (32-bit)
  2. Run large F# (FSharpo.Core 4.7.1) and C# mixed use sln via Build Solution, several times, updating code in F# slightly each time. A trivial code update would be to use Resharper Rename refactoring on a C# method, compile, get F# errors due to C# Rename refactoring not peering through to F#, and then manually update those references in F# as well, and recompile. On last recompile, nasal demons emerge.
  3. Solution should/may include a Resources assembly that contains basically just embedded resources with some resx files.

I cannot attach a repro given internal nature of project, but may be able to generate msbuild binary log files if helpful - need to reach out to my superior and possibly Legal to discuss. Would need to privately send to Microsoft developers, not upload to GitHub, in either case.

Expected behavior

  1. No out of storage errors.
  2. Specify if out of storage is disk or memory storage.

Actual behavior

Vague out of storage errors.

Known workarounds

Restart Visual Studio every ~15-30 minutes.

Related information

Provide any related information (optional):

  • Operating system Microsoft Windows Server Datacenter Edition 2016 (Amazon Workspaces' largest instance size)
  • .NET Runtime kind .NET Framework 4.8
  • Editing Tools Visual Studio 16.5.4
  • Free Disk Space: 5.58 GB on C Drive, 27.2 GB on D Drive (Visual Studio

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions