StefanMaron / vsc-lintercop

MIT License
6 stars 6 forks source link

BusinessCentral.LinterCop.Design.Rule0033AppManifestRuntimeBehind warning on app.json file #15

Closed JacobVanAchter-esc closed 7 months ago

JacobVanAchter-esc commented 7 months ago

Hi,

For every project i get the following warning from Lintercop. I tried reinstalling, manually installing. Setting the execution Policy.

Analyzer 'BusinessCentral.LinterCop.Design.Rule0033AppManifestRuntimeBehind' threw an exception of type 'System.ArgumentOutOfRangeException' with message 'System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'index') at System.Linq.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument) at System.Linq.Enumerable.ElementAt[TSource](IEnumerable1 source, Int32 index) at BusinessCentral.LinterCop.Design.Rule0033AppManifestRuntimeBehind.FindValueOfFirstValueLessThan(SortedList2 sortedList, Version version) at BusinessCentral.LinterCop.Design.Rule0033AppManifestRuntimeBehind.CheckAppManifestRuntime(CompilationAnalysisContext ctx) at Microsoft.Dynamics.Nav.CodeAnalysis.Diagnostics.AnalyzerExecutor.<>c__DisplayClass48_1.<ExecuteCompilationActionsCore>b__0() in D:\a\_work\1\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\DiagnosticAnalyzer\AnalyzerExecutor.cs:line 618 at Microsoft.Dynamics.Nav.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock(DiagnosticAnalyzer analyzer, Action analyze, Nullable1 info) in D:\a_work\1\s\source\Prod\Microsoft.Dynamics.Nav.CodeAnalysis\DiagnosticAnalyzer\AnalyzerExecutor.cs:line 1102'`

JacobVanAchter-esc commented 7 months ago

moved to BC lintercop