!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

128 Members
24 Servers

Load older messages


SenderMessageTime
23 Jan 2025
@gggkiller:matrix.orgGGGJust speaking from the output I saw20:54:29
@gggkiller:matrix.orgGGGI assume the one logging files being copied were the installers running under wine 20:54:58
@6pak:matrix.org6pak

btw before I got wine workarounds upstreamed into dnspy I had this in the wrapper script

    if [ ! -d "$WINEPREFIX" ]; then
      mkdir -p "$WINEPREFIX"
      ${lib.getExe' wine "wineboot"} -u
    fi

    if ! grep -qw "corefonts" "$WINEPREFIX/winetricks.log" 2>/dev/null; then
      ${lib.getExe' winetricks "winetricks"} corefonts
    fi

    # Disable hardware acceleration in WPF (Avalon) because it's causing visual glitches
    if ! grep -q '"DisableHWAcceleration"=dword:00000001' "$WINEPREFIX/user.reg" 2>/dev/null; then
      "$WINE" reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Avalon.Graphics" /v DisableHWAcceleration /t REG_DWORD /d 1 /f
    fi
20:59:36
@6pak:matrix.org6pakto avoid running wineboot/winetricks/winereg every launch20:59:50
@6pak:matrix.org6pakwhich took quite some time20:59:57
@6pak:matrix.org6pakit might not matter for your use case though I guess21:00:04
@gggkiller:matrix.orgGGGYeah, in my case I can't really upstream anything nor use patches21:09:21
@6pak:matrix.org6pakI mean the faster launch time might not matter for you21:10:00
@gggkiller:matrix.orgGGGOh, I see21:10:50
@gggkiller:matrix.orgGGGYeah, the only reason I had to use PerfView already pretty much flopped so I don't have any use for it for the foreseeable future 21:11:42
25 Jan 2025
@devurandom:matrix.orgDennis joined the room.19:58:22
7 Feb 2025
@emma:rory.gayEmma [it/its]is there any chance of getting dotmemory packaged in nix?17:22:36
@6pak:matrix.org6pakhttps://github.com/NixOS/nixpkgs/pull/34840217:27:14
@emma:rory.gayEmma [it/its]oh, thanks <317:28:08
@emma:rory.gayEmma [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 all17:28:28
@6pak:matrix.org6pakbtw rider has dotmemory builtin aswell17:29:11
@emma:rory.gayEmma [it/its]

but the built in profiler wasnt giving me anything at all

17:29:40
@6pak:matrix.org6pakoh I thought you meant dotnet-sos/dotnet-dump etc17:29:57
@6pak:matrix.org6pakbut rider literally embeds dotmemory so they should work the same17:30:16
8 Feb 2025
@emma:rory.gayEmma [it/its]yeah my issue is that the rider builtin variant doesnt do anything at all01:34:16
@emma:rory.gayEmma [it/its]the problem is that i cant make a snapshot because the process exits in less than a second01:34:46
10 Feb 2025
@gggkiller:matrix.orgGGG Corngood: it seems like the switch to the source-built variant did have some issues 03:06:16
@gggkiller:matrix.orgGGGI updated my nix config, and the source-built SDKs don't work with the roslyn-ls packaged with the C# VSCode extension03:06:46
@gggkiller:matrix.orgGGG

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:corngood.comCorngoodDo you have a minimal repro?12:26:53
@corngood:corngood.comCorngood 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@parrvx:matrix.org joined the room.18:20:26
@parrvx:matrix.org@parrvx:matrix.org left the room.18:20:50
@gggkiller:matrix.orgGGG

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
@gggkiller:matrix.orgGGG *

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

Show newer messages


Back to Room ListRoom Version: 9