malforge / mdk2

MIT License
63 stars 3 forks source link

Minifier error message points to different file and symbol. #37

Closed irreality-net closed 1 month ago

irreality-net commented 1 month ago

The error message:

1>Verifying that nothing went wrong
1>C:\Projects\___\obj\intermediate-script.cs(132,51): error CS0115: 'O.u()': no suitable method found to override
1>Failed to compile the project.

Double clicking the error opens C:\Projects__\obj\intermediate-script.cs at line 132 but failing code is in C:\Projects___\obj\intermediate-script.WhitespaceTrimmer.cs

Additionally method name is 'ų' not 'u', but once known how to identify the correct file name it is easy to spot: public override string ų() {}

malware-dev commented 1 month ago

Not a bug.

  1. intermediate-script.cs is the only one that gets compiled. The WhitespaceTrimmer.cs file is just another intermediate before we come to this level. These are all versions of the code as they appear after the different processors have run. I won't compile each and every one, because that'll be too slow.
  2. I can't control how the compiler shows its errors. That's a standard C# compiler error message.