AdaskoTheBeAsT / Typewriter

Automatic TypeScript template generation from C# source files
http://frhagn.github.io/Typewriter
Apache License 2.0
62 stars 12 forks source link

How to get details from errors #18

Open luizfbicalho opened 1 year ago

luizfbicalho commented 1 year ago

I have this errors in my templates,

15:12:59.865 ERROR: Error rendering template. Cannot get identifier 'ImportReference'. Source path: C:\ProjetosGIT\Tenper\Biblioteca Autenticacao\MC.ASpnetCore.Identity.Controllers\Configuracao\ConstantesPermissao.cs
System.NullReferenceException: Object reference not set to an instance of an object.
   at __Typewriter.Template.ModelProperties(Class clas)
   at __Typewriter.Template.ImportReference(Class clas)
15:12:59.877 ERROR: Error rendering template. Cannot get identifier 'AssociationProperties'. Source path: C:\ProjetosGIT\Tenper\Biblioteca Autenticacao\MC.ASpnetCore.Identity.Controllers\Configuracao\ConstantesPermissao.cs
System.NullReferenceException: Object reference not set to an instance of an object.
   at __Typewriter.Template.ModelProperties(Class clas)
   at __Typewriter.Template.AssociationProperties(Class clas)

How can I inspect or understand whats going on, could put the line numbers on the stack trace?

AdaskoTheBeAsT commented 1 year ago

Hi,

Can you share some fragment in github repo to reproduce?

luizfbicalho commented 1 year ago

I think that I wrote really bad my question, this case is solved, but my issue is that I think that would be better to have more information like this for example

   at __Typewriter.Template.ModelProperties(Class clas) at line 26
   at __Typewriter.Template.AssociationProperties(Class clas) at line 52
AdaskoTheBeAsT commented 7 months ago

indeed but still - due to lack of time is not something which I will have time to deal with in near time