Hello, On Oct 27 11:00 Donn Washburn wrote (shortened):
... I was in a console tty1 as root trying to setup my scanner. So, yast2/Hardware/Scanner/(given some time)/<ALT>i. It exited and went to the main yast2 menu
I.e. you don't use it in graphical mode but in text mode (ncurses) where <ALT>i is the keyboad shortcut to click the [Edit] button. When I do this on my workstation it does also not work. I get a nice terrifying red popup error message: --------------------------------------------------------- UI Syntax Error Invalid arguments for the PushButton widget Check the log file! [Close] --------------------------------------------------------- While this popup is shown there is at its current end in /var/log/YaST2/y2log ------------------------------------------------------------------------ [YCP] scanner/dialogs.ycp:548 OverviewDialog returns: `edit . . . [ui] YDialog.cc(setDefaultButton):305 Too many `opt(`default) PushButtons: [&Search] [libycp] Wizard.ycp:859 Widget id `back is not unique [libycp] Wizard.ycp:859 Invalid arguments for the PushButton widget: `PushButton (`id (`back), `opt (`key_F9), "&Cancel") [ui] YCPDialogParser.cc(parsePushButton):1405 THROW: Invalid arguments for the PushButton widget [ui] YCP_UI.cc(ReplaceWidget):830 CAUGHT: Invalid arguments for the PushButton widget [libycp] Wizard.ycp:859 UI::ReplaceWidget() failed: UI::ReplaceWidget( `id (`rep_abort), `PushButton (`id (`back), `opt (`key_F9), "&Cancel") ) [ui] YPushButton.cc(setFunctionKey):160 Guessing button role YOKButton for YPushButton "Close" at 0x87c2e30 from function key F10 ------------------------------------------------------------------------ Nevertheless the error is not fatal for me because when I [Close] the popup I can proceed and set up a scanner driver as usual. Regarding the root cause of the error: Because of the "Widget id `back is not unique" message I searched for '`back' in the source code in the YaST scanner module and found only one interesting spot in /usr/share/YaST2/include/scanner/dialogs.ycp ------------------------------------------------------------------------------- any SelectModelDialog() ... Wizard::SetContentsButtons( caption, contents, HELPS["select_model"]:"", Label::BackButton(), Label::NextButton() ); // According to http://en.opensuse.org/YaST/Style_Guide#Configuration_Wizard // there is no longer a "abort" functionality which exits the whole module. // Instead this button is now named "Cancel" and its functionality is // to go back to the Overview dialog (i.e. what the "back" button would do) // because it reads "Cancel - Closes the window and returns to the overview." Wizard::SetAbortButton( `back, Label::CancelButton() ); // According to http://en.opensuse.org/YaST/Style_Guide#Configuration_Wizard // the button with the "back" functionality must be disabled // when it is the first dialog of a wizard stlye dialog sequence. Wizard::DisableBackButton(); -------------------------------------------------------------------------------
From my current point of view it looks very much like one more issue because of the expected mess with our unstable continuously changing guidelines, see https://bugzilla.novell.com/show_bug.cgi?id=440560#c5 and https://bugzilla.novell.com/show_bug.cgi?id=443684 and in particular read http://lists.opensuse.org/yast-devel/2009-01/msg00030.html
I cannot fix it because I cannot implement according to continuously changing guidelines. First we must have stable guidelines, then we can make a stable YaST base system according to the guidelines, finally I can implement a stable running YaST module based upon a stable YaST base system according to the stable guidelines. Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany AG Nuernberg, HRB 16746, GF: Markus Rex -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org