| 7 Feb 2025 |
Emma [it/its] | i was trying to figure out why my code parsing a 780 byte file takes 109 KB of allocations, but the built in profiler wasnt giving me anything at all | 17:28:28 |
6pak | btw rider has dotmemory builtin aswell | 17:29:11 |
Emma [it/its] |
but the built in profiler wasnt giving me anything at all
| 17:29:40 |
6pak | oh I thought you meant dotnet-sos/dotnet-dump etc | 17:29:57 |
6pak | but rider literally embeds dotmemory so they should work the same | 17:30:16 |
| 8 Feb 2025 |
Emma [it/its] | yeah my issue is that the rider builtin variant doesnt do anything at all | 01:34:16 |
Emma [it/its] | the problem is that i cant make a snapshot because the process exits in less than a second | 01:34:46 |
| 10 Feb 2025 |
GGG | Corngood: it seems like the switch to the source-built variant did have some issues | 03:06:16 |
GGG | I updated my nix config, and the source-built SDKs don't work with the roslyn-ls packaged with the C# VSCode extension | 03:06:46 |
GGG | Initially I thought it was an issue with the new extension version, but I downgraded and the issue remains. No source generators work with the following error:
Generator 'RegexGenerator' failed to initialize. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'FileNotFoundException' with message 'Could not load file or assembly 'System.Collections.Immutable, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
'.
System.IO.FileNotFoundException: Could not load file or assembly 'System.Collections.Immutable, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
File name: 'System.Collections.Immutable, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at System.Text.RegularExpressions.Generator.RegexGenerator.Initialize(IncrementalGeneratorInitializationContext context)
at Microsoft.CodeAnalysis.GeneratorDriver.RunGeneratorsCore(Compilation compilation, DiagnosticBag diagnosticsBag, Func`2 generatorFilter, CancellationToken cancellationToken) in /_/src/Compilers/Core/Portable/SourceGeneration/GeneratorDriver.cs:line 252
-----
| 03:12:41 |
Corngood | Do you have a minimal repro? | 12:26:53 |
Corngood | I tried https://github.com/dotnet/roslyn-sdk/tree/main/samples/CSharp/SourceGenerators on dotnetCorePackages.sdk_8_0-source and it worked. | 15:25:37 |
| @parrvx:matrix.org joined the room. | 18:20:26 |
| @parrvx:matrix.org left the room. | 18:20:50 |
GGG | dotnet new console
then add this to Program.cs:
static partial class Regexes
{
[GeneratedRegex(@"[\x00-\x1f\\/:\""*?<>\|]|\.+$")]
public static partial Regex NotAllowedInFolderChars { get; }
}
| 18:41:40 |
GGG | * dotnet new console (using .NET 9 + .NET 8 combined SDK)
then add this to Program.cs:
static partial class Regexes
{
[GeneratedRegex(@"[\x00-\x1f\\/:\""*?<>\|]|\.+$")]
public static partial Regex NotAllowedInFolderChars { get; }
}
| 18:41:49 |
GGG | * dotnet new console (using .NET 9 + .NET 8 combined SDK, resulting in a net9.0 project)
then add this to Program.cs:
static partial class Regexes
{
[GeneratedRegex(@"[\x00-\x1f\\/:\""*?<>\|]|\.+$")]
public static partial Regex NotAllowedInFolderChars { get; }
}
| 18:42:00 |
Corngood | Is it not reproducible if you use only the net9 sdk? | 20:49:34 |