Skip to content

roles/extensions branch is not working #1335

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
aetos382 opened this issue Jun 3, 2024 · 10 comments
Closed

roles/extensions branch is not working #1335

aetos382 opened this issue Jun 3, 2024 · 10 comments

Comments

@aetos382
Copy link

aetos382 commented Jun 3, 2024

When I select the Roles/Extensions branch, I get a message that says connection lost, reconnecting... and the screen goes grey and doesn't come back.

When I look at the browser console, a 404 is returned for requests to the following URL. Could this be the cause?

https://slpublic.azureedge.net/cache/main/sl-b-dotnet-features-roles/a98330204b5d6e806f3b69ff241752d9d1c9ddc6c4e65c17f203dd3c69c92be1.json

@ashmind
Copy link
Owner

ashmind commented Jun 5, 2024

Thanks for reporting! This one might be a bit tricky -- I'll take a look when I have a moment, but can't promise it will be soon.

ashmind added a commit to ashmind/mirrorsharp that referenced this issue Jun 5, 2024
ashmind added a commit that referenced this issue Jun 5, 2024
ashmind added a commit to ashmind/mirrorsharp that referenced this issue Jun 5, 2024
ashmind added a commit that referenced this issue Jun 5, 2024
@Ciantic
Copy link

Ciantic commented Jun 5, 2024

I'm dying to know if this is valid C# 13:

using System;

Console.WriteLine(15.inch + 2.cm * 15.mm);

implicit extension TestUnits for int {
    public double mm => (double) this;
    public double inch => (double) this * (double) 25.4;
    public double cm => (double) this * (double) 10;
}

Absolute game changer for fans of units.

@BarionLP
Copy link

any progress on this?

@wherewhere
Copy link

Want extension...
😞

@ceztko
Copy link

ceztko commented Jun 26, 2024

+1 interest feedback.

ashmind added a commit to ashmind/mirrorsharp that referenced this issue Nov 18, 2024
ashmind added a commit to ashmind/mirrorsharp that referenced this issue Nov 18, 2024
@aetos382
Copy link
Author

Since the extensions have been merged into the main branch, I will close this issue, hoping that we will be able to try them on the main branch in the future.

@wherewhere
Copy link

But main branch is also broken...

@aetos382
Copy link
Author

That is sad, but it is a separate issue. Leaving this issue open will not help to resolve the problem.

@ceztko
Copy link

ceztko commented Apr 14, 2025

That is sad, but it is a separate issue. Leaving this issue open will not help to resolve the problem.

I think that only the maintainer should make such considerations. You opened the issue and the problem you verified is still present, without the maintainer telling you if e.g. a problem was solved and another problem emerged. There is currently no reason to close it.

@TwentyFourMinutes
Copy link

TwentyFourMinutes commented Apr 17, 2025

@cianti

I'm dying to know if this is valid C# 13:

using System;

Console.WriteLine(15.inch + 2.cm * 15.mm);

implicit extension TestUnits for int {
public double mm => (double) this;
public double inch => (double) this * (double) 25.4;
public double cm => (double) this * (double) 10;
}

Absolute game changer for fans of units.

FYI: This compiles!

var val = 100;

Console.WriteLine(val.mm); // Outputs: 1

public static class UnitExtensions
{
    extension(int val)
    {
        public int mm => 1;
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants