Bug : edml content loss when unloading projects into which template output is generated

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
ODN
Posts: 10
Joined: Mon 14 Jan 2013 05:25

Bug : edml content loss when unloading projects into which template output is generated

Post by ODN » Mon 06 May 2013 02:44

I have lost the work of a couple of days which I spent on modifying the data model via the visual edml editor. :evil:

The edml content gets lost after saving modified model when one of the projects in the solution was previously unloaded into which a template output is generated - even though enabled set to false -.

Scenario:

Model project contains the edml model with several templates which generate code into several other projects.
If I have a template's output set to a project that has been temporarilly unloaded (via project -> right click -> unload project) even though the enable property of that template has been set to false, the following error occurs "Custom tool error: Object reference not set to an instance of an object".
The edml model content gets completely erased (0 kb file size)!!!! which in turn gives the following error : "XML document must contain a root level element".
This is reproducable! If you re-enable the unloaded project, the errors disappear and everything works again as expected except for the lost model.

Project.DataAccess
Project.DataAccess.Interfaces
Project.Entities
Project.Model
- Model.edml
- Templates
-- DbContext
-- Repository
-- MVC Controller
--- Enabled = false
--- Output = Project.Presentation.Mvc
-- MVC View Advanced
--- Enabled = false
--- Output = Project.Presentation.Mvc
Project.Presentation.Wpf
Project.Presentation.Mvc (unavailable)

Devart Entity Developer 5.5.89 (licensed) / VS 2012 / Win 7

Shalex
Site Admin
Posts: 8247
Joined: Thu 14 Aug 2008 12:44

Re: Bug : edml content loss when unloading projects into which template output is generated

Post by Shalex » Mon 20 May 2013 07:33

Thank you for your report. We have reproduced the "Custom tool error: Object reference not set to an instance of an object" error and erasing model with the latest 5.5.105 build of Entity Developer. Sorry for the inconvinience. We are investigating the issue.

Shalex
Site Admin
Posts: 8247
Joined: Thu 14 Aug 2008 12:44

Re: Bug : edml content loss when unloading projects into which template output is generated

Post by Shalex » Fri 24 May 2013 15:37

The bug with generating NRE when setting the output of the template to the unloaded project is fixed. We will post here when the corresponding build of Entity Developer is available for download.

Shalex
Site Admin
Posts: 8247
Joined: Thu 14 Aug 2008 12:44

Re: Bug : edml content loss when unloading projects into which template output is generated

Post by Shalex » Thu 30 May 2013 14:23

New build of Entity Developer 5.5.115 is available for download now!
It can be downloaded from http://www.devart.com/entitydeveloper/download.html (trial version) or from Registered Users' Area (for users with active subscription only).
For more information, please refer to http://forums.devart.com/viewtopic.php?f=32&t=27232.

Post Reply