Closed Zaid-Ajaj closed 3 years ago
That is really weird. Updating is certainly worth a shot, it won't hurt anything. However, TypeShape isn't pinned to a major version, are you sure you're not already deploying your application with v9?
You are right @kerams it looks like it this is just paket lock from the SAFE template. Maybe that's the problem
https://github.com/eiriktsarpalis/TypeShape/commit/a8be8c77f0719e557b3c7ead2a62b8b23f80758b#diff-6a7780a357a197c700a5c9acdacd22efa6ea59e35cfb542b4ad370acf8766565R147-R151
This has been added in v9 and according to the call stack you're hitting the . I have no problems with it locally either (.NET 5 runtime and TypeShape 9.0.0). Maybe ask Eirik if he has any idea what's up?#else
branch for some reason
In the meantime, I'm sure locking into v8 will help you.
Yeah I was talking to @isaacabraham about it (he reported the issue) and I think we should either update TypeShape to 9.0.0 or set better version constraints to say TypeShape should be >= 8.0.1 && < 9.0.0 because now paket (correctly) chose the highest matching version of TypeShape because we have only >= 8.0.1
@Zaid-Ajaj could you share the full stacktrace?
Are you consuming TypeShape using the nuget package or by embedding its source file? The former only targets netstandard2.0 which uses the workaround referenced in https://github.com/eiriktsarpalis/TypeShape/commit/a8be8c77f0719e557b3c7ead2a62b8b23f80758b#diff-6a7780a357a197c700a5c9acdacd22efa6ea59e35cfb542b4ad370acf8766565R147-R151
@eiriktsarpalis The stack trace was posted in TypeShape/#45. Do you recommend to use the source file or the nuget package v9?
Some weird FATAL runtime error occurs with TypeShape and it happens only on deployed application in azure (assuming it is running net5.0) but works locally just fine using either -c Debug or -c Release
So I am thinking it might have to do with TypeShape using an old reflection API so I think we should update it to latest 9.0.0 just in case. What do you think, @kerams?