index > Visual Studio Team System - Domain-Specific Language Tools > Problems with DSL Tools Version 1

Problems with DSL Tools Version 1


Hello

I recently installed Visual Studio SDK September 06 which includes DSL Tools V1. The new features are really great and I was stunned what progress was made since the last version.
But now I encountered two problems. A small one and a bigger one.

Let's start with the bigger one: I created an language called ETDL. In the Debugging solution, when I create a new ETDL file, I'm able to open it in the designer and add shapes and connectors and stuff. But then, when I close the file and reopen it, I get an error saying "Cannot load xxx.etdl: An item with the same key has already been added." or the file is opened in the designer but the location of all shapes weren't saved.

The second problem is a small one. I added some element tools for the toolbox, including some custom icon bmp's. But in the designer's toolbox, some icons are not displayed, some are not.

Thanks for your help in advance!

Best regards



Christian Schweizer - Junior Software Engineer - ELCA Informatics AG
swissclash79
Here are some more information about the error I get:

Stacktrace:
swissclash79

Hi swissclash

We've not seen this issue.

Are you able to send us your model file to investigate?

You can mail it to gareth.jones@microsoft.com if you're able to.




Gareth Jones - Developer - DSL Tools & Software Factories Platform [MSFT]
GarethJ - MSFT
Hi Gareth

Thanks for your reply. I have just created a new DSL solution to see if I can reproduce the error. I created just two domain classes, a comment class which inherites from a root class and its representing shape class. This also results in the same error as I mentioned above.

I'll mail you this dsl file as soon as possible.

Best regards
Christian



Christian Schweizer - Junior Software Engineer - ELCA Informatics AG
Christian Schweizer
Gareth

I found the solution for my problem. In my model, I'vd defined a class "Comment" which was mapped to a shape "CommentShape".
When I renamed Comment to ModelComment, everything worked fine again.



Christian Schweizer - Junior Software Engineer - ELCA Informatics AG
Christian Schweizer

Hi Christian,

I've managed to repro this, but I couldn't make it fail with a model element named Comment,

However, it fails every time if the shape name is CommentShape.

Can you confirm if this is where you're seeing the failure please as your last post sounds liek changing the domainclass name fixed the problem, not changing the shape name.




Gareth Jones - Developer - DSL Tools & Software Factories Platform [MSFT]
GarethJ - MSFT
Hello Gareth

I can confirm that the error happens when the shape is named "CommentShape". Somehow, I didn't mixed this up in my last post.
For me, everything works fine now, thanks for your investigation anyway. I am really impressed by the DSL Tools project and looking forward to dig in deeper in this!

Best regards
Christian




Christian Schweizer - Junior Software Engineer - ELCA Informatics AG
Christian Schweizer
reply 7

You can use google to search for other answers

 

More Articles

A minor gotcha: reserved words
Making a reference from a connector class
Migrating to May CTP: MissingManifestResource Exception was unhan...
Add shapes and connectors to diagram programmatically
Transitions shapes not draggable/Package Load Failure
Multiple viewpoints/ zoom in, zoom out
Custom action on dropping items onto the design surface
Localization
What can be created with DSL?
Setting the default expanded state for a compartment
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Fixed diagram layout
The definition of Triangle and Rectangle…
problem with connector
Domain Model Definition Schema
Programmatically creating diagrams
UIPAB
where can ? find info about DSL?
Relationship representation
Announcing DSL Tools May 2005 CTP for Vi…
Syntax coloring for .ReportTemplate (T3)…
class factory
Getting validation results
Extending a DSL post-deployment
How to create multiple diagrams associat…
Bug in Edit Attributes editor

Hot Articles

Suggestion - Context Menu: Override Beha…
Zoom feature
my feedback about dsl
DSL Tools outside VS?
bidirectional connectors
How to use a developed DSL?
Transaction.RollBack() Error: Oject refe…
Self-contained Embedding
How to expose domain model objects throu…
How to set the tooltip for the shapes an…
No more RedistInstallDir registry value …
Customising standard context menu items
Experimental UI - show and hide shapes a…
Copy/Paste
RelationShip ZeroOne-ZeroMany as property

Recommend Articles

The definition of Triangle and Rectangle…
DSL Tools November CTP and VS SDK Decemb…
Change a connector's from and to endpoin…
Troubleshooting: replicating toolbox items
Model Query Capabilities
Show more than one Property in a Compart…
Deployment - template doesn't appear und…
HELP!!!...There is no: File > Export …
DSL Tools Sept CTP and WinFX Sept CTP?
How To Navigate over Links
How to get a programmatic reference on t…
ReportTemplate Folder
package load failure in referencing exte…
Syntax coloring for .ReportTemplate (T3)…
Licensing & pricing