Author Topic: CodeSnippets code duplication?  (Read 4677 times)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
CodeSnippets code duplication?
« on: September 29, 2011, 01:24:18 am »
Hello,

Can someone explain to me why there are many duplicate files in the CodeSnippet plugin?
Do I have to keep them in sync, when I change the original files?
(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!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: CodeSnippets code duplication?
« Reply #1 on: September 29, 2011, 07:23:28 am »
Hello,

Can someone explain to me why there are many duplicate files in the CodeSnippet plugin?
Do I have to keep them in sync, when I change the original files?

This is because this plugin is actually also a stand-alone application. And yes, you should keep them in sync. It's the same with the ThreadSearch plugin btw. Not nice, but that's how it is ATM.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: CodeSnippets code duplication?
« Reply #2 on: September 29, 2011, 09:44:44 am »
What is the purpose of this app? I've never used it.

Why don't we use something like:
Code
namespace snippets
{
#include "cbeditor.cpp"
}
(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!]

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2784
Re: CodeSnippets code duplication?
« Reply #3 on: September 29, 2011, 02:01:50 pm »
What is the purpose of this app? I've never used it.

Why don't we use something like:
Code
namespace snippets
{
#include "cbeditor.cpp"
}

The cbEditor code used by CodeSnippets has to be heavily modified to avoid issuing events to the main cb code. Thus it cannot simply be included.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: CodeSnippets code duplication?
« Reply #4 on: October 03, 2011, 11:17:04 am »
Can someone try to make the them in sync in trunk, because the ThreadSearch stuff is heavily out of sync?
When the sync is done, I'll try to sync the editor's code in the debugger's branch, too.
Because I suspect that it is out of sync, too.
(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!]

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2784
Re: CodeSnippets code duplication?
« Reply #5 on: October 05, 2011, 01:55:31 pm »
Can someone try to make the them in sync in trunk, because the ThreadSearch stuff is heavily out of sync?
When the sync is done, I'll try to sync the editor's code in the debugger's branch, too.
Because I suspect that it is out of sync, too.


I'll get to it as soon as I can. Right now, I don't have a lot of free time.