News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

2 Bugs in svn 3736

Started by schoene, March 24, 2007, 12:09:29 PM

Previous topic - Next topic

schoene

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:
//! |
/*!
    \param
    \return
    \see
*/

However, when I close C::B and reopen it, this code is changed into
//! |
/*!
    \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.

Pecan

#1
Quote from: schoene on March 24, 2007, 12:09:29 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.


Quote from: Pecan on November 13, 2006, 08:45:20 PM
Quote from: nzoltan on November 13, 2006, 06:12:44 PM
Quote from: Pecan on November 13, 2006, 01:08:53 PM
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

#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.



Pecan

#2
Quote from: schoene on March 24, 2007, 12:09:29 PM
1) Abbreviations:
--------------------------
I added an abbreviation for documenting my code. this is the code it should generate:
//! |
/*!
    \param
    \return
    \see
*/

However, when I close C::B and reopen it, this code is changed into
//! |
/*!
    \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

Pecan

Sorry, you're right. This bug appeared somewhere between svn 3676 and 3736


Pecan

#4
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.


eranif

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



Pecan

Quote from: Pecan 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.

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.