-
Notifications
You must be signed in to change notification settings - Fork 31
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
Error message in rule 40 #438
Comments
I have no idea what could cause this error, a repo with a small code sample could be of great help. If I have to take a guess; One of the build-in methods below, is performed on a variable which is not of type Record of RecordRef?
|
I've maybe have found a way to mitigate this error message. Can you try the prelease v0.30.10 version of the LinterCop and see if this makes any difference? |
Yes, it helped. Error message disappeared. |
Awesome, thanks for verifying this! |
Analyzer 'BusinessCentral.LinterCop.Design.Rule0040ExplicitlySetRunTrigger' threw an exception of type 'System.InvalidCastException' with message 'System.InvalidCastException: Unable to cast object of type 'Microsoft.Dynamics.Nav.CodeAnalysis.BoundObjectAccess' to type 'Microsoft.Dynamics.Nav.CodeAnalysis.IFieldAccess'.
at Microsoft.Dynamics.Nav.CodeAnalysis.OperationExtensions.GetSymbol(IOperation operation) in D:\a_work\1\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\Compilation\OperationExtensions.cs:line 37
at BusinessCentral.LinterCop.Design.Rule0040ExplicitlySetRunTrigger.AnalyzeRunTriggerParameters(OperationAnalysisContext ctx)
at Microsoft.Dynamics.Nav.CodeAnalysis.Diagnostics.AnalyzerExecutor.<>c__DisplayClass53_1.b__1() in D:\a_work\1\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\DiagnosticAnalyzer\AnalyzerExecutor.cs:line 766
at Microsoft.Dynamics.Nav.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock(DiagnosticAnalyzer analyzer, Action analyze, Nullable`1 info) in D:\a_work\1\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\DiagnosticAnalyzer\AnalyzerExecutor.cs:line 1102'
I have this error message only in one extension. I'm not sure what exactly does it mean.
The text was updated successfully, but these errors were encountered: