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

Onboarding: Null reference after install #233

Open SbiCA opened 1 month ago

SbiCA commented 1 month ago

Hey @HowardvanRooijen

First of all thanks for this awesome CLI tool!

I notice on my mac book M2 (so ARM) I get a null ref even after re-install.

Here is what I did, is there anything I can provide or help fix it?

I saw there probably was a related issue I tested the following

➜  ~ dotnet tool install -g adr

You can invoke the tool using the following command: adr
Tool 'adr' (version '1.1.8') was successfully installed.
➜  ~ adr templates show
      _           _                    _                         _
   __| |   ___   | |_   _ __     ___  | |_            __ _    __| |  _ __
  / _` |  / _ \  | __| | '_ \   / _ \ | __|  _____   / _` |  / _` | | '__|
 | (_| | | (_) | | |_  | | | | |  __/ | |_  |_____| | (_| | | (_| | | |
  \__,_|  \___/   \__| |_| |_|  \___|  \__|          \__,_|  \__,_| |_|

Error: Object reference not set to an instance of an object. 👈 
➜  ~

Update (workaround): I just figured out the initialisation was not trigger I was able to fix by creating a dummy adr somewhere and now it properly shows:

~/Documents/git/....:[master]
adr new "testing"
      _           _                    _                         _        
   __| |   ___   | |_   _ __     ___  | |_            __ _    __| |  _ __ 
  / _` |  / _ \  | __| | '_ \   / _ \ | __|  _____   / _` |  / _` | | '__|
 | (_| | | (_) | | |_  | | | | |  __/ | |_  |_____| | (_| | | (_| | | |   
  \__,_|  \___/   \__| |_| |_|  \___|  \__|          \__,_|  \__,_| |_|   

Creating /Users/.../Library/Application Support/endjin/adr
Creating /Users/.../Library/Application Support/endjin/adr/configuration
Creating /Users/.../Library/Application Support/endjin/adr/configuration/NuGet.Config
Creating /Users/.../Library/Application Support/endjin/adr/plugins
Creating /Users/.../Library/Application Support/endjin/adr/templates
      _           _                    _                         _        
   __| |   ___   | |_   _ __     ___  | |_            __ _    __| |  _ __ 
  / _` |  / _ \  | __| | '_ \   / _ \ | __|  _____   / _` |  / _` | | '__|
 | (_| | | (_) | | |_  | | | | |  __/ | |_  |_____| | (_| | | (_| | | |   
  \__,_|  \___/   \__| |_| |_|  \___|  \__|          \__,_|  \__,_| |_|   

Created ADR Record: "testing" in /Users/.../Documents/git/.../docs/adr