Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic No Intellisense for Mbed OS? (Read 3187 times)
Scott H.
Newbies
*
Offline


Posts: 4
Joined: Feb 24th, 2022
No Intellisense for Mbed OS?
Feb 25th, 2022 at 7:46pm
Print Post  
I'm coding against an Arduino Nano 33 BLE Sense which has the Mbed OS loaded. I'm able to use Mbed rtos functions (like the Thread API) just fine, but Intellisense doesn't autocomplete and does put a red squiggly under these lines of code in both VS 2022 and VS 2019. 

Just after my includes, I have:

Code (C++)
Select All
using namespace std;
using namespace rtos; 



And I'm able to do things like:
Code (C++)
Select All
Thread animationThread;
animationThread.start(RunAnimation); 



This compiles and runs just fine. If I have an error in an Mbed rtos function, the compiler will catch it. But Intellisense never got the memo.

Is there anything I can configure in the VS Micro settings to pick up Intellisense for these functions? I searched the forum but didn't see this specific issue.

Thanks in advance!
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Online


Posts: 2143
Joined: Feb 13th, 2019
Re: No Intellisense for Mbed OS?
Reply #1 - Feb 25th, 2022 at 7:48pm
Print Post  
Thanks for the report.

If you could enable the verbose and show build properties options shown at the top of the page, and attach the full build output we will be able to investigate and update this more easily.
  
Back to top
 
IP Logged
 
Scott H.
Newbies
*
Offline


Posts: 4
Joined: Feb 24th, 2022
Re: No Intellisense for Mbed OS?
Reply #2 - Feb 25th, 2022 at 8:09pm
Print Post  
Absolutely. Thanks for the quick reply. Here's the full build output with verbose enabled, attached.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Online


Posts: 2143
Joined: Feb 13th, 2019
Re: No Intellisense for Mbed OS?
Reply #3 - Mar 1st, 2022 at 2:29pm
Print Post  
The latest version (22.02.18-1) should resolve the intellisense issues with the RTOS code, and is available from the top of the board below:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
 
IP Logged
 
Scott H.
Newbies
*
Offline


Posts: 4
Joined: Feb 24th, 2022
Re: No Intellisense for Mbed OS?
Reply #4 - Mar 9th, 2022 at 4:41pm
Print Post  
Thank you so much for the super quick turnaround on addressing this! Unfortunately, the problem appears to persist for me even with the update. Here's what I'm seeing after updating the add-in and recompiling my code:



Any suggestions for other steps I may need to take?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Online


Posts: 2143
Joined: Feb 13th, 2019
Re: No Intellisense for Mbed OS?
Reply #5 - Mar 10th, 2022 at 10:25am
Print Post  
Thanks for the update on the issue.

If you add the include for the Thread.h to the top of your sketch (below), does this improve the issue?
Code
Select All
#include <rtos/Thread.h> 

  
Back to top
 
IP Logged
 
Scott H.
Newbies
*
Offline


Posts: 4
Joined: Feb 24th, 2022
Re: No Intellisense for Mbed OS?
Reply #6 - Mar 16th, 2022 at 8:18pm
Print Post  
That solved it! Thanks so much  Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint