Page 1 of 1

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

Posted: Mon 06 May 2013 02:44
by ODN
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

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

Posted: Mon 20 May 2013 07:33
by Shalex
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.

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

Posted: Fri 24 May 2013 15:37
by Shalex
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.

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

Posted: Thu 30 May 2013 14:23
by Shalex
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.