VS Arduino
>> >> Can not find file when adding library to code
https://www.visualmicro.com/forums/YaBB.pl?num=1552604641

Message started by Waleed El-Badry on Mar 14th, 2019 at 11:04pm

Title: Can not find file when adding library to code
Post by Waleed El-Badry on Mar 14th, 2019 at 11:04pm
Hello,
Whenever I try to add any library using Add library from the menu, it is always highlighted in red and thus I can not use intellisense for methods completion. The code can be compiled if functions were written correctly. Also if I close the project and reopen it, the library is recognized.

I tried rescan toolchain but unfortunately it is not able to detect any inserted new libraries unless I close the project. Any help is appreciated. Thanks

https://i.ibb.co/9sg751m/2019-03-15-0-58-35.png

Title: Re: Can not find file when adding library to code
Post by Visual Micro on Mar 16th, 2019 at 12:04pm
I haven't seen this before where the solution has to be closed before intellisense re-validates the c++ project.

Questions

1) Which version of visual studio 2017 are you using. You can see the full build/version number in help>about

2) If you have two projects in your solution and add a library to one of them does the problem resolve itself?

Thanks

Title: Re: Can not find file when adding library to code
Post by TheStallionMang on Jun 14th, 2019 at 7:04pm
Tim - feel free to delete this comment if it confuses things, but this happens to me pretty often (VS 2017 15.7.5) and I just clean and rebuild the solution, and then everything works great again.

Title: Re: Can not find file when adding library to code
Post by Visual Micro on Jun 14th, 2019 at 9:26pm
Okay I will check the cache update after compile.

Title: Re: Can not find file when adding library to code
Post by Visual Micro on Jun 22nd, 2019 at 10:30pm
Hi both,

I think this is resolved in the latest 1906.22+ releases. There was an issue with stale cache after closing an Arduino project in VS then opening a different project that had existing build cache.

Thanks again for the reports!

Download 1906.22 is currently here
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES



VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.