Author Topic: codesnippets.bat  (Read 5941 times)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
codesnippets.bat
« on: April 04, 2007, 08:25:33 pm »
ON my windows system, in the output dir now popped up a codesnippets.bat (since the codesnippets updates).

Why does that have to be there, or is it a left over of a experiment.
I think the best thing would be if it is not there. 1 executable should be enough, so no others. (hehe those old darn batch files, the good old days ...)

EDIT : double clicking it, just gives me a lot of error boxes, and double clicking the exe in the plugins complains it doesn't find  wxscintilla.dll
« Last Edit: April 04, 2007, 08:27:37 pm by killerbot »

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: codesnippets.bat
« Reply #1 on: April 04, 2007, 08:43:47 pm »
So one more extra file is added. ;)

One Zero Byte file is coming up with Official Distribution for last couple of weeks which is surely a leftover. Just open <C::B_Dir>\share\CodeBlocks\plugins directory. You'll find a file named sta00336 :)
Be a part of the solution, not a part of the problem.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: codesnippets.bat
« Reply #2 on: April 04, 2007, 08:53:32 pm »
So one more extra file is added. ;)

One Zero Byte file is coming up with Official Distribution for last couple of weeks which is surely a leftover. Just open <C::B_Dir>\share\CodeBlocks\plugins directory. You'll find a file named sta00336 :)
will kill it, should be out of the next nightly

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: codesnippets.bat
« Reply #3 on: April 04, 2007, 08:56:44 pm »
will kill it, should be out of the next nightly

Thanks :)
Be a part of the solution, not a part of the problem.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2874
Re: codesnippets.bat
« Reply #4 on: April 05, 2007, 03:53:45 am »
ON my windows system, in the output dir now popped up a codesnippets.bat (since the codesnippets updates).

Why does that have to be there, or is it a left over of a experiment.
I think the best thing would be if it is not there. 1 executable should be enough, so no others. (hehe those old darn batch files, the good old days ...)

EDIT : double clicking it, just gives me a lot of error boxes, and double clicking the exe in the plugins complains it doesn't find  wxscintilla.dll

If you cd to .../src/devel then double click it, it actually runs CodeSnippets. Its a wrapper around the plugin.

It derives from an experiment to get wxAUI to run CodeSnippets reliably on Linux without snapping it into a dock window whenever you left click on a menu item.

wxAUI simply will not leave a Linux floating window alone. Any click on the main menu will dock all the windows whether you want it or not.

It's not a CodeSnippet's problem. It even happens with the floating debugger windows.

So for linux users, I left the wrapper in ../share/codeblocks/plugins. If a linux user wants to run CodeSnippets as a floating window without wxAUI interference they'll have to run the wrapper from ../share/codeblocks/plugins.

Since I test the code for both linux and MSW, I tested an equivalent .exe also (same code, different name).

The .bat & .sh files were just easy ways for me to run and test it. They also provide a starting point to explain to Linux users how to run as a floating window.


« Last Edit: April 05, 2007, 04:19:29 am by Pecan »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2874
Re: codesnippets.bat
« Reply #5 on: April 05, 2007, 01:57:11 pm »
Oh, I forgot to mention. As soon as wxAUI fixes this Linux bug, we can do away with the CodeSnippets floating window work-around.

But without it, Linux users will have to bite the bullet, live with the bug, and be unable to use a floating CodeSnippets.

From my perspective, it annoys the hell out of me not to be able to have floating windows and use the main menu at the same time.



« Last Edit: April 05, 2007, 02:02:10 pm by Pecan »