Giter Club home page Giter Club logo

Comments (11)

SeriousM avatar SeriousM commented on September 2, 2024

Hi, is there an update to this issue? It's happening in our project and it's bugging our devs...

from asyncfixer.

semihokur avatar semihokur commented on September 2, 2024

Looking at it, but an example would be great.

from asyncfixer.

semihokur avatar semihokur commented on September 2, 2024

Could not find anything wrong given that we do not have any implicit or explicit casting for the symbols. This might be due to a bug in the Roslyn APIs. The repro example would be nice to confirm this. Then, I can try updating Roslyn dependencies to see whether it mitigates the crash.

from asyncfixer.

lupusbytes avatar lupusbytes commented on September 2, 2024

I am having the exact same issue.
I can't seem to replicate it in a simpler way, so I'll just show exactly how I'm triggering the error.

        [FunctionName(nameof(SubscribeToOrders))]
        public async Task SubscribeToOrders(
            [SignalRTrigger(HubName, "messages", nameof(SubscribeToOrders), ConnectionStringSetting = "AppSettings:SignalRConnection")] InvocationContext invocationContext,
            [SignalRParameter] SubscribeToOrdersParameters parameters)
        {
            var groupManager = await invocationContext.GetGroupsAsync();

            var tasks = parameters.OrderIds.Select(x => groupManager.AddToGroupAsync(invocationContext.ConnectionId, $"order-{x}"));

            await Task.WhenAll(tasks);
        }

My workaround is to write it like this, and no errors show.

            var groupManager = await invocationContext.GetGroupsAsync();

            var tasks = new List<Task>();
            foreach (var orderId in parameters.OrderIds)
            {
                tasks.Add(groupManager.AddToGroupAsync(invocationContext.ConnectionId, $"order-{orderId}"));
            }

            await Task.WhenAll(tasks);

The error does not show the correct line or file.
File is CSC and line is 1.

from asyncfixer.

semihokur avatar semihokur commented on September 2, 2024

Thank you for the example. I could not repro it. Because the problem is related to the semantic model and symbol table, I need something compilable. Is that code snippet from a public Github repo?

from asyncfixer.

lupusbytes avatar lupusbytes commented on September 2, 2024

No it's not public unfortunately. When I get some spare time, I will create a compilable repository with just this code, so you can clone it.

from asyncfixer.

semihokur avatar semihokur commented on September 2, 2024

Great, thank you!

from asyncfixer.

lupusbytes avatar lupusbytes commented on September 2, 2024

https://github.com/lupusbytes/AsyncFixerBugExample

Let me know if this works for you

from asyncfixer.

lupusbytes avatar lupusbytes commented on September 2, 2024

Any progress on this issue ?

from asyncfixer.

fl-int avatar fl-int commented on September 2, 2024

I'm facing the same error with my code as well. Is there any workaround? Will this be fixed?

from asyncfixer.

devedse avatar devedse commented on September 2, 2024

I'm facing the same issue. Any plans to fix this?

from asyncfixer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.