Windows-Apps-Hub / UnitedSets

Bringing back Sets and Browser
https://www.microsoft.com/store/apps/9N7CWZ3L5RWL
MIT License
232 stars 10 forks source link

[Issues] Compile Issues #27

Closed mitchcapper closed 1 year ago

mitchcapper commented 1 year ago

I like the great concepts and features of this app, haven't seen an open source app similar. I wanted to do some work but had issues building. After a recursive clone building either from VS or from the cli with dotnet seem to fail.

Mostly around the CopySourceGenerator/EasySharp. I tried using the solution for that itself and still issues like:

v:\temp\test\UnitedSets\EasyXAMLTools\EasyCSharp\EasyCSharp.GeneratorTools\CopySourceGenerator\CopySourceGenerator.CopySourceCode\EasyCSharp.AtributeConverterGenerator.CopySourceGenerated.g.cs(5,1): error CS8999: Line does not start with the same whitespace as the closing line of the raw string literal. [v:\temp\test\UnitedSets\EasyXAMLTools\EasyCSharp\EasyCSharp.GeneratorT
ools\EasyCSharp.GeneratorTools.csproj]
v:\temp\test\UnitedSets\EasyXAMLTools\EasyCSharp\EasyCSharp.GeneratorTools\CopySourceGenerator\CopySourceGenerator.CopySourceCode\EasyCSharp.GeneratorTools.GeneratorToolsGenerator.CopySourceGenerated.g.cs(5,1): error CS8999: Line does not start with the same whitespace as the closing line of the raw string literal. [v:\temp\test\UnitedSets\EasyXAMLTools\EasyCSharp\EasyCShar
p.GeneratorTools\EasyCSharp.GeneratorTools.csproj]
v:\temp\test\UnitedSets\EasyXAMLTools\EasyCSharp\EasyCSharp.GeneratorTools\CopySourceGenerator\CopySourceGenerator.CopySourceCode\EasyCSharp.GeneratorTools.GeneratorToolsGenerator.CopySourceGenerated.g.cs(94,1): error CS8999: Line does not start with the same whitespace as the closing line of the raw string literal. [v:\temp\test\UnitedSets\EasyXAMLTools\EasyCSharp\EasyCSha
rp.GeneratorTools\EasyCSharp.GeneratorTools.csproj]
v:\temp\test\UnitedSets\EasyXAMLTools\EasyCSharp\EasyCSharp.GeneratorTools\CopySourceGenerator\CopySourceGenerator.CopySourceCode\EasyCSharp.GeneratorTools.GeneratorToolsGenerator.CopySourceGenerated.g.cs(135,1): error CS8999: Line does not start with the same whitespace as the closing line of the raw string literal. [v:\temp\test\UnitedSets\EasyXAMLTools\EasyCSharp\EasyCSh
arp.GeneratorTools\EasyCSharp.GeneratorTools.csproj]
v:\temp\test\UnitedSets\EasyXAMLTools\EasyCSharp\EasyCSharp.GeneratorTools\CopySourceGenerator\CopySourceGenerator.CopySourceCode\EasyCSharp.GeneratorTools.GeneratorToolsGenerator.CopySourceGenerated.g.cs(246,1): error CS8999: Line does not start with the same whitespace as the closing line of the raw string literal. [v:\temp\test\UnitedSets\EasyXAMLTools\EasyCSharp\EasyCSh
arp.GeneratorTools\EasyCSharp.GeneratorTools.csproj]

Can you provide some guidance on compiling?

mitchcapper commented 1 year ago

OK resolved this issue, debugging compiler code generation is a bit of a trick. The code is specifically searching for '\r\n' if one has their git settings to standard '\n' line endings the code won't compile. Not sure of the best way to resolve this, for me changing the code to use '\n's fixed it. Files can have CRLF or just LF in the same file, and could probably break similarly. I would probably say best to detect if it contains '\r' and if so replace all '\r\n' with '\n' and then back to '\r\n' (to avoid any bare '\n's ). If it doesn't just use \n's.

GetGet99 commented 1 year ago

I'll close the issue since you resolved it.

GetGet99 commented 1 year ago

Oh, I see the problem. Okay I updated the code in source generator to handle new line based on CR LF or LF line ending.