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 Error in directory path to user libraries, sketchbook folder (Read 1753 times)
tumbolia29
Junior Member
**
Offline


Posts: 10
Joined: Jun 29th, 2018
Error in directory path to user libraries, sketchbook folder
Jun 29th, 2018 at 12:37am
Print Post  
Hi, just getting started trying to compile an example from here: https://github.com/teemuatlut/TMC2130Stepper. I had reinstalled Visual Studio and Visual Micro after having to reinstall Windows 10. Now the following problem:  the directory path Visual Micro wants to use for user libraries and sketchbook folder (links at the bottom of the Visual Micro Explorer window) are referencing the wrong User name (from the prior setup of Windows).  E.g. they say for user libraries folder 
"C:\Users\<wrongUser>\Documents\Arduino\libraries"  
How to fix this???  It's causing all sorts of trouble trying to install and use libraries. As i said, i tried un-installing everything, rebooting, re-installing Visual Studio, then re-installing VM. 

Net result of this problem is I can't install Arduino libraries from downloaded ZIP files like the TMC2130Stepper-master.zip I want to use.

Thanks for the help.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error in directory path to user libraries, sketchbook folder
Reply #1 - Jun 29th, 2018 at 11:45am
Print Post  
Visual Micro asks windows where the current users AppData folder is every time it needs it.

The only way a path can be hard coded is if you have entered it into arduino ide file>preferences or visual micro ide locations

Please check both of these areas and clear any path that is set..

Thanks

btw: Installing a lib from a zip is just a matter of unzipping into the \libraries folder.
  
Back to top
IP Logged
 
tumbolia29
Junior Member
**
Offline


Posts: 10
Joined: Jun 29th, 2018
Re: Error in directory path to user libraries, sketchbook folder
Reply #2 - Jun 29th, 2018 at 2:18pm
Print Post  
Thanks for the quick reply. I tried the following:
  • Checked sketchbook location path in Arduino IDE. It was correct (had the right User name).
  • Changed it there (as a test) to a different directory. VM/VS notified me "a change as been made externally to the environment, reload". That sounded good, but after reloading/restarting it, no change had been made. Still using wrong User name.

I think I stumbled on a way to clear the problem though: I saw two .exe files (apps) in the Arduino IDE directory C:/Program Files (x86):  arduino.exe and arduino_debug.exe.  As a guess I ran the debug one. It said "I found a nonexistent directory and changed it to the default." When launched VM/VS now, the paths are corrected.

So this problem is very subtle! Your suggestion at least led me to this guess on a fix. Does it make sense?

Somewhere, even after Arduino IDE is removed/uninstalled, some piece of data is kept around even if it is wrong, and not refreshed when that program is re-installed. And that data seems not to be fixable except by the arduino_debug process (whatever that was created for).
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error in directory path to user libraries, sketchbook folder
Reply #3 - Jun 29th, 2018 at 5:44pm
Print Post  
Hi

The sketchbook path should be empty in both IDE's

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