PR# 13687 Saving layout in debug mode and restoring makes debug mode indicator wrong
Problem Report Summary
Submitter: prestoat2000
Category: EiffelStudio
Priority: Medium
Date: 2007/11/28
Class: Bug
Severity: Serious
Number: 13687
Release: 6.1.71240
Confidential: No
Status: Closed
Responsible:
Environment: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.8.0.7) Gecko/20060915 Firefox/1.5.0.7
Solaris 9 on SPARC
Synopsis: Saving layout in debug mode and restoring makes debug mode indicator wrong
Description
Saving a layout while environment is in debug mode, switching to normal mode and then restoring the saved layout results in the debug mode indicator showing "normal mode" but the actual layout is "debug mode". This is a regression from 6.0 and a cause of great confusion.
To Reproduce
Delete ~/.es directory. Start estudio and compile a project. Move Class tool into zone with Clusters. Force environment into debug mode. Resize divider so Objects and Watch tools are visible (they initially are so short that I can't see any of their contents). Save layout as "aaa". Switch back to normal mode. Open layout "aaa". Now layout is the one saved when in debug mode, but debug mode indicator says we're in normal mode, which is wrong. Click on Debug Mode button. Still in debug mode layout. Click on Debug Mode button again. Still in debug mode layout. The normal (non-debug) mode layout appears to have been lost. Incredibly confusing.
Problem Report Interactions
Hi, David, In reivison#72390 we constrain Eiffel Studio end users only can load normal mode layouts when Eiffel Studio is normal mode, and only can load debug mode layouts when Eiffel Studio is debug mode. When end user try to load a debug layout when Eiffel Studio is in normal mode, Eiffel Studio will force debug mode first, and vice visa. This way will not confuse Eiffel Studio end users. ;)
It looks like I was tricked into thinking that there were separate layouts for Normal mode and Debug mode, because the default layout in 6.0 is different than the default layout in 6.1. So this is apparently not a regression from 6.0. Sorry for the confusion. In my mind at least, these are two independent unrelated layouts and you should consider changing estudio to implement that behavior for a future release. Closing report.
Hi, David, We have already discussed this issue in bug#12927. :) Eiffel Studio doesn't save both debug and non-debug widgets layouts at same time when saving layout. It only save current mode layout (normal or debug). So you can load a layout which saved in debug mode into normal mode Eiffel Studio, vice versa. So, the reason why Clusters Tool and Favorites Tool are not show after loaded `aaa' is they are not shown when you saving them in debug mode. Eiffel Studio 6.0 working in this way too. See attached Eiffel Studio 6.0 Flash video. After decompress, you can open the swf file with Firefox or others. Sorry for current layout saving mechanism make you confused. We decide whether to save both (normal and debug) widgets layouts at same time as you suggested in bug#12927 now.
This is definitely not fixed in rev 71364 - at least, it does *not* work the same as Eiffel 6.0, which was very intuitive. In Eiffel 6.0, after I switch to normal mode and restore the saved layout "aaa", the layout of the tools is exactly the same as the normal mode layout was when I saved "aaa" (even though I was in debug mode at the time). In Eiffel 6.1, after restoring "aaa" while in normal mode, the layout is completely different than what it was before I switched to debug mode. In particular, the Clusters and Favorites windows are not shown. Please make this work the way it did in 6.0. My mental model of a saved layout is something with two independent components. One component is the layout of tools in Normal mode and the other is the layout of tools in Debug mode. The two are completely independent. Restoring a layout and then switching to either Normal or Debug mode should show me the exact same tools and toolbars layout that were in effect for that mode at the time of the save. .... Output truncated, Click download to get the full message
This bug is fixed in revision#71354. Now Eiffel Studio 6.1 working in the same way as Eiffel Studio 6.0. When end users trying restore a debug mode layout in non-debug mode, all debug related tools will not appear (ignored). Thanks for your report.