[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 260239] Renaming a variable affects only its declaration
From:       David Nolden <david.nolden.kde () art-master ! de>
Date:       2011-01-01 21:21:15
Message-ID: 20110101212115.4B71379B80 () immanuel ! kde ! org
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=260239





--- Comment #3 from David Nolden <david nolden kde art-master de>  2011-01-01 \
22:21:14 --- commit a16d5240b2a1fddd9b8917b04de57d07eaba8ad7
branch 1.2
Author: David Nolden <david.nolden.kde@art-master.de>
Date:   Thu Dec 30 23:11:48 2010 +0100

    backport from master: Don't completely ignore the retrieved top-context if
it is still flagged to require an update. Instead, simply show a warning
message on the status bar. (TODO: Find out why the update flag is not correct)

    CCBUG: 260239

diff --git a/language/duchain/navigation/usescollector.cpp
b/language/duchain/navigation/usescollector.cpp
index 0d11d80..1a501b2 100644
--- a/language/duchain/navigation/usescollector.cpp
+++ b/language/duchain/navigation/usescollector.cpp
@@ -32,6 +32,7 @@
 #include "../classmemberdeclaration.h"
 #include "../abstractfunctiondeclaration.h"
 #include "../functiondefinition.h"
+#include <interfaces/iuicontroller.h>

 using namespace KDevelop;

@@ -337,14 +338,22 @@ void UsesCollector::updateReady(KDevelop::IndexedString
url, KDevelop::Reference
   if(!m_staticFeaturesManipulated.contains(url))
     return; //Not interesting

-  if(!(topContext->features() & TopDUContext::AllDeclarationsContextsAndUses)
> > topContext->parsingEnvironmentFile()->needsUpdate()) {
+  if(!(topContext->features() & TopDUContext::AllDeclarationsContextsAndUses))
{
       ///@todo With simplified environment-matching, the same file may have
been imported multiple times,
       ///while only one of  those was updated. We have to check here whether
this file is just such an import,
       ///or whether we work on with it.
       ///@todo We will lose files that were edited right after their update
here.
-//       kDebug() << "context" << topContext->url().str() << "does not have
the required features";
+      kWarning() << "WARNING: context" << topContext->url().str() << "does not
have the required features!!";
+      ICore::self()->uiController()->showErrorMessage("Updating " +
ICore::self()->projectController()->prettyFileName(topContext->url().toUrl(),
KDevelop::IProjectController::FormatPlain) + " failed!", 5);
       return;
   }
+  
+  if(topContext->parsingEnvironmentFile()->needsUpdate()) {
+      kWarning() << "WARNING: context" << topContext->url().str() << "is not
up to date!";
+     
ICore::self()->uiController()->showErrorMessage(ICore::self()->projectController()->prettyFileName(topContext->url().toUrl(),
 KDevelop::IProjectController::FormatPlain) + " still needs an update!", 5);
+//       return;
+  }
+  

     IndexedTopDUContext indexed(topContext.data());
     if(m_checked.contains(indexed))

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic