<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Bitstream Vera Sans'; font-size:10pt; font-weight:400; font-style:normal;">Hi,<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>I recently found that my kdevelop build doesn't show a context menu for the project view any more.  On debugging, I find that the git plugin tries to decide if it's going to provide a context menu extension, which causes a job to be executed and a new event loop created, so the execution seems to disappear into queryPluginsForContextMenuExtensions and never return.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>Could this bug be only affecting me because I don't have git installed?  If so, can the bug be fixed please...<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>(please ignore the line number in projecttreeview.cpp, it's wrong, i added debugging calls)<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>#0  0x00007ff31799ac76 in poll () from /lib/libc.so.6<br>
#1  0x00007ff317239366 in ?? () from /usr/lib/libglib-2.0.so.0<br>
#2  0x00007ff3172399af in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0<br>
#3  0x00007ff31e953f5c in QEventDispatcherGlib::processEvents (this=0x662a80, flags=@0x7fff26e595e0) at kernel/qeventdispatcher_glib.cpp:325<br>
#4  0x00007ff318647de7 in QGuiEventDispatcherGlib::processEvents (this=0x662a80, flags=@0x7fff26e59640) at kernel/qguieventdispatcher_glib.cpp:204<br>
#5  0x00007ff31e922e84 in QEventLoop::processEvents (this=0x7fff26e596f0, flags=@0x7fff26e596c0) at kernel/qeventloop.cpp:149<br>
#6  0x00007ff31e923080 in QEventLoop::exec (this=0x7fff26e596f0, flags=@0x7fff26e59700) at kernel/qeventloop.cpp:196<br>
#7  0x00007ff31d422ad1 in KJob::exec (this=<value optimized out>) at /opt/kde4/src/kdelibs/kdecore/jobs/kjob.cpp:194<br>
#8  0x00007ff30fe61fdb in GitProxy::isValidDirectory (this=0x9eefc0, dirPath=@0x7fff26e59890) at /opt/kde4/src/kdevplatform/plugins/git/gitproxy.cpp:66<br>
#9  0x00007ff30fe5e211 in GitPlugin::isVersionControlled (this=<value optimized out>, localLocation=@0xa) at /opt/kde4/src/kdevplatform/plugins/git/gitplugin.cpp:426<br>
#10 0x00007ff30fe5ed8d in GitPlugin::contextMenuExtension (this=0x95aa10, context=0x7fff26e59d50) at /opt/kde4/src/kdevplatform/plugins/git/gitplugin.cpp:213<br>
#11 0x00007ff31d0ea1b0 in KDevelop::PluginController::queryPluginsForContextMenuExtensions (this=0x80c680, context=0x7fff26e59d50) at /opt/kde4/src/kdevplatform/shell/plugincontroller.cpp:468<br>
#12 0x00007ff3115bc83b in ProjectTreeView::popupContextMenu (this=0x7cf0e0, pos=@0x7fff26e5b0c8) at /opt/kde4/src/kdevplatform/plugins/projectmanagerview/projecttreeview.cpp:184<br>
#13 0x00007ff3115be2cb in ProjectTreeView::qt_metacall (this=0x7cf0e0, _c=QMetaObject::InvokeMetaMethod, _id=-516, _a=0x7fff26e5a2c0) at /opt/kde4/build/kdevplatform/plugins/projectmanagerview/projecttreeview.moc:74<br>
#14 0x00007ff31e93a79d in QMetaObject::activate (sender=0x7cf0e0, from_signal_index=4, to_signal_index=4, argv=0x7fff26e5a2c0) at kernel/qobject.cpp:3007<br>
#15 0x00007ff31e93ac01 in QMetaObject::activate (sender=0x7cf0e0, m=0x7ff318fbea60, local_signal_index=0, argv=0x7fff26e5a2c0) at kernel/qobject.cpp:3080<br>
#16 0x00007ff3185f3bb3 in QWidget::customContextMenuRequested (this=0x7cf0e0, _t1=@0x7fff26e5b0c8) at .moc/debug-shared/moc_qwidget.cpp:348<br>
#17 0x00007ff318600032 in QWidget::event (this=0x7cf0e0, event=0x7fff26e5b0b0) at kernel/qwidget.cpp:7086<br>
#18 0x00007ff31894a11f in QFrame::event (this=0x7cf0e0, e=0x7fff26e5b0b0) at widgets/qframe.cpp:657<br>
#19 0x00007ff3189d6d78 in QAbstractScrollArea::viewportEvent (this=0x7cf0e0, e=0x7fff26e5b0b0) at widgets/qabstractscrollarea.cpp:941<br>
#20 0x00007ff318a71b85 in QAbstractItemView::viewportEvent (this=0x7cf0e0, event=0x7fff26e5b0b0) at itemviews/qabstractitemview.cpp:1426<br>
#21 0x00007ff318aa9ab8 in QTreeView::viewportEvent (this=0x7cf0e0, event=0x7fff26e5b0b0) at itemviews/qtreeview.cpp:1254<br>
#22 0x00007ff3189d9604 in QAbstractScrollAreaPrivate::viewportEvent (this=0x1271620, event=0x7fff26e5b0b0) at widgets/qabstractscrollarea_p.h:102<br>
#23 0x00007ff3189d9644 in QAbstractScrollAreaFilter::eventFilter (this=0x89b700, o=0x7cf3f0, e=0x7fff26e5b0b0) at widgets/qabstractscrollarea_p.h:113<br>
#24 0x00007ff31e924277 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x6666b0, receiver=0x7cf3f0, event=0x7fff26e5b0b0) at kernel/qcoreapplication.cpp:694<br>
#25 0x00007ff3185a63b6 in QApplicationPrivate::notify_helper (this=0x6666b0, receiver=0x7cf3f0, e=0x7fff26e5b0b0) at kernel/qapplication.cpp:3768<br>
#26 0x00007ff3185a76cd in QApplication::notify (this=0x7fff26e5bf70, receiver=0x7cf3f0, e=0x7fff26e5b0b0) at kernel/qapplication.cpp:3586<br>
#27 0x00007ff31cce288b in KApplication::notify (this=0x7fff26e5bf70, receiver=0x7cf3f0, event=0x7fff26e5b0b0) at /opt/kde4/src/kdelibs/kdeui/kernel/kapplication.cpp:311<br>
#28 0x00007ff31e925d3a in QCoreApplication::notifyInternal (this=0x7fff26e5bf70, receiver=0x7cf3f0, event=0x7fff26e5b0b0) at kernel/qcoreapplication.cpp:583<br>
#29 0x00007ff3185b22ff in QCoreApplication::sendSpontaneousEvent (receiver=0x7cf3f0, event=0x7fff26e5b0b0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218<br>
#30 0x00007ff31861ed1c in QETWidget::translateMouseEvent (this=0x787bb0, event=0x7fff26e5baf0) at kernel/qapplication_x11.cpp:4139<br>
#31 0x00007ff31861c510 in QApplication::x11ProcessEvent (this=0x7fff26e5bf70, event=0x7fff26e5baf0) at kernel/qapplication_x11.cpp:3133<br>
#32 0x00007ff3186485d5 in x11EventSourceDispatch (s=0x669db0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148<br>
#33 0x00007ff317236262 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0<br>
#34 0x00007ff317239516 in ?? () from /usr/lib/libglib-2.0.so.0<br>
#35 0x00007ff3172399af in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0<br>
#36 0x00007ff31e953f5c in QEventDispatcherGlib::processEvents (this=0x662a80, flags=@0x7fff26e5bd70) at kernel/qeventdispatcher_glib.cpp:325<br>
#37 0x00007ff318647de7 in QGuiEventDispatcherGlib::processEvents (this=0x662a80, flags=@0x7fff26e5bdd0) at kernel/qguieventdispatcher_glib.cpp:204<br>
#38 0x00007ff31e922e84 in QEventLoop::processEvents (this=0x7fff26e5be90, flags=@0x7fff26e5be50) at kernel/qeventloop.cpp:149<br>
#39 0x00007ff31e923080 in QEventLoop::exec (this=0x7fff26e5be90, flags=@0x7fff26e5beb0) at kernel/qeventloop.cpp:196<br>
#40 0x00007ff31e926584 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845<br>
#41 0x00007ff3185a613c in QApplication::exec () at kernel/qapplication.cpp:3304<br>
#42 0x0000000000406fa3 in main (argc=1, argv=0x7fff26e5cf28) at /opt/kde4/src/kdevelop/src/main.cpp:209<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>Cheers,<br>
Hamish.</p></body></html>