Author Topic: 2 Bugs in svn 3736  (Read 6851 times)

schoene

  • Guest
2 Bugs in svn 3736
« on: March 24, 2007, 12:09:29 pm »
Hello,

I encounter 2 bugs using C::B svn build rev 3736 (2007-03-21 08:22:53) gcc 4.0.3 Linux/unicode. Im Using Ubuntu 6.10.

1) Abbreviations:
--------------------------
I added an abbreviation for documenting my code. this is the code it should generate:
Code
//! |
/*!
    \param
    \return
    \see
*/
However, when I close C::B and reopen it, this code is changed into
Code
//! |
/*!
    \param
   
eturn
    \see
*/
probably the \r is parsed and replaced by a new-line? I have tried replacing \ by \\ but this did not work.

2) switching files using the mouse
--------------------------------------
When I have several files open in C::B, and I switch files by clicking on the tabs, sometimes (actually very often) the mouse-cursor changes into the cursor to copy a file somewhere else (for example dragging an icon on your desktop while pressing the control-key) , and Gnome hangs completely. I have to restart Gnome using Ctrl-Alt-Backspace before I can continue using my computer. Sometimes Gnome does not hang, and I can reset the mouse by pressing Alt-F to activate the menu in C::B. This bug was allready present in C::B-versions in January.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: 2 Bugs in svn 3736
« Reply #1 on: March 24, 2007, 01:18:26 pm »

2) switching files using the mouse
--------------------------------------
When I have several files open in C::B, and I switch files by clicking on the tabs, sometimes (actually very often) the mouse-cursor changes into the cursor to copy a file somewhere else (for example dragging an icon on your desktop while pressing the control-key) , and Gnome hangs completely. I have to restart Gnome using Ctrl-Alt-Backspace before I can continue using my computer. Sometimes Gnome does not hang, and I can reset the mouse by pressing Alt-F to activate the menu in C::B. This bug was allready present in C::B-versions in January.


This is a wxWidgets to GTK communications bug in drag&drop.
Not much CodeBlocks can do about it except turn off drag&drop on linux.

How can I disable drag&drop in GNOME? Please help me...  :(

You would compile wxWidgets yourself and set the define in setup.h to 0
Code
#define wxUSE_DRAG_AND_DROP 1

This might cause other side effects.

If its just wxFlatNotebook thats the problem, you could compile it with the wxFNB_NODRAG flag.


« Last Edit: March 24, 2007, 01:23:12 pm by Pecan »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: 2 Bugs in svn 3736
« Reply #2 on: March 24, 2007, 01:30:41 pm »
1) Abbreviations:
--------------------------
I added an abbreviation for documenting my code. this is the code it should generate:
Code
//! |
/*!
    \param
    \return
    \see
*/
However, when I close C::B and reopen it, this code is changed into
Code
//! |
/*!
    \param
   
eturn
    \see
*/
probably the \r is parsed and replaced by a new-line? I have tried replacing \ by \\ but this did not work.


I was unable to recreate your first reported bug. I pasted your example into a test abbreviation and it worked.

MSWindows


Linux
« Last Edit: March 24, 2007, 02:06:05 pm by Pecan »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: 2 Bugs in svn 3736
« Reply #3 on: March 24, 2007, 03:34:21 pm »
Sorry, you're right. This bug appeared somewhere between svn 3676 and 3736


Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: 2 Bugs in svn 3736
« Reply #4 on: March 24, 2007, 04:44:41 pm »
It's broken in Linux 3709 also. Will revert further...
Also broken in Linux 3688. Reverting further...
Also broken in Linux 3682... It happens when CB closes. It's mangling the abbreviation when saving the conf.

« Last Edit: March 24, 2007, 06:57:43 pm by Pecan »

Offline eranif

  • Regular
  • ***
  • Posts: 256
Re: 2 Bugs in svn 3736
« Reply #5 on: March 24, 2007, 05:43:26 pm »
Hi,
The second bug can happen if tabs drag and drop is enabled.

In this case, when you try to switch tabs using the mouse, the notebook thinks that a drag and drop operation begins and the cursor is then switched to the drag icon.

If this is indeed the case, try to disable drag and drop operation of the tab and file a bug report for wxFlatNotebook.

Eran



Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: 2 Bugs in svn 3736
« Reply #6 on: March 24, 2007, 07:42:56 pm »
It's broken in Linux 3709 also. Will revert further...
Also broken in Linux 3688. Reverting further...
Also broken in Linux 3682... It happens when CB closes. It's mangling the abbreviation when saving the conf.

I was wrong about this ever working. Since the error is caused by CB close and conf save, I only got it to work when I applied the abbreviation after newly entering it into the abbreviation editor.

It doesnt even work in svn 3652. It's always been in error.