Summary: | Jump to error (from the ouput "Messages" window) does NOT open the corresponding file | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Achim Spangler <Achim.Spangler> |
Component: | general | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | Patch which solves the JumpToError problem for me |
Description
Achim Spangler
2007-01-16 16:31:22 UTC
Created attachment 19304 [details]
Patch which solves the JumpToError problem for me
I hope that this patch is reasonable and can be merged.
Bye,
Achim
I haven't tested yet, but both changes look correct. KURL::addPath() definitely should be used, and checking KIO::NetAccess::exists() against the partial url is clearly wrong. SVN commit 624237 by dagerbo: Fix partial url lookup. Thanks to Achim Spangler for the patch! BUG: 140161 M +6 -4 partcontroller.cpp --- branches/kdevelop/3.4/src/partcontroller.cpp #624236:624237 @@ -285,17 +285,19 @@ if ( API::getInstance()->project() ) { if (url.isRelativeURL(url.url())) { - KURL relURL(API::getInstance()->project()->projectDirectory(), url.url()); + KURL relURL(API::getInstance()->project()->projectDirectory()); + relURL.addPath( url.url() ); kdDebug() << k_funcinfo << "Looking for file in project dir: " << API::getInstance()->project()->projectDirectory() << " url " << url.url() << " transformed to " << relURL.url() << ": " << done << endl; - if (relURL.isValid() && KIO::NetAccess::exists(url, false, 0)) { + if (relURL.isValid() && KIO::NetAccess::exists(relURL, false, 0)) { url = relURL; done = true; } else { - KURL relURL(API::getInstance()->project()->buildDirectory(), url.url()); + KURL relURL(API::getInstance()->project()->buildDirectory()); + relURL.addPath( url.url() ); kdDebug() << k_funcinfo << "Looking for file in build dir: " << API::getInstance()->project()->buildDirectory() << " url " << url.url() << " transformed to " << relURL.url() << ": " << done << endl; - if (relURL.isValid() && KIO::NetAccess::exists(url, false, 0)) { + if (relURL.isValid() && KIO::NetAccess::exists(relURL, false, 0)) { url = relURL; done = true; } I'm using KDevelop-3.4 from kubuntu feisty's packages. The jump-to error works only if the file is already open in editor. Otherwise - no success. Still no success. NOTE: I'm using 'c++ app/custom makefile' project type. Sorry for being grumpy, but this bug was reported many many times during last years... Will this ever work? |