VS Arduino
Visual Micro >> Visual Studio 2017, 2019, 2022 >> vMicro in V studio 2019
https://www.visualmicro.com/forums/YaBB.pl?num=1603551392

Message started by JonR on Oct 24th, 2020 at 2:56pm

Title: vMicro in V studio 2019
Post by JonR on Oct 24th, 2020 at 2:56pm
I have been working on an Arduino project and everything was going fine.  Using Vmicro in Vstudio 2019.  Also using git for CM.  Vstudio did an update, then I started getting errors during compile about illegal characters in path.  I tried to compile other projects that I know compiled ok the last time I made changes to them and they also gave the same errors.  I updated vMicro but that did not help.  verbose output attached. Any hints would be appreciated.
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=output_048.txt ( 32 KB | 8 Downloads )

Title: Re: vMicro in V studio 2019
Post by Visual Micro on Oct 24th, 2020 at 4:17pm
Thanks for the output. Can you please ensure that  vMicro > Compiler >  Verbose is enabled? If not then repost the output.

Title: Re: vMicro in V studio 2019
Post by JonR on Oct 24th, 2020 at 6:45pm
Yes "verbose" was checked under vmicro/compiler

Title: Re: vMicro in V studio 2019
Post by Visual Micro on Oct 24th, 2020 at 8:02pm
Okay thanks.

If build>clean solution doesn't fix it then please zip and email your .vcxproj file from the current sketch folder. The email address is available above in the yellow box.

Thanks

Title: Re: vMicro in V studio 2019
Post by JonR on Oct 24th, 2020 at 9:17pm
Clean build did not help.  Sent email

Title: Re: vMicro in V studio 2019
Post by Visual Micro on Oct 24th, 2020 at 9:45pm
No email has arrived. Please check for fail report.

Thanks

Title: Re: vMicro in V studio 2019
Post by JonR on Oct 24th, 2020 at 10:27pm
email went out to sales@visualmicro.com 6:26 PM.  No error message.

Title: Re: vMicro in V studio 2019
Post by Visual Micro on Oct 24th, 2020 at 11:07pm
Thanks, arrived 30 mins ago.

It looks like we need to extend our error reporting. Some sort of issue resolving library paths.

Do you get the problem if you create a new project? If not then please zip and email the entire jr_rotor_control folder and sub folders if there are any.

Thanks


Title: Re: vMicro in V studio 2019
Post by JonR on Oct 25th, 2020 at 12:07am
I created a new project with a simple hello world program. It worked ok.  Just sent you the zip for whole project directory.

Title: Re: vMicro in V studio 2019
Post by Visual Micro on Oct 25th, 2020 at 1:16am
Thanks for sending the code. The problem is reported if you switch between boards or do anything that attempts to refresh intellisense but the error doesn't give much away. We will improve the error.

The problem is caused by an extra double quote on the #include "configuration_EEPROM.h"". The Arduino IDE reports the error as "stray '\357' in program"

A second problem with the code which you would encounter after fixing the first is that "configuration.h" should actually be #include "src\configuration.h".


Code (]#include "configuration.h"
#include <EEPROM.h>
#include "configuration_EEPROM.h""
[/code):



should be ....

[code]#include "src\configuration.h"
#include <EEPROM.h>
#include "configuration_EEPROM.h"


Another tip would be to click the small icon above the solution explorer called "show all files". It will show you that one of your files is not included in the project. You can right click and include the file. The file is in the root of the project therefore Visual Micro would compile the file however it is good practise to ensure all your sources are included properly in the solution explorer. This will avoid other confusion later on and also allow you to use source control in the future.




Title: Re: vMicro in V studio 2019
Post by JonR on Oct 25th, 2020 at 3:29am
Thank you for your time Tim.
:)

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