Author Topic: Possible BUGS !  (Read 8885 times)

Offline Saswat2603

  • Single posting newcomer
  • *
  • Posts: 9
Possible BUGS !
« on: January 22, 2009, 04:40:43 am »
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 */     }

>> 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 */     }

>> 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.
Code
printf("Saswat - born 2 %X\n",49374);
 [:)] [;)]

george_k

  • Guest
Re: Possible BUGS !
« Reply #1 on: January 23, 2009, 10:08:41 pm »
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".



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

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5513
Re: Possible BUGS !
« Reply #2 on: January 24, 2009, 09:51:40 am »
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 ;-)

Offline Saswat2603

  • Single posting newcomer
  • *
  • Posts: 9
Re: Possible BUGS !
« Reply #3 on: January 24, 2009, 02:38:50 pm »
these are very nice, well documented bug reports. Many thanks.

Thanks for the comment.



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.

OK. Done !
Code
printf("Saswat - born 2 %X\n",49374);
 [:)] [;)]