# Why the vscode can't "found the definition"of the function?

**URL:** <https://discuss.px4.io/t/why-the-vscode-cant-found-the-definition-of-the-function/9199>\
**Category:** Uncategorized\
**Created:** [January 13, 2019, 4:28pm UTC](https://discuss.px4.io/t/why-the-vscode-cant-found-the-definition-of-the-function/9199 "2019-01-13T16:28:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevindsp](https://discuss.px4.io/user_avatar/discuss.px4.io/kevindsp/32/5192_2.png) [@kevindsp](https://discuss.px4.io/u/kevindsp)\
**Post date:** [January 13, 2019, 4:28pm UTC](https://discuss.px4.io/t/why-the-vscode-cant-found-the-definition-of-the-function/9199/1 "2019-01-13T16:28:17Z")

</div>

Hi,all!  
I use vscode to edit the px4’s code with OSX.It works very well before.But these days it can’t “go to definition"suddenly.And it can’t find the definition of the functions.  
Besides,the issue comes with tons of problems, such as"identifier XXX is undefined”,“variable XXX is not a type name”.Curiously,the code can be compiled successfully!

Meanwhile,it responds with  
“FixedwingPositionControl.cpp not found in “${workspaceFolder}/build/px4io-v2\_default/compile\_commands.json”. ‘includePath’ from c\_cpp\_properties.json will be used for this file instead.”

If the compile\_commands.json have something to do with the issue?

To fix the issue,I have tried tons of methods.However,It still doesn’t work even after that I completely remove and reinstall all of the vscode and all of the px4’s code.what is the problem about the vscode?And how could I fix it? Thank you?
