We were unable to find the symbol ... There are several things that can hinder symbol lookup

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

cross mob
JoBr_1593366
Level 5
Level 5
100 sign-ins 50 questions asked 100 replies posted

Often when I right-click a function name and select Go To Definition, it doesn't work.  I get this error:

We were unable to find the symbol 'FunctionName. There are several things that can hinder symbol lookup:      

  • Make sure your project compiles without errors.      
  • Make sure your "Generated Source" has been generated (Build -> Generate Application).      
  • Make sure your .c files #include their corresponding header files.

The project compiles without errors, the Generated Source has been generated, and the .c files include the .h files which declare the function.

I don't understand why this works for some functions and not others.

I have to use Ctrl+Shift+F and search for the function definition manually.

Has anyone had this problem and figured it out?

0 Likes
3 Replies
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

Yes, this happens sometimes due to PSoC Creator file linking not working properly. A clean and build will help solve this issue

Regards,

Dheeraj

0 Likes

I have already tried clean and build and it doesn't help.

It even happens when the function and the call to that function are in the same .c file.

0 Likes

Please use "Find all active references" option to locate the files in case the find declaration doesn't work.

Regards,

Dheeraj

0 Likes