No jumps to functions by code explorer

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi,

   

As newbee in PSoC Creator, I did not yet found out, how to jump with code explorer to an addressed function.

   

In my programs, the main function is the first, and all others are below. So I have to declare these functions above main.

   

If I double click in code explorer a function, it jumps to the declaration but not to the function code. A right click has no effect.

   

What trick does move it to the code?

   

Many thanks and best regards

   

Walter

0 Likes
11 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

right click in code on the function name and select "Go To Implementation".

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Hi Bob,

   

Many thanks again for your quick help.

   

But if I right click on the pink function name, nothing happens. A right and left double click moves to the declaration, but not to the function code. I checked for appropriate config parameters in PSoC Creator, but did not found one.

   

PSoC Creator is such a fantastic tool, there must be a way to jump to function codes. But I did not know.

   

Best regards

   

Walter

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

If I just double click on f() in code explorer window it takes

   

me to f() code.....

   

 

   

0 Likes
lock attach
Attachments are accessible only for community members.
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Code explorer window attached -

   

 

   

Regards, Dana.

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hi Dana,

   

Many thanks for your help.

   

In your case, you don't have declarations in front of your main. Because your functions are written in front of main, Code Explorer moves to the first instance, which is the function code.

   

In my case, the function codes are below main, so CE jumps to the declaration.

   

See attached my window.

   

Best regards

   

Walter

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Consider filing a CASE and let Cypress know, maybe that is a future

   

fix, or at least make them aware of issue. Point to this thread.

   

 

   

    

   

          

   

To create a technical case at Cypress -

   

 

   

www.cypress.com

   

“Support”

   

“Technical Support”

   

“Create a Case”

   

 

   

You have to be registered on Cypress web site first.

   

 

   

Regards, Dana.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Again: You have the choice to "Go To Definition" or to "Go To Implementation" of a function.

   

Right click in CODE window on the function name and select the appropiate.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Hi Bob,

   

Now I understand your hint. I have to right-click in the code section and not in the Code Explorer.

   

It's a solution but not very handy. I work with STM32 and other IDEs, which differentiate in the CE between code and declaration.

   

Hi Dana,

   

I will see, whether I can live with Bob's proposal. If not, I will open a case.

   

Many thanks to both of you for your help.

   

Best regards

   

Walter

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Running Creator 3.0 SP1, right click in code explorer window, of any function,

   

produces no dialog, no menu. A double click takes me to prototype definition,

   

in this particular project f() protos listed before main().

   

 

   

I do not feel like reinstalling, will live w/o feature for now.

   

 

   

Regards, Dana.

0 Likes
markgsaunders
Employee
Employee
50 sign-ins 10 solutions authored 5 solutions authored

This was an oversight in 3.0 - in our next relase you will be able to navigate to the implementaiton of a function from the Code Explorer window.

   

-- Mark.

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

@yfs, Thanks for clarifying this, cleared up a lot of confusion.

   

 

   

Regards, Dana.

0 Likes