-
-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No GUI elements in Actions Window #62
Comments
Same thing happening here. ArchLinux x86_64 |
Also tried compiling from git (901a8a2), same problem. |
Hmm. Have you tried resizing the actions widget to be larger? One thing we recently did was to have all of those actions available in the "Actions" menu. The latest code on github has this. This should let you work without needing that widget. That widget hasn't changed much recently; the most recent change was to make it so that it automatically switched between a vertical and horizontal layout. I wonder if that code is tickling a Qt bug. That feature is not super important so we could change it to always be vertical like it was in the past. I can push out a test branch later tonight to test this theory. If that turns out to be the case then we'll have a new release soon with that feature reverted. |
I played with the widget without success. I resized it, moved it, put it elsewhere on the window, on a new tab (shared with the other widgets) and so on. When you say "horizontal layout" do you mean when the resize option is vertical only, and vice-versa? Thanx, I would try that branch if you push it :) |
Yeah, I've also tried resizing/docking around Actions widget without success. |
mainwindow: Simplify the 'Actions' widget PyQt4 4.7.4 loses its bearings when a widget modifies the We depended on this behavior to allow the actions widget to Simplify the code by just sticking to a vertical layout. Closed by 73acd20 Reported-by: alyst via github.com |
Actually, I'm not sure it is really fixed... |
The same with me, I've rebuild git-cola package with 'yaout git-cola-git', the actions.py is using QVBoxLayout, but still no buttons. @davvid maybe some debugging output would be useful ? |
Hmm, this is pretty weird. There's nothing particularly special about that widget. My desktop machine has:
I wonder if this is a regression in PyQt 4.7.4. I have fc12 on my work laptop so I could try upgrading to fc13 and see if that brings along 4.7.4. It's either that or try installing Arch linux in a VM. Is there a specific version of Arch I should grab? I'm not sure there's much debugging output can help here. The code is about as straightforward as it gets -- we're just creating QPushButtons and adding them to a QVBoxLayout. I've seen weird stuff happen in the past where Python garbage collections PyQt object prematurely, so I just pushed a commit that ensures that we keep a reference to the actions widget's layout. I'm shooting in the dark until I can get a newer version of PyQt4 to test with, but it doesn't hurt to try it nonetheless. |
cmds: Remove reference to non-existent utils.shell_quote() utils.shell_quote() was removed in favor of commands.mkarg(). Closed by 760a6a7 Signed-off-by: David Aguilar davvid@gmail.com |
Hmm, I was totally confused. You guys kept saying "actions dialog" and I kept thinking that you were talking about the "actions widget". I found a bug that was preventing the actions dialog from appearing. Doh. |
Just to get it right -- I'm talking about a dockable window with the array of buttons 'Push...', 'Pull...' etc, which sits in the right part of cola window. Not about dialogs, that are shown on button click (from menu they work ok). Maybe we can have debugging output of the button or layout coordinates/visibility flags. Or you can suggest us some PyQt window structure viewing utility to narrow the problem? |
Are things any better in 760a6a7 ? Also, is there any chance you can try PyQt 4.7.3? I've seen PyQt bugs in the past and I'm not prepared to rule it out. |
@davvid |
Thanx. I've tried pyqt 4.7.3 on i686 and the widgets are back ;) |
Thanks for trying out the older version of PyQt4. This is a little concerning. I think there are two things left to do. The first thing would be to contact the ArchLinux PyQt4 package maintainer and let them know about this regression. The 2nd thing is to let riverbank (PyQt4 authors) know about it as well. You guys are the first ones to report this problem with 4.7.4. I now have the fear that this problem will resurface as soon as other distributions start going to 4.7.4+. That means that getting this fixed upstream is very important. I did add code to the latest 'master' that holds a reference to the widget's layout, but that may not be related to this problem. I honestly wish I knew what exactly is triggering the bug. The weird thing is that the other widgets work just fine. Is it possible that moving the ~/.cola file aside could also fix it? We load the saved window state from that file so perhaps that could be tickling the bug? Thanks for your help. I'm going to keep this bug open until you guys have a chance to talk with either the Arch or PyQt4 maintainers. |
Deleting ~/.cola had no effect here... |
reported pyqt bug to ArchLinux: http://bugs.archlinux.org/task/20370 |
ArchLinux bug is closed, with 'Upstream' resolution. |
I'm seeing this problem in Ubuntu 10.10 Meerkat and Cola 1.4.2.1 |
Hmm okay I just pushed something to test. I'm going to install ubuntu in a vm and see if I get a firsthand look. For now, can you let me know if this makes any difference? git fetch pyqt has some sharp edges. it's unfortunate that this behavior changed post-4.7.3. hopefully we can find the right workaround. |
Actions still shows up empty. |
qt: Check layouts against None instead of assuming bool(layout) is True PyQt 4.7.3 no longer evaluates bool(layout) to True. Closed by dd6bb1a Signed-off-by: David Aguilar davvid@gmail.com |
Thanks everyone for your help. Today I learned to never assume that bool(some_qt_object) evaluates to True. There'll be a new release soon. |
For Fedora14 this problem still exist. @davvid what are the steps to follow to overcome this issue. We have given full updates till the date still problem is not rectified. Please assist me. |
I would talk to the git-cola fedora 14 package maintainer. This problem was fixed and released in 1.4.2.5. koji doesn't have that version packaged yet: The latest they have is 1.4.1.2. You can verify this by cloning the cola repo and running:
The problem shouldn't exist there. If it does, please let me know. |
@davvid Please talk with Fedora14 Package maintainer as we are still not getting your latest update 1.4.2.5 from regular update. |
latest which they have given 1.4.1.2 which doesn't have pull and push in action menu neither widget is showing anything. |
A newer build of cola is now available in koji for fedora: I'm pretty sure you should be able to install that RPM on any version of fedora. |
In recent update for Fedora14 i can see button. Thanks you for your help. |
At some point git-cola stopped showing buttons in actions window. Now it's just empty dockable/resizable window. Already tried reinstalling.
git: 1.7.2.1
git-cola: 1.4.2.2
py-qt: 4.7.4
python: 2.6.5
qt: 4.6.3
ArchLinux
The text was updated successfully, but these errors were encountered: