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 Libraries not updating using the refresh tool (Read 5708 times)
deLucain
Newbies
*
Offline


Posts: 2
Joined: Jan 6th, 2014
Libraries not updating using the refresh tool
Jan 6th, 2014 at 9:30pm
Print Post  
I replaced the stock LiquidCrystal library files in my library folder (~\Documents\Arduino\libraries\LiquidCrystal) with a more robust version suggested by the vendor of my LCD screen. However, when I do an #include <LiquidCrystal_I2C.h>, Visual Studio can't find the file (which exists in the LiquidCrystal folder. I have use the Project>Add\Import Sketch Library>Refresh tool, and it isn't helping.

Here's an image of my library directory


Any idea what I should do to get it working?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Libraries not updating using the refresh tool
Reply #1 - Jan 6th, 2014 at 9:56pm
Print Post  
Hi,

There are a couple if things to note

1) Because you are using the SketchBook folder for your libraries you might hit a problem where Visual Micro is using the LiquidCrystal of the ArduinoIde/Libraries folder. The Arduino design only allows for one library of the same name and can easily become confused with duplicate source file names in different libraries.

I guess it is a bug that Visual Micro doesn't ignore the Ide version of the library and will add to the issues list. In the meantime I suggest you delete the LiquidCrystal library below the ArduinoIde/Libraries folder.

2)

After attending to 1) and clicking refresh, your library should appear under the "Import Sketch Library>User" menu. If compile works then fine but if not then remove the "#include Liquidcrystal_I2C.h" you manually added and click the menu item "Project>Import Sketch Library>User>LiquidCrystal".

I hope to hear this helps fix the problem
  
Back to top
IP Logged
 
deLucain
Newbies
*
Offline


Posts: 2
Joined: Jan 6th, 2014
Re: Libraries not updating using the refresh tool
Reply #2 - Jan 6th, 2014 at 10:15pm
Print Post  
I had to restart VS, but that worked. The refresh button didn't work for me. It didn't work for me when I added another library either.

But, removing it from the Arduino libraries folder did resolve the problem in the end.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Libraries not updating using the refresh tool
Reply #3 - Jan 6th, 2014 at 10:19pm
Print Post  
Thanks for the update we will take a look at that.

In case it helps. "Tools>Visual Micro>Reload Toolchains" is a better alternative until we fix the refresh. The option drop the cache and silently reloads all the background stuff.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint