Skip to content
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

NRE with v2.1.0 #50

Closed
gregsdennis opened this issue Mar 5, 2021 · 0 comments · Fixed by #51
Closed

NRE with v2.1.0 #50

gregsdennis opened this issue Mar 5, 2021 · 0 comments · Fixed by #51
Labels
bug Something isn't working

Comments

@gregsdennis
Copy link
Contributor

gregsdennis commented Mar 5, 2021

Running with any of the new configuration points in the config file. Getting NRE:

Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
   at Pushpay.SemVerAnalyzer.AppSettings.GetOverrideType(Type ruleType) in /home/runner/work/semantic-versioning-analyzer/semantic-versioning-analyzer/source/SemVerAnalyzer/AppSettings.cs:line 16
   at Pushpay.SemVerAnalyzer.AppModule.<Load>b__2_1(Type t) in /home/runner/work/semantic-versioning-analyzer/semantic-versioning-analyzer/source/SemVerAnalyzer/AppModule.cs:line 25
   at Autofac.Features.Scanning.ScanningRegistrationExtensions.<>c__DisplayClass3_2.<ScanTypes>b__3(Func`2 p)
   at System.Linq.Enumerable.All[TSource](IEnumerable`1 source, Func`2 predicate)
   at Autofac.Features.Scanning.ScanningRegistrationExtensions.<>c__DisplayClass3_0.<ScanTypes>b__2(Type t)
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at Autofac.Features.Scanning.ScanningRegistrationExtensions.ScanTypes(IEnumerable`1 types, IComponentRegistryBuilder cr, IRegistrationBuilder`3 rb)
   at Autofac.Features.Scanning.ScanningRegistrationExtensions.ScanAssemblies(IEnumerable`1 assemblies, IComponentRegistryBuilder cr, IRegistrationBuilder`3 rb)
   at Autofac.Features.Scanning.ScanningRegistrationExtensions.<>c__DisplayClass0_0.<RegisterAssemblyTypes>b__0(IComponentRegistryBuilder cr)
   at Autofac.ContainerBuilder.Build(IComponentRegistryBuilder componentRegistry, Boolean excludeDefaultModules)
   at Autofac.ContainerBuilder.UpdateRegistry(IComponentRegistryBuilder componentRegistry)
   at Autofac.Module.Configure(IComponentRegistryBuilder componentRegistry)
   at Autofac.ContainerBuilder.Build(IComponentRegistryBuilder componentRegistry, Boolean excludeDefaultModules)
   at Autofac.ContainerBuilder.Build(ContainerBuildOptions options)
   at Pushpay.SemVerAnalyzer.Program.ConfigureServices(IConfiguration config, CompareCommand command) in /home/runner/work/semantic-versioning-analyzer/semantic-versioning-analyzer/source/SemVerAnalyzer/Program.cs:line 70
   at Pushpay.SemVerAnalyzer.Program.Compare(CompareCommand command) in /home/runner/work/semantic-versioning-analyzer/semantic-versioning-analyzer/source/SemVerAnalyzer/Program.cs:line 26
   at CommandLine.ParserResultExtensions.WithParsedAsync[T](ParserResult`1 result, Func`2 action)
   at Pushpay.SemVerAnalyzer.Program.Main(String[] args) in /home/runner/work/semantic-versioning-analyzer/semantic-versioning-analyzer/source/SemVerAnalyzer/Program.cs:line 20
   at Pushpay.SemVerAnalyzer.Program.<Main>(String[] args)

Might be a bigger issue with reading from the config file. All of the command line options work.


Also, it doesn't seem that --assume-changes is doing the thing. See json-everything/json-everything#83 (comment)

@gregsdennis gregsdennis added the bug Something isn't working label Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant