# VS code with Legato error "Couldn't find file 'le\_audio.api'"

**URL:** <https://forum.sierrawireless.com/t/vs-code-with-legato-error-couldnt-find-file-le-audio-api/25305>\
**Category:** Development tools\
**Created:** [October 24, 2021, 10:51am UTC](https://forum.sierrawireless.com/t/vs-code-with-legato-error-couldnt-find-file-le-audio-api/25305 "2021-10-24T10:51:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![temaedashop2](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@temaedashop2](https://forum.sierrawireless.com/u/temaedashop2)\
**Post date:** [October 24, 2021, 10:51am UTC](https://forum.sierrawireless.com/t/vs-code-with-legato-error-couldnt-find-file-le-audio-api/25305/1 "2021-10-24T10:51:40Z")

</div>

Hi all,  
We have started development using VS code with Legato.  
Instalement seem to be successful, but we encountered the following error and Legato window became blank.

/home/temaeda/myWorkspace/leaf-data/wp76\_4.0.3/wp76-legato/components/audio/Component.cdef:5:8: error: \* Couldn’t find file ‘le\_audio.api’.

I’d appreciate advices to solve it.

Thanks,

---

<div class="post-metadata">

**Author:** ![Donald](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@Donald](https://forum.sierrawireless.com/u/Donald)\
**Post date:** [October 25, 2021, 12:17am UTC](https://forum.sierrawireless.com/t/vs-code-with-legato-error-couldnt-find-file-le-audio-api/25305/2 "2021-10-25T00:17:52Z")

</div>

Hi temaedashop2,

You can find file ‘le\_audio.api’ in interfaces.

Example:  
mkapp -t wp76xx modemDemo.adef -i /home/user/legato/leaf-data/wp76\_4.0.3/wp76-legato/interfaces/

---

<div class="post-metadata">

**Author:** ![temaedashop2](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@temaedashop2](https://forum.sierrawireless.com/u/temaedashop2)\
**Post date:** [October 25, 2021, 5:46am UTC](https://forum.sierrawireless.com/t/vs-code-with-legato-error-couldnt-find-file-le-audio-api/25305/3 "2021-10-25T05:46:45Z")

</div>

Hi, Donald,  
Thank you for your comment.  
Yes, I know the location of ‘le\_audio.api’.  
I don’t know the reason of the error.  
We have just installed the VS code with Legato plug-in and have done some setups.  
Then the error occurred and the Legato window became blank.  
I think I might have done some mistakes in the installation.  
I might have broken some files.  
Are there any method to reset all the installed files to the initial state?  
For example, I don’t know the method to uninstall the installed swi related files from Legato window of VS code.  
Thanks,

---

<div class="post-metadata">

**Author:** ![Donald](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@Donald](https://forum.sierrawireless.com/u/Donald)\
**Post date:** [October 26, 2021, 11:34am UTC](https://forum.sierrawireless.com/t/vs-code-with-legato-error-couldnt-find-file-le-audio-api/25305/4 "2021-10-26T11:34:23Z")

</div>

Hi temaedashop2,

You can click “Remove” profile swi to uninstall the installed swi related files from the Legato window of VS code.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/d/d1ed8570eddacf69a2ead91e01cc96c0aaafc74d.png)

Please refer to below link for how to install the Legato Plugin for VSCode.  
[https://docs.legato.io/latest/tools\_vsCodeInstall.html](https://docs.legato.io/latest/tools_vsCodeInstall.html)

---

<div class="post-metadata">

**Author:** ![temaedashop2](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@temaedashop2](https://forum.sierrawireless.com/u/temaedashop2)\
**Post date:** [October 27, 2021, 12:21am UTC](https://forum.sierrawireless.com/t/vs-code-with-legato-error-couldnt-find-file-le-audio-api/25305/5 "2021-10-27T00:21:22Z")

</div>

Thank you for the advice.  
I’ve already done the remove procedure but the result was the same.

Our ubuntu was Japanese localization.  
To avoid the future instability, we have newly prepared the original English ubuntu and have installed Legato and other necessary applications.  
The system seems to be working fine so far.  
Thanks again for your support.  
Regards,
