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 Intellisense is anything but Intelligent (Read 1272 times)
Chevelle
Junior Member
**
Offline


Posts: 12
Joined: Feb 29th, 2020
Intellisense is anything but Intelligent
Dec 7th, 2020 at 12:51pm
Print Post  
Ok.  The title may be a little flippant but it sure is acting funny.

I have been using VM with VS for a long time with lots of different Arduino and Teensy applications.  I am now working on two applications that use different microcontrollers for the first time.  One is for the Adafruit ItsyBitsy Express and the other is for the ESP32-DEVKIT.

I believe that I have loaded all the libraries in correctly but Intellisense has thrown up all over the code with errors.  Mostly with undefined identifiers yet the libraries are right there and the include statements do not show errors.  Also, the code compiles and runs successfully even though there are warnings and at least one error.

Here is output from the build:

Compiling '******-Itsy' for 'Adafruit ItsyBitsy nRF52840 Express'
ld.exe: warning: changing start of section .bss by 4 bytes
ld.exe: warning: changing start of section .bss by 4 bytes
ld.exe: warning: changing start of section .bss by 4 bytes
ld.exe: warning: changing start of section .bss by 4 bytes
ld.exe: warning: changing start of section .bss by 4 bytes
 
ERROR*: One of the files to merge cannot be found
Zip created at 0\Debug/******-Itsy.ino.zip
Program size: 101,204 bytes (used 12% of a 815,104 byte maximum) (48.67 secs)
Minimum Memory Usage: 13044 bytes (5% of a 237568 byte maximum)
 
Uploading '******-Itsy' to 'Adafruit ItsyBitsy nRF52840 Express' using 'COM10'
Unable to 'touch' hardware serial port: COM10. Now assuming selected port is bootloader port. This might still fail, have you got the correct board selected?
Upgrading target on COM11 with DFU package \Debug\*******-Itsy.ino.zip. Flow control is disabled, Single bank, Touch disabled
########################################
########################################
########################################
########################################
######################################
Activating new firmware
Device programmed.
     The upload process has finished. via 'COM11'


************

Also, you can't tell by the listing below but all of the instantiations have squigglies under them.  Even Serial.begin is not recognized.

Thanks for any help.  I make enough errors without Intellisense indicating some that aren't real.

Code (C++)
Select All
#include <AutoPID.h>
#include <Arduino.h>
#include <bluefruit.h>
#include <Adafruit_DotStar.h>
#include <Adafruit_LittleFS.h>
#include <InternalFileSystem.h>

//  Instantiate the two PID loops for TEC temperature control
AutoPID PID1(&TECTempF[1], &SetTemp, &TECPWM[1], 0, 255, Kp, Ki, Kd);
AutoPID PID2(&TECTempF[2], &SetTemp, &TECPWM[2], 0, 255, Kp, Ki, Kd);

//  Instantiate the DotStar LED
Adafruit_DotStar DotStar(DotStarPixels, pinDotStarData, pinDotStarCLK, DOTSTAR_GBR);

// Instantiate the Bluetooth Services
BLEDfu  bledfu;  // OTA DFU service
BLEDis  bledis;  // device information
BLEUart bleuart; // uart over ble
BLEBas  blebas;  // battery


 




« Last Edit: Dec 7th, 2020 at 1:01pm by Chevelle »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2177
Joined: Feb 13th, 2019
Re: Intellisense is anything but Intelligent
Reply #1 - Dec 7th, 2020 at 1:17pm
Print Post  
Thanks for the report and detail.

Can you please set the options shown at the top of the page, and attach the full output from both boards builds?

If possible can you attach the solution as a ZIP, or email it to us?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2177
Joined: Feb 13th, 2019
Re: Intellisense is anything but Intelligent
Reply #2 - Dec 8th, 2020 at 12:42pm
Print Post  
NOTE - Selecting the "vMicro > General > Active Code Has Priority Over Solution Explorer" option ensures the intellisense is configured for the code file in focus, instead of the project selected in Solution Explorer (VS Standard)

We are also working to improve the Intellisense for the NRF Boards which will reduce the errors seen around e.g. Serial.
  
Back to top
 
IP Logged
 
Chevelle
Junior Member
**
Offline


Posts: 12
Joined: Feb 29th, 2020
Re: Intellisense is anything but Intelligent
Reply #3 - Dec 8th, 2020 at 12:59pm
Print Post  
Thanks for the suggestion.  I checked and that option is selected.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2177
Joined: Feb 13th, 2019
Re: Intellisense is anything but Intelligent
Reply #4 - Dec 8th, 2020 at 1:28pm
Print Post  
Thanks for confirming.

The latest forum release (20.09.10.20) should reduce the Intellisense Errors shown for these boards.
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
 
IP Logged
 
Chevelle
Junior Member
**
Offline


Posts: 12
Joined: Feb 29th, 2020
Re: Intellisense is anything but Intelligent
Reply #5 - Dec 8th, 2020 at 2:54pm
Print Post  
Wow!  Just took a quick look without adding any new code and no Intellisense errors.

Thanks.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint