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
Hot Topic (More than 8 Replies) External Dependencies Not Loading (Read 14412 times)
Andrew Paes
Newbies
*
Offline


Posts: 8
Joined: Jun 3rd, 2015
External Dependencies Not Loading
Jun 3rd, 2015 at 2:37am
Print Post  
Hi ,

I have a desktop computer , on which I have installed VS2012 and windows 7 , and I'm also using the 1.0.1 version of the Arduino . On this computer I had installed a version of VisualMicro launched there six months ago . Well, everything worked perfectly.

Now I have a notebook with Windows 8 , the same VS2012 , and the same version of Arduino . But now this time when I try to create a new project , and may even be a sample project , then the external dependencies are not loaded.

I do not want to update the Arduino to version 1.6 .

What should I do to the dependencies are loaded ?

Tnx in advance,
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12201
Location: United Kingdom
Joined: Apr 10th, 2010
Re: External Dependencies Not Loading
Reply #1 - Jun 3rd, 2015 at 10:07am
Print Post  
Hi,

I am not sure VS does what it does for that.

You can select the project then on the top menu click "Project>show all arduino sources". This will include short cuts to the core and libraries into your project which is often better.
  
Back to top
IP Logged
 
Andrew Paes
Newbies
*
Offline


Posts: 8
Joined: Jun 3rd, 2015
Re: External Dependencies Not Loading
Reply #2 - Jun 3rd, 2015 at 2:19pm
Print Post  
Thanks for the answer,

But yes, the Viisual Micro makes it so. Well, at least with VS2012 and Visual Micro Old Release, yes it does .

However , in VS2012 with the new 1.6.4 Visual Micro , this is not loading the dependencies .

Is there any way I can download the December 2014 release of Visual Micro?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12201
Location: United Kingdom
Joined: Apr 10th, 2010
Re: External Dependencies Not Loading
Reply #3 - Jun 3rd, 2015 at 2:22pm
Print Post  
Which version of the Arduino Ide are you using and which app name are you configuring in the ide locations window?
  
Back to top
IP Logged
 
Andrew Paes
Newbies
*
Offline


Posts: 8
Joined: Jun 3rd, 2015
Re: External Dependencies Not Loading
Reply #4 - Jun 3rd, 2015 at 2:33pm
Print Post  
Well,

My PC where everythings works fine:

- Windows 7 Ultimate;
- Visual Studio 2012 Ultimate;
- Visual Micro 14.12.1000;
- Arduino 1.0.1;
- Visual Micro IDE 1.0 pointing to my Arduino IDE;

My Notebook:

- Windows 8 Single Language;
- Visual Studio 2012 Ultimate;
- Visual Micro 15.06.0100;
- Arduino 1.0.1;
- Visual Micro IDE 1.0 pointing to my Arduino IDE;

On my notebook, the Arduino IDE works fine, but on VS2012 my dependencies aren't loaded. So I can't deploy.

I think the trouble is about my Visual Micro Version. Can I download an old version? Where?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12201
Location: United Kingdom
Joined: Apr 10th, 2010
Re: External Dependencies Not Loading
Reply #5 - Jun 3rd, 2015 at 4:00pm
Print Post  
Hi Andrew,

I need to first understand the issue. What do you mean by "my dependencies aren't loaded. So I can't deploy"

This doesn't make sense to me please show a screen shot

Visual micro does not use Visual Studio to deploy. All dependencies are unused and for information purposes only.

So I am suspecting a different issue that we must understand or it will come back and be a problem.

Please answer the question about which Arduino app option you used in Visual Micro?? Arduino 1.0/1.5/1.6? I guess 1.0 which would be correct so need to see the screen shot of the error because your report does not make sense to me.

Thanks

Tim
« Last Edit: Jun 3rd, 2015 at 4:04pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Andrew Paes
Newbies
*
Offline


Posts: 8
Joined: Jun 3rd, 2015
Re: External Dependencies Not Loading
Reply #6 - Jun 3rd, 2015 at 4:19pm
Print Post  
When I try to deploy this is the error:
System.Exception: Visual Micro: Unable to save new program settings file
C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Visual Micro\Configuration.Debug.vmps.xml ---> System.UnauthorizedAccessException: Access to the path 'C:\Program Files (x86)\Arduino\examples\01.Basics\Blink\Visual Micro\Configuration.Debug.vmps.xml' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at System.Xml.XmlDocument.Save(String filename)
   at Visual.Micro.ProgramConfiguration.ProgramSettingsReader.Save()
   --- End of inner exception stack trace ---
   at Visual.Micro.ProgramConfiguration.ProgramSettingsReader.Save()
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.CompileDo(Project oProject, Boolean IsDebugStartCommand)
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.Compile(Project oProject, Boolean IsDebugStartCommand)



But deploying from my Arduino IDE 1.0.1 it does perfectly.

My Windows 8 on my Notebook, always ask me about admin permission to install softwares, but I'm the administrator. My UAC is down.

I tried to load libraries from ZIP, but nothing hapenned even restarting VS2012 or doing Rescan Solution.

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


Posts: 12201
Location: United Kingdom
Joined: Apr 10th, 2010
Re: External Dependencies Not Loading
Reply #7 - Jun 3rd, 2015 at 4:22pm
Print Post  
This is because you have used an arduino example location below the arduino ide folder. You installed arduino using the window installer which set the permissions to prevent visual micro from creating or updating any files.

Please move your sketch to a normal location such as document/arduino and it will work well.

This would also happen with previous versions of Visual micro because it is a windows permissions problem.

In windows apps can not write to other apps program files folder

C:\Program Files (x86)\Arduino\examples\01.Basics\

The dependencies issue has nothing to do with the error you are seeing and is probably also a result of permissions
« Last Edit: Jun 3rd, 2015 at 4:24pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Andrew Paes
Newbies
*
Offline


Posts: 8
Joined: Jun 3rd, 2015
Re: External Dependencies Not Loading
Reply #8 - Jun 3rd, 2015 at 8:45pm
Print Post  
Well,

I unistaled Arduino and Unistalled Visual Micro.

After this I did install again of Visual Micro, and just did copy and paste of Arduino 1.0.1 folder to "D:\" as 1.0.1 dosen't have installer.

Well, this is still not creating dependencies even creating a new sketch projet and writing the code.

What kind of premissions I should set and how?

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


Posts: 12201
Location: United Kingdom
Joined: Apr 10th, 2010
Re: External Dependencies Not Loading
Reply #9 - Jun 3rd, 2015 at 9:39pm
Print Post  
Hi,

Thanks for the info.

Let's make sure the compile is working first. 

When you deploy what error do you see?

Thanks
« Last Edit: Jun 3rd, 2015 at 9:49pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Andrew Paes
Newbies
*
Offline


Posts: 8
Joined: Jun 3rd, 2015
Re: External Dependencies Not Loading
Reply #10 - Jun 3rd, 2015 at 10:32pm
Print Post  
Weel,

I unistalled again Visual Micro and Arduino and installed the latest version of Visual Micro and 1.6.0 for Arduino with MSI installer.

Now I can deploy to my shield and this is working.

But now I'm having a automplete problem I think. Well, Im not sure what it is.

The error is labeled to my functions, most of them.

To pinMode() for example. The eror is:

error expression preceding parentheses of apparent call must have (pointer-to-) function type

I think it is a Visual C++ problem. Can you help me with that?

Thank you so far untill now for answer me,
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12201
Location: United Kingdom
Joined: Apr 10th, 2010
Re: External Dependencies Not Loading
Reply #11 - Jun 3rd, 2015 at 11:55pm
Print Post  
Hi,

Okay that's good to hear thanks.

Please also try to switch to another board and back to the Uno again. Sometimes if you upgrade from an old version of arduino the intellisense doesn't auto detect the change of paths.

Can you please zip the sketch folder and it's sub folder(s) and email to info [at] visualmicro.com

Thanks
« Last Edit: Jun 3rd, 2015 at 11:56pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Andrew Paes
Newbies
*
Offline


Posts: 8
Joined: Jun 3rd, 2015
Re: External Dependencies Not Loading
Reply #12 - Jun 4th, 2015 at 3:53pm
Print Post  
Dou you mean use another board like DueMilNove? I just have 2 boards.

Where I found these folders to zip?

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


Posts: 12201
Location: United Kingdom
Joined: Apr 10th, 2010
Re: External Dependencies Not Loading
Reply #13 - Jun 4th, 2015 at 4:02pm
Print Post  
1)
I mean simply click the list of boards and pick any board. then click the list again and pick the Uno. No build or anything else required.

2)
I mean the sketch you are working with so you will know where it is located Smiley
  
Back to top
IP Logged
 
Andrew Paes
Newbies
*
Offline


Posts: 8
Joined: Jun 3rd, 2015
Re: External Dependencies Not Loading
Reply #14 - Jun 4th, 2015 at 4:29pm
Print Post  
1) I did but I still have the error

2) My Sketch is located at: C:\Users\Andrew\Documents\Arduino\My Examples

Here is the link to download it:
http://s000.tinyupload.com/index.php?file_id=61922472368263115368

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