endjin / dotnet-adr

A cross platform .NET Global Tool for creating and managing Architectural Decision Records (ADRs).
https://endjin.com
Apache License 2.0
86 stars 11 forks source link

I'm getting an "Object reference not set to an instance of an object." when I try to use adr new #174

Closed rodrigojuarez closed 1 year ago

rodrigojuarez commented 1 year ago

On a clean computer, trying to run the commands like in the TLDR section will return the error when I try to use adr new "test"

image

image

Please let me know if you need any additional information

HowardvanRooijen commented 1 year ago

I can only apologise... let me investigate!

HowardvanRooijen commented 1 year ago

Ah OK. I've spotted an issue. The tool assumes you're in a folder structure that's part of a git repo. If you're just using it in a folder, like "adr" it will blow up. I'll add a fix - thanks for useful repro steps!

rodrigojuarez commented 1 year ago

I can confirm that it works as expected if you are inside a folder that is part of a git repo

HowardvanRooijen commented 1 year ago

That should be fixed in v1.1.4 which is available on nuget.org. Thanks for all the feedback - much appreciated. ♥️