Code Completion

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Code Completion

2,862 Views
fusion2344
Contributor I
I have 2 type defenitions

typedef struct {
    u8 StartByte;
    u8 Route;
    u8 Command;
    u8 Length;
    u8 HCS;
    u8 Data[PROTOCOL_DATA_SIZE];
}TProtocol;

typedef union {
    TProtocol Protocol;
    u8 Data[COMMS_BUFFER_SIZE];

}TCommsBuffer;

TCommsBuffer UART1TXBuffer;

With type defenitions, the IDE editor will auto complete if I type

UART1TXBuffer.

and it will display a list where I can select either "Protocol" or "Data".

But with the these type defenitions it doesn't display the autocomplete list.

What should I do to make the IDE editor display the auto complete list?

(This question was posted with another problem in the Codewarrior for 8-bit and 16 bit section)

Labels (1)
0 Kudos
4 Replies

565 Views
CrasyCat
Specialist III
Hello
 
Can you please be more specific.
In which case does it autocomplete?
In which case does it fail?
 
I did not understand it from your initial description.
 
CrasyCat
0 Kudos

565 Views
fusion2344
Contributor I
For the case where

TCommsBuffer UART1TXBuffer;

And I type

UART1TXBuffer. or UART1TXBuffer(dot)

When I type the "dot" after UART1TXBuffer it should display the autocomplete list when the Code Completion Delay expired (in my case 50ms).

It should display a list where I can select either "Protocol" or "Data" to make it complete "UART1TXBuffer.Protocol" or "UART1TXBuffer.Data"

But it doesn't display the list.

But when

TProtocol UART1TXBuffer

And I type

UART1TXBuffer. or UART1TXBuffer(dot)

It displays a list where I can select StartByte, Route, Command etc.


Message Edited by fusion2344 on 2008-02-04 12:59 PM
0 Kudos

565 Views
CrasyCat
Specialist III
Hello
 
I am still unable to reproduce the problem. It is working fine for me.
 
Only thing you can try is switch to the Language parser to generate browser information.
 
This is done as follows:
  - Start the IDE
  - Open your project
  - Open the Target Settings dialog (Press ALT + F/)
  - Switch to the "Build Extras" panel
  - Change "Generate Browser Data From" to "Language Parser"
  - Click OK
 
Wait a little bit to let the language parser rebuild the browser data base.
 
Try whether completion is working better.
 
If this does not help either, I would recommend you to submit a service request for that.

Click here to submit a service request.

Make sure to attach a reproducible project and installed product information to the service request.
To generate the required information:
- Start CodeWarrior
- Open the project
- Select "Help" -> "Pack and Go" and follow instructions on the screen.

Attach the generated .zip file to the SR.
 
CrasyCat
0 Kudos

565 Views
fusion2344
Contributor I
GREAT!! That solved the problem and it makes my life so much easier!!

I read the help file on "Generate Browser Data From" but not clear about what it does.

How am I supposed to know to switch to "Lanuage Parser"?

Anyway

Thanks


Message Edited by fusion2344 on 2008-02-05 12:49 PM
0 Kudos