Author Topic: SDK version mismatch when building IncrementalSearch from r7945  (Read 9018 times)

daniloz

  • Guest
Hi All,

I'm lost here. I'm building the IncrementalSearch plugin from the latest trunk (r7945) and when I launch C::B I got this weird error:
Code
Scanning for plugins in C:\Work\codeblocks_trunk\src\devel/share/codeblocks/plugins
SDK version mismatch for IncrementalSearch (1.11.18). Expecting 1.13.1

I mean, the error itself it pretty self-explainable, but I don't get why I'm getting it at all. I've looked into my src files, and in [trunk]//include/cbplugin.h, I see
Code
// this is the plugins SDK version number
// it will change when the SDK interface breaks
#define PLUGIN_SDK_VERSION_MAJOR 1
#define PLUGIN_SDK_VERSION_MINOR 13
#define PLUGIN_SDK_VERSION_RELEASE 1

Shouldn't then the IncrementalSearch plugin compiled with this cbplugin.h return 1.13.1 and not 1.11.18...

I have no idea where the 1.11.18 comes from... Help!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: SDK version mismatch when building IncrementalSearch from r7945
« Reply #1 on: April 27, 2012, 11:53:15 am »
I have no idea where the 1.11.18 comes from... Help!
Search your file system or do a full rebuild (probably a clean checkout is not a bad idea).
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

daniloz

  • Guest
Re: SDK version mismatch when building IncrementalSearch from r7945
« Reply #2 on: April 27, 2012, 11:58:32 am »
Search your file system or do a full rebuild (probably a clean checkout is not a bad idea).
I already searched my file system and there only definition I found was the correct one.
Also already tried a full rebuild from both CodeBlocks and IncrementalSearch plugin -> same thing

I'll try a clean checkout...

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: SDK version mismatch when building IncrementalSearch from r7945
« Reply #3 on: April 27, 2012, 12:12:19 pm »
Another thing to try is to see if the dll for the incremental search plugin is newly built.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

daniloz

  • Guest
Re: SDK version mismatch when building IncrementalSearch from r7945
« Reply #4 on: April 27, 2012, 12:16:28 pm »
Another thing to try is to see if the dll for the incremental search plugin is newly built.
Unfortunately, it is, I've already checked it. Even deleted it and a new is generated, so... :-(

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: SDK version mismatch when building IncrementalSearch from r7945
« Reply #5 on: April 27, 2012, 12:26:31 pm »
You have a broken precompiled header (.gch) file I guess. Try to delete them all.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

daniloz

  • Guest
Re: SDK version mismatch when building IncrementalSearch from r7945
« Reply #6 on: April 27, 2012, 12:51:49 pm »
You have a broken precompiled header (.gch) file I guess. Try to delete them all.
That was the problem! Thanks!

The strange thing (I don't completely understand how this precompiled headers work) is that I had two copies of the precompiled headers, one at [trunk]/.objs/include, which was up-to-date, and another copy at [trunk]/src/include from february.

I assume that the IncrementalSearch plugin was using the old ones at [trunk]/src/include.

But why the core-plugins were using the right ones? Is the location of the precompiled header settable somewhere? Even if it is so, why is the IncrementalSearch plugin not complaining that it cannot found the files and is now searching in the right location? :-o

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: SDK version mismatch when building IncrementalSearch from r7945
« Reply #7 on: April 27, 2012, 01:14:26 pm »
There was a change of the location of the pchs recently, I think.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

daniloz

  • Guest
Re: SDK version mismatch when building IncrementalSearch from r7945
« Reply #8 on: April 27, 2012, 01:50:52 pm »
There was a change of the location of the pchs recently, I think.
That explains a lot...

Thanks!!!!

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: SDK version mismatch when building IncrementalSearch from r7945
« Reply #9 on: April 27, 2012, 02:06:27 pm »
pch's   :'(