sanic
sanic
CC#
Created by Kiel on 4/18/2023 in #help
❔ Weird Record compilation error: "must be a readable instance property or field"
I wouldn't include the diagnostic ID in the issue title, just paraphrase the general diagnostic message, e.g. "'Record member does not match positional parameter' diagnostic message is unclear" or something like that.
28 replies
CC#
Created by Kiel on 4/18/2023 in #help
❔ Weird Record compilation error: "must be a readable instance property or field"
Yeah, just describe your scenario, if someone tries to fix it we can consider if any other related diagnostics should also be changed.
28 replies
CC#
Created by Kiel on 4/18/2023 in #help
❔ Weird Record compilation error: "must be a readable instance property or field"
It would be handy if you could file a bug on us, asking us to use a symbol display format which makes it more clear what the offending member is. e.g. if it was
Record member 'LfsResponseObject.Error(string, HttpStatusCode)' must be a readable instance property or field
I think it would be clear
28 replies
CC#
Created by Kiel on 4/18/2023 in #help
❔ Weird Record compilation error: "must be a readable instance property or field"
Does the error go away if you explicitly shadow this method (e.g. explicitly add an Error property to the type where the error is being reported.)
28 replies
CC#
Created by Kiel on 4/18/2023 in #help
❔ Weird Record compilation error: "must be a readable instance property or field"
I feel like if we had used different symbol display options in the diagnostic, this would have been pretty easy to identify.
28 replies
CC#
Created by Kiel on 4/18/2023 in #help
❔ Weird Record compilation error: "must be a readable instance property or field"
Are you sure the base clause is not binding to another definition of LfsResponseObject from somewhere which has an Error property on it
28 replies
CC#
Created by ascpixi on 4/8/2023 in #help
✅ (solved!) "System.InvalidOperationException: Sequence contains no elements" error from Roslyn
thanks! And don't worry about it. 🙂 These are bugs we would probably file on ourselves if we discovered them, even if we might not go out of our way to fix them.
46 replies
CC#
Created by ascpixi on 4/8/2023 in #help
✅ (solved!) "System.InvalidOperationException: Sequence contains no elements" error from Roslyn
Not sure if bug will be prioritized 😉 but good to have a record of it.
46 replies
CC#
Created by ascpixi on 4/8/2023 in #help
✅ (solved!) "System.InvalidOperationException: Sequence contains no elements" error from Roslyn
If compiler needs to use a well-known member like this, we usually want it to report a binding-time error if the member doesn't exist
46 replies
CC#
Created by ascpixi on 4/8/2023 in #help
✅ (solved!) "System.InvalidOperationException: Sequence contains no elements" error from Roslyn
It might be good if you could file a bug on us
46 replies
CC#
Created by ascpixi on 4/8/2023 in #help
✅ (solved!) "System.InvalidOperationException: Sequence contains no elements" error from Roslyn
Well! I'm glad I could help figure it out..
46 replies
CC#
Created by ascpixi on 4/8/2023 in #help
✅ (solved!) "System.InvalidOperationException: Sequence contains no elements" error from Roslyn
D:
46 replies
CC#
Created by ascpixi on 4/8/2023 in #help
✅ (solved!) "System.InvalidOperationException: Sequence contains no elements" error from Roslyn
Is there any chance your project is referencing a bogus definition of System.Nullable?
46 replies
CC#
Created by ascpixi on 4/8/2023 in #help
✅ (solved!) "System.InvalidOperationException: Sequence contains no elements" error from Roslyn
I think this is saying: the type of the a?.b expression is a Nullable, so we essentially want to make an expression like new int?(a.b), and for some reason, we found no constructor on int? with a single parameter.
46 replies
CC#
Created by ascpixi on 4/8/2023 in #help
✅ (solved!) "System.InvalidOperationException: Sequence contains no elements" error from Roslyn
46 replies
CC#
Created by ascpixi on 4/8/2023 in #help
✅ (solved!) "System.InvalidOperationException: Sequence contains no elements" error from Roslyn
version of the compiler in use? (can determine by adding #error version to your code)
46 replies
CC#
Created by ascpixi on 4/8/2023 in #help
✅ (solved!) "System.InvalidOperationException: Sequence contains no elements" error from Roslyn
what's the type of value1? Are you able to share the project which the compiler is crashing on?
46 replies