Developer forums (C::B DEVELOPMENT STRICTLY!) > Contributions to C::B

Possible BUGS !

(1/1)

Saswat2603:
I am using C::B build 5382 on Windows XP SP3. While writing a program yesterday, I found 3 (possible) bugs :

1. Incorrect data-type tool-tip

When I hover mouse over some variables, C::B displays the data-type of that variable in a tool-tip. But I hover mouse over some others, it shows some weird stuff along with data-type. To be specific, I have marked that C::B gets confused about the data-type when I use prefix increments( ++C ). For example :

--- Code: ---/* Line 1 */     #include <stdio.h>
/* Line 2 */     int main()
/* Line 3 */     {
/* Line 4 */          int x, y, z;
/* Line 5 */          scanf("%d %d",&x,&y);
/* Line 6 */          ++x;
/* Line 7 */          --x;
/* Line 8 */          z = x*y;
/* Line 9 */          return 0;
/* Line 10 */     }

--- End code ---

>> Hovering on 'x' in Line 6 shows "x : int".
>> Hovering on 'x' in Line 7 shows "x : int" and "x : + +".
>> Hovering on 'x' in Line 8 shows "x : int" , "x : + +" and "x : - -".

Another code:

--- Code: ---/* Line 1 */     #include <stdio.h>
/* Line 2 */     int main()
/* Line 3 */     {
/* Line 4 */          char A, *B, C;
/* Line 5 */          C = 'C';
/* Line 6 */          A = 'A';
/* Line 7 */          B = &C;
/* Line 8 */          A = *B;
/* Line 9 */          return 0;
/* Line 10 */     }

--- End code ---

>> Hovering mouse on 'A' shows "A : char"
>> Hovering mouse on 'C' shows "C : char *".

2. C::B cannot find Implementations and Declarations
[ NOT SURE IF THIS IS A BUG, OR SOMETHING IS WRONG WITH MY CONFIG ]

When I right-click on a variable or function or class or anything and select "Find implementation of : xyz" or "Find declaration of : xyz"; I get the error "Not found:xyz".

3. Problem with Implementation and Declaration of main()

A strange thing that I marked was, I just right-clicked the 'main' function and then selected "Find declaration of : main" and then C::B opened my last opened C++ file and pointed to the main function of that file !!!!
When I right-clicked the main function in that file and selected "Find implementation of : main"; I was brought back to the previous file !!
When I right-clicked the main function of the present file and selected "Find implementation of : main"; C::B just pointed to the main of the current file .

I was really confused and thought I should report it at this forum.

george_k:

--- Quote from: Saswat2603 on January 22, 2009, 04:40:43 am ---2. C::B cannot find Implementations and Declarations
[ NOT SURE IF THIS IS A BUG, OR SOMETHING IS WRONG WITH MY CONFIG ]

When I right-click on a variable or function or class or anything and select "Find implementation of : xyz" or "Find declaration of : xyz"; I get the error "Not found:xyz".



--- End quote ---

I'm seeing this same problem as well.  I just started using Code::Blocks, so I don't remember for sure, but I thought this functionality used to work.


George

killerbot:
these are very nice, well documented bug reports. Many thanks.

But may we ask to file them in our bug tracker on our project page at berlios : http://developer.berlios.de/projects/codeblocks

That way they will not get lost.

I would suggest you create 3 different bug reports, 1 for every item you mentioned.
Many thanks for the feedback, I think our code completion gurus will be able to do something with this ;-)

Saswat2603:

--- Quote from: killerbot on January 24, 2009, 09:51:40 am ---these are very nice, well documented bug reports. Many thanks.

--- End quote ---

Thanks for the comment.




--- Quote from: killerbot on January 24, 2009, 09:51:40 am ---But may we ask to file them in our bug tracker on our project page at berlios : http://developer.berlios.de/projects/codeblocks

That way they will not get lost.

I would suggest you create 3 different bug reports, 1 for every item you mentioned.

--- End quote ---

OK. Done !

Navigation

[0] Message Index

Go to full version