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 [2]  Send TopicPrint
Hot Topic (More than 8 Replies) Visual Micro Arduino Command Line Interface failes to build Project from command line (Read 7423 times)
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro Arduino Command Line Interface failes to build Project from command line
Reply #20 - Nov 20th, 2019 at 12:22am
Print Post  
it should be picking it up from the arduino 1.6/1.8 Ide Location if you have set it. 

Otherwise it would pick it up from users\name\appdata\local\arduino15\preferences.txt which is where the arduino ide stores file>preferences>sketchbook location or the arduinoide\portable folder if you have mpoved the contents of arduino15 to it

The users\name\appdata\local\arduino15 folder must not exist otherwise the \portable folder will not be used


« Last Edit: Nov 20th, 2019 at 12:26am by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro Arduino Command Line Interface failes to build Project from command line
Reply #21 - Nov 20th, 2019 at 10:13pm
Print Post  
Where have you set the sketch book folder. In the arduino ide or in visual micro?
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro Arduino Command Line Interface failes to build Project from command line
Reply #22 - Nov 27th, 2019 at 4:04pm
Print Post  
Thanks for the email. Can you confirm that you have set a sketchbook folder against the arduino 1.6/1.8 application in the visual micro IDE locations dialog, so that you are not relying on the arduino ide preferences.

If you rely on the arduino ide preferences then you are back in the users\name\appData\Local\arduino15 folder where the arduino ide preferences.txt is stored.

Does this make sense?
  
Back to top
WWW  
IP Logged
 
stm
Junior Member
**
Offline


Posts: 27
Joined: Jul 5th, 2018
Re: Visual Micro Arduino Command Line Interface failes to build Project from command line
Reply #23 - Dec 8th, 2019 at 10:05pm
Print Post  
I have found a workaround in the meantime. The build agent service that is set up by TeamCity and that performs the automated build runs as a windows service ("TeamCity Build Agent"). And as such it runs under the SYSTEM user by default. After changing this user under Control Panel|Administrative Tools|Services, the build finally works.

Unfortunately, I did not find out why the build did not work otherwise. I changed APPDATA and other relevant environment variables. So I guess there must be another mechanism in the background that I have not understood yet.

Anyhow, with the described workaround, the automated build now works using the CLI tool.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Micro Arduino Command Line Interface failes to build Project from command line
Reply #24 - Dec 12th, 2019 at 6:10pm
Print Post  
Great thanks for the update. 

FYI: The problem or alternative solution is as follows:-

Moving the Arduino15 folder to the \portable folder, below below the IDE would avoid use of the AppData folder. If you do not set the sketchBook path in Visual Micro then the one from the Arduino IDE is used, that is stored in the appData\Local\Arduino15\preferences.txt. You are not using the \portable folder and you have changed the default sketchbook path in the Arduino IDE for the current user. Therefore a different system user would probably have been using the default sketchBook path which is myDocuments\Arduino. Therefore user installed libraries would be in myDocuments\Arduino\Libraries.
« Last Edit: Dec 12th, 2019 at 6:11pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint