Skip to content

Doesn't work on macOS with big files #2

Closed
@VolodymyrBS

Description

@VolodymyrBS

Compiler fails to compile the file with error.

error CS1504: Source file '***/Assets/TrueSync/Physics/Farseer/Common/PhysicsLogic/RealExplosion.cs' could not be opened -- GetCPInfoExW

To Reproduce
Steps to reproduce the behavior:

  1. Clone repo https://github.com/VolodymyrBS/CSharpCompilerSettingsForUnityBugRepro.git
  2. Import project on macOS
  3. Check Console
  4. See an error

Environment:

  • Version 1.0.1
  • Platform: Editor Mac
  • Unity version: [e.g. 2019.3.5f1]
  • Build options: any
  • Injected compiler version - 3.5.0, 3.7.0

Additional context
Probably it's related to this issue
mono/mono#12603
ILSpy shows that System.Text.Encoding.CodePages.dll library inside Microsoft.Net.Compiler package use WinApi

image

Note: Can't share the original project but only part of it enough to reproduce the error.
Note: Error will also occure if you try to directly call mono <path to downloaded csc.exe> <path to RealExplosion.cs>

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions