-
-
Notifications
You must be signed in to change notification settings - Fork 301
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
NullReferenceException when using Reverse Engineering with Handlebars #463
Comments
Maybe #450 ? |
I removed the |
No idea - let's ask @tonysneed |
Let me check. |
I have not been able to replicate the error. Here is the version of EFCPT I am using: 2.4.157.0 I have reverse engineered both SQL Server and MySQL databases, checking the option to Customize Code using Handlebars templates. In both cases there were no errors at all. @hanselsen What is the exact version of EFCPT you are using? |
We probably need your schema! |
Is there a way I can send it to you privately? |
Sure, email me ejlskov at Hotmail dot com |
@tonysneed I also use 2.4.157. I mailed @ErikEJ my schema. |
@hanselsen I just realize you are using MySQL - most likely an issue with your provider - are you using Pomelo? |
Yes. It's Pomelo 3.2.1 |
@hanselsen Look like a Handlebars bug - see TrackableEntities/EntityFrameworkCore.Scaffolding.Handlebars#136 |
Should be fixed in latest daily build, please try it out and let me know. |
I now have version 2.4.163, but it is still showing the same NRE. |
I think you need to verify the bug, using Handlebars from the command line as described here: https://github.com/TrackableEntities/EntityFrameworkCore.Scaffolding.Handlebars#usage and if you are able to do so, file a bug in the Handlebars repo. |
Alright. Updating the Handlebars package to 3.8.3 did the trick. |
@hanselsen I do not understand - the latest Power Tools build also uses 3.8.3 !? |
Could it be that it used the installed Nuget package (so, old) instead of the package that is bundled with Power Tools? |
What is installed in your project and by Power Tools are two completely different things! Power Tools does not run your app. |
I would think so, but after updating the Nuget package to 3.8.3, it worked... |
Right now, I have
But it stopped working again... this is getting frustrating. |
Maybe you still have the old version of the extension hanging around, |
I cleared the cache. Reinstalled the Power Tools and still the NRE. In combination with the Power Tools however, nothing. |
I could have made a mistake when I merged - will rebuild the tooling a prep a newer Power Tools build |
Update on the way! (Build .164 or newer) |
Once installed, you can locate EntityFrameworkCore.Scaffolding.Handlebars.dll and verify the Product version from File Properties |
Awesome! It works. Thanks for the great tool! |
I have this configuration and I already have the
CodeTemplates
folder in my project.Using VS2019, MySQL 8 and EFCorePowerTools 2.4
And I get this result:
Any ideas?
The text was updated successfully, but these errors were encountered: