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 Unable to install the new library: invalid source path (Read 6591 times)
MatBrugge
Newbies
*
Offline


Posts: 3
Joined: Jun 11th, 2016
Unable to install the new library: invalid source path
Jun 11th, 2016 at 2:20pm
Print Post  
Hi,

Just installed VMicro in VS2015. When I try to install any library, I get this error message:

"Unable to install the new library: invalid source path
C:\Users\Mat_CORP\AppData\Local\Temp\etc.."

When I try to browse to that location, it does indeed not exist because the username is wrong. My username is Mat.CORP, not Mat_CORP.

So it seems that VMicro is replacing the dot in the username with an underscore.

I suspect this is a bug? Can it be fixed?

Is there a workaround in the meantime?

Thanks

Mat
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to install the new library: invalid source path
Reply #1 - Jun 11th, 2016 at 2:27pm
Print Post  
Okay thanks that sounds like an issue unpacking the zip of the library. Getting hold of windows paths can be a pain when user names contain unicode or dots etc.

Installing a library is actually simply a matter of expand library .zips into the "mydocuments\arduino\libraries" folder then clicking rescan on the micro explorer or restarting the ide.

You should end up with something like this

mydocuments\arduino\libraries\myLibrary

You should see after expaning a zip with a new library that the myLibrary folder will normally contain a library.properties file and an "\src" sub folder

  
Back to top
IP Logged
 
MatBrugge
Newbies
*
Offline


Posts: 3
Joined: Jun 11th, 2016
Re: Unable to install the new library: invalid source path
Reply #2 - Jun 18th, 2016 at 9:06am
Print Post  
Hi,

I guess that means I have to go find each library manually on the internet, correct? I tried that out with a library called "Time" which I had to go find in this location:
https://github.com/PaulStoffregen/Time

I unpacked it in this folder:
C:\Users\Mat.CORP\Documents\Arduino\libraries\Time-master

The library.properties file already exists in the zip by the way. When I rescanned/refreshed the libraries in vmicro, I did not notice any change. No src subfolder appears.

I presume the library should become visible under "VMicro..Add Library..User"? But that dropdown remains empty, all I can use is a dropdown with "Built-in" libraries.

I tried to add this line:
#include <Time.h>

But I get this when I compile:
fatal error: Time.h: No such file or directory

Thanks

Mat
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to install the new library: invalid source path
Reply #3 - Jun 18th, 2016 at 11:28am
Print Post  
Hi,

Did you leave the the "Optional SketchBook Location" empty (default) in the locations config window? 

If not then documents\arduino\libraries is the wrong location for user libraries.

If you have left the field empty then we must again be falling fowl of the "." in your machine name (which will be looked into shortly). In that case change the optional sketch book location to a folder location that does not have a "." in it.

« Last Edit: Jun 18th, 2016 at 11:32am by Tim@Visual Micro »  
Back to top
IP Logged
 
MatBrugge
Newbies
*
Offline


Posts: 3
Joined: Jun 11th, 2016
Re: Unable to install the new library: invalid source path
Reply #4 - Jun 19th, 2016 at 2:23pm
Print Post  
Hi,

I had indeed specified another folder for "Optional sketchbook location", possibly in an attempt to get around the errors.

Anyway, when I put the folders in a subfolder "libraries" of this sketchbook folder, then it works!


Downloading libraries manually is still a bit of a pain though, so I will still be looking out for a fix for this issue.

Many thanks!

Mat
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to install the new library: invalid source path
Reply #5 - Jun 19th, 2016 at 2:28pm
Print Post  
Makes sense thanks for the update.

If you are installing a lot of libs then why not set your windows temp folder to some other location. It's quite common to do that especially if your windows drive is an SSD and you have a 2nd drive. If i recall it's pretty easy to do and doesn't screw things up in any way.

But I will look into asap
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint