How do I find definition?
When I right click on a source code element and choose 'Go To Definition' I get the following error:
Definition of 'the element name' not found no index loaded
How to do it properly?
-
Asked Paul about it I got the answer
One more question. The function "Go to definition" does not work in version 2.1.2 and higher with a notice "indexer not loaded". Is something wrong with my Linux installation?
No, this is because we are moving to clang for code completion and source indexing.
-
A poor man's way of finding definitions until indexer and 'Go To Definition' function is fixed...Do the following...Goto Search Find in Files...Ones that dialog pops up, you will have to find the directory where CrossStudio installed the support header files. This will most always be in your : C:\Users\your_user_name\AppData\Local\Rowley Associates Limited\CrossWorks for ARM. Copy and paste that link into your Folder: text box...You will have to select the option : in - Folder and Subfolders. In the Look for files matching, I generally type the support header for the platform I'm working on, which in this case happened to be: Look in Files Matching : stm32f10x.h
You can also select the drop down and pick *.h
This works really well, to find the definitions you are looking for until they fix the 'Go to Definition' function to work better! I have attached a snapshot of what I just iterated above! Hope this helps someone...
-
The simplest way to find all uses of a symbol is to place the cursor on a word and use Alt+U which sets up a Find In Files, Entire Solution, with Whole Word, Match Case options. If you select a range of text and use Alt+U, it does a Find in Files, Entire Solution but without whole word and match case.
The 3.0 wavefront version is available and we are accepting feedback; links already posted somewhere here.
-
just made a request "no indexer" was displayed in the References window. alt-right mouse click and find did not work (because of the missing indexer).
Paul's Hint "place the cursor on a word and use Alt+U" helped finding the References. From that moment "indexer" related functions worked again.
Please sign in to leave a comment.
Comments
24 comments