Answered Empty Toolbox for DSL Tools Diagram in experimental hive

  • Wednesday, October 21, 2009 7:32 AM
     
     
    I created a DSL in Beta1 and migrated it using the DSL Tools Migration Tool. So my DSL is running in beta2. But I do have a problem when debugging the DSL in the experimental hive. There the toolbox is empty. When activating "Show all" in the toolbox context menu, I can see several tabs "(Cannot load resource '@MyToolboxTab;MyDsl.dll'.)" and similar ones for the uml diagrams from the architecture diagrams. When installing my DSL via the vsix in the default hive, everything shows up perfect.

    Does anyboy has an idea, what I can do to fix that issue? I already tried to run devenv with option /setup, I have reset the toolbox but nothing worked out. I always get the same "message" on the toolbox tabs.

    Thanks,
    Matthias

Answers

  • Thursday, October 22, 2009 9:37 AM
    Owner
     
     Answered

    Hi Matthias,

    Unfortunately this issue was detected a bit late and it will be fixed in RC.
    As a workaround, you can rebuild your DSL (or just delete the toolbox cache in exp hive) and then run the exp hive using CTRL+F5 instead of F5. When the solution will be opened you can attach a debugger and debug from that point.

    Let me know if the workaround helped you to overcome the problem.

    Eyal

    • Proposed As Answer by Anutthara - MSFT Thursday, October 22, 2009 11:11 AM
    • Marked As Answer by MatthiasRink Thursday, October 22, 2009 11:45 AM
    •  
  • Thursday, October 22, 2009 10:00 PM
    Owner
     
     Answered
    Thanks Mattias.
    Actually, I think you can run F5 directly as soon as you have run Ctrl+F5 at least once.

    Jean-Marc
    Jean-Marc
    • Marked As Answer by MatthiasRink Friday, October 23, 2009 6:35 AM
    •  

All Replies

  • Thursday, October 22, 2009 9:37 AM
    Owner
     
     Answered

    Hi Matthias,

    Unfortunately this issue was detected a bit late and it will be fixed in RC.
    As a workaround, you can rebuild your DSL (or just delete the toolbox cache in exp hive) and then run the exp hive using CTRL+F5 instead of F5. When the solution will be opened you can attach a debugger and debug from that point.

    Let me know if the workaround helped you to overcome the problem.

    Eyal

    • Proposed As Answer by Anutthara - MSFT Thursday, October 22, 2009 11:11 AM
    • Marked As Answer by MatthiasRink Thursday, October 22, 2009 11:45 AM
    •  
  • Thursday, October 22, 2009 11:45 AM
     
     
    Hi Eyal,

    this workaround works perfect. Thank you. It will be a bit frustrating always attach the debugger but hey, it works.

    Tanks,
    Matthias
  • Thursday, October 22, 2009 12:47 PM
     
     

    Hi,

    as a little helper for the frustrating part of always attach the debugger, I wrote a little Add-In which starts Visual Studio exp hive and after that attach the debugger to this process. So I do have an experience as pressing F5!

    So if someone is interested in this little tool, please feel free to ask me for it. I can then send you the sources or even post it here.

    Matthias 

    • Edited by MatthiasRink Friday, October 23, 2009 6:23 AM
    •  
  • Thursday, October 22, 2009 10:00 PM
    Owner
     
     Answered
    Thanks Mattias.
    Actually, I think you can run F5 directly as soon as you have run Ctrl+F5 at least once.

    Jean-Marc
    Jean-Marc
    • Marked As Answer by MatthiasRink Friday, October 23, 2009 6:35 AM
    •  
  • Friday, October 23, 2009 6:35 AM
     
     
    Hi Jean-Marc,

    you are right, running with F5 works for me now. All the time writing the Add-In for nothing. :)

    Anyway, thanks for your great job with the Beta2. There is so much things getting better with 2010, so I almost can't wait to see some samples of the new DSL features like DLS Libraries. Hope you will get the time for these samples soon.

    Matthias
  • Friday, October 23, 2009 6:41 AM
     
     
    OK, I was a little bit fast with my reply that running with F5 is working. In fact, the toolbox items are there but the label for them is showing the error message "(Cannot load resource ...)".

    See: http://cid-54d4d49f5b6be49d.skydrive.live.com/self.aspx/.Public/Toolbox.png

    So I will use my Add-In to start debugging.

    Matthias
  • Friday, October 23, 2009 9:52 AM
    Owner
     
     Proposed Answer
    After CTRL+F5 move your mouse over the all toolbox items. At this point the should be cached by VS.
    So when you'll F5 next time (without making any source changes, otherwise the toolbox cache will be deleted) it will load the tbx items from the cache and it should work. :-)
  • Friday, October 23, 2009 3:06 PM
    Owner
     
     
    This also affects UML extensibility.
    - Alan -MSFT
  • Monday, October 26, 2009 11:31 PM
    Owner
     
     
    Jean-Marc has posted more info about this issue on his blog:

    http://blogs.msdn.com/jmprieur/archive/2009/10/26/empty-toolbox-for-dsl-tools-diagram-in-experimental-hive.aspx  

     


    Esther Fan | User Education
  • Tuesday, March 09, 2010 9:54 AM
     
     
    I am getting this same issue with the VS 2010 RC - We have upgraded from Beta 2 to RC. I have tried the fixes but have not been able to get the toolbox items to load. The error is 'Cannot Load Resource: XXXXXXXX'

    Any help is greatly appreciated

    Thanks

    Phill
    BCS Meta Man - coming soon...
  • Tuesday, March 09, 2010 10:06 AM
     
     
    I will answer my question here :
    http://blogs.msdn.com/jmprieur/archive/2010/02/17/dsl-designers-built-from-migrated-beta-2-solutions-might-have-empty-toolbox.aspx

    It pays to explore a useful blog!
    BCS Meta Man - coming soon...
  • Saturday, September 10, 2011 1:59 PM
     
     
    I am using the current version some year and a half later and I still have this issue. The toolbox has the error "cannot load resource". I am not and never have used the beta or RC. This seems to be a real issue in the real version. Does anyone know how to debug this issue?