Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Project reference (Read 562 times)
Jesper
Newbies
*
Offline



Posts: 6
Project reference
Jul 1st, 2019 at 4:29pm
 
Hi
I have a project that I can compile in Arduino IDE without any problems, but when I open it in VS2019 I get a lot of faults with references and functions that it says that there are defined and cannot resolve symbol.

Again I can compile and download to the controller from Arduino without any problems. so what do I wrong with Visual Micro.
The project is https://github.com/mtz8302/AG_GPS_ROOF_UNIT_ESP32
Back to top
« Last Edit: Jul 1st, 2019 at 4:42pm by Jesper »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10631
United Kingdom
Re: Project reference
Reply #1 - Jul 1st, 2019 at 5:11pm
 
Hi,

It's important to distinguish if we are looking at an intellisense issue or build issue.

Please follow the guide in yellow at the top of this page so we can see which tool chain and other info.

Thanks
Back to top
 
WWW  
IP Logged
 
Jesper
Newbies
*
Offline



Posts: 6
Re: Project reference
Reply #2 - Jul 1st, 2019 at 6:07pm
 
Hi Thanks for your fast answer
I just took a project from the Example projects for Arduino IDE http://www.arduino.cc/en/Tutorial/SerialCallResponse and still here I have a fault, so it's not the project I work on.
The fault is here as well. cannot resolve symbol on establishContact see file Test1.txt.

The project I work on the output file is Test2.txt
Back to top
« Last Edit: Jul 1st, 2019 at 6:09pm by Jesper »  

Test1.txt (45 KB | 8 )
Test2.txt (437 KB | 3 )
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10631
United Kingdom
Re: Project reference
Reply #3 - Jul 1st, 2019 at 6:41pm
 
Thanks for the verbose output. I tried the project you posted (test2) in your first link and it builds OK but is too large. I see the same error in arduino and visual micro that the program size is too large.

Please post screen shot of errors you see?

Code:
Program too big. The size is 1357686 bytes (of a 1310720 byte maximum). Ensure debugging is OFF and/or see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.
Debug build failed for project 'AG_GPS_ROOF_UNIT_ESP32'
 


Test1 has built correctly - OK
Code:
Program SerialCallResponse size: 200.612 bytes (used 15% of a 1.310.720 byte maximum) (4,00 secs)
Minimum Memory Usage: 13500 bytes (4% of a 327680 byte maximum)

# Copy build result to 'Project>Property Pages>Intermediate Directory'
# Destination: file:///C:/Program%20Files%20(x86)/Arduino/examples/04.Communication/SerialCallResponse/Release/ 



Back to top
« Last Edit: Jul 1st, 2019 at 6:42pm by Visual Micro »  
WWW  
IP Logged
 
Jesper
Newbies
*
Offline



Posts: 6
Re: Project reference
Reply #4 - Jul 1st, 2019 at 7:13pm
 
Humm regarding the Test2 that the program is but is too large I can change in the settings of the ESP32. But I don't understand that you can compile the project.
I did following
1. Download from the git
2. Extract the file.
3. I get an error when opening the file AG_GPS_ROOF_UNIT_ESP32.ino that it needs to be in a folder named AG_GPS_ROOF_UNIT_ESP32. I create the folder and copy all the files into the new folder.
4. Dubble clicks n the file AG_GPS_ROOF_UNIT_ESP32.ino Arduino IDE open and i can compile the project.
5. I start VisualStudio and open an Arduino project select the file AG_GPS_ROOF_UNIT_ESP32.ino and compile the project. and now i get the errors.

It's a totally new installation of Visual Micro, so I don't know i i need to set something up.
Here it some screenshots
Back to top
 

1_006.PNG (115 KB | 2 )
1_006.PNG
2_006.PNG (110 KB | 2 )
2_006.PNG
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10631
United Kingdom
Re: Project reference
Reply #5 - Jul 1st, 2019 at 7:23pm
 
Hi,

I think the confusion is that in Visual Micro you are seeing some intellisense errors. We can look into these but the compile is working okay. You can see that when you click the compile button.

It is important to understand that there is a difference between intellisense errors and build errors. Visual Micro handles the build but leaves visual studio to handle the intellisense.

We can feed additional information into intellisense which will improve things for you but it is important first to see that when you click Build in Visual Micro everything is working the same as the arduino ide. I can see in the two files you posted that the build is working correctly.

One thing that will help is to set the drop down list at the top of the "Errors List" to "open documents only" or to set the  drop down list at the top right of the Errors List to "Build Only". This will be less confusing until we look into the intellisense problem.

Does this make sense?
Back to top
 
WWW  
IP Logged
 
Jesper
Newbies
*
Offline



Posts: 6
Re: Project reference
Reply #6 - Jul 2nd, 2019 at 10:49am
 
Hi,

Thanks for the information.
And yes I can see that the compiler is working.
Now it's just the intellisense part that gives me a lot of errors, is there a way to solve that so I can use the intellisense?
Thx Jesper
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10631
United Kingdom
Re: Project reference
Reply #7 - Jul 2nd, 2019 at 10:17pm
 
What is the version of visual micro you are using? You can see this in Tools>Extensions and Updates
Back to top
 
WWW  
IP Logged
 
Jesper
Newbies
*
Offline



Posts: 6
Re: Project reference
Reply #8 - Jul 3rd, 2019 at 6:36am
 
I use version 1906.30.0 and Visual Studio version version 16.1.5 (2019)
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10631
United Kingdom
Re: Project reference
Reply #9 - Jul 3rd, 2019 at 12:24pm
 
In your screen shot I can see intellisense errors which are because you have spell check enabled.

Can you please post a picture of code or the errors list showing the intellisense errors you are referring too?

Thanks
Back to top
 
WWW  
IP Logged
 
Jesper
Newbies
*
Offline



Posts: 6
Re: Project reference
Reply #10 - Jul 3rd, 2019 at 2:01pm
 
I just for an easy test I took the project from the Arduino examples projects SerialCallResponseASCII.
When I build I don't get build errors but I get IntelliSense errors. first picture
And establishContact() is marked red see info on picture

The other project it's the same.
And EEprom_empty_check is marked red see info on picture
Back to top
« Last Edit: Jul 3rd, 2019 at 2:51pm by Jesper »  

1_007.PNG (118 KB | 2 )
1_007.PNG
2_008.PNG (192 KB | 3 )
2_008.PNG
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10631
United Kingdom
Re: Project reference
Reply #11 - Jul 3rd, 2019 at 8:53pm
 
If you switch the drop down list at the top of "Errors List" from "Intellisense + Build" to "Build Only" it might be better for now.

I'm not seeing some of the errors you can see, the ones in red are okay for me. Hopefully you have built the new project because that will help but I can tell you it might not be perfect until we move to a new intellisense system Microsoft are in the processes of releasing.

Try to ensure you are on the latest vs2019, Microsoft are improving this area all the time.


Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print