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) The settings file for an application is missing (Read 11440 times)
mendiola_loyola
Newbies
*
Offline


Posts: 6
Location: Lima, Peru
Joined: Sep 10th, 2013
The settings file for an application is missing
Sep 10th, 2013 at 3:04pm
Print Post  
Dear All:

After installing Visual Micro v.130904_SP2 i get the following message when I execute VS2010:

The settings file for an application is missing 'Arduino 1.0.x' %APPDATA%\arduino\preferences.txt

I'm using windows 7 64 bits with VS2010 v. 10.0.40219.1 SP1 Rel.

Regards.
Alfredo Mendiola Loyola
Lima, Peru
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: The settings file for an application is missing
Reply #1 - Sep 10th, 2013 at 3:06pm
Print Post  
Hi,

Thanks for the report we will prevent that message in future versions.

Does that fix the problem? This error means the arduino ide has never been run before, when it runs it creates a preferences.txt file that Visual Micro looks for.

Please run the arduino ide once and then close it.
  
Back to top
IP Logged
 
mendiola_loyola
Newbies
*
Offline


Posts: 6
Location: Lima, Peru
Joined: Sep 10th, 2013
Re: The settings file for an application is missing
Reply #2 - Sep 10th, 2013 at 3:22pm
Print Post  
Tim@Visual Micro wrote on Sep 10th, 2013 at 3:06pm:
Hi,

Thanks for the report we will prevent that message in future versions.

Does that fix the problem? This error means the arduino ide has never been run before, when it runs it creates a preferences.txt file that Visual Micro looks for.

Please run the arduino ide once and then close it.


Dear Tim:

I have already installed and run Arduino 0023, 1.0 and 1.0.4 before execute the visual micro installer.

If I use the Visual Micro v. 1305.09.1 all woks well.

Regards.
Alfredo Mendiola Loyola
Lima, Peru
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: The settings file for an application is missing
Reply #3 - Sep 10th, 2013 at 3:52pm
Print Post  
Hi,

Ok, I am sorry you are having this problem.

Can you please open the Configuration window which is at the bottom of the applications combo box or in tools>options.

What path do you have set against the 1.0.x entry?

Thanks
  
Back to top
IP Logged
 
mendiola_loyola
Newbies
*
Offline


Posts: 6
Location: Lima, Peru
Joined: Sep 10th, 2013
Re: The settings file for an application is missing
Reply #4 - Sep 10th, 2013 at 4:19pm
Print Post  
Tim@Visual Micro wrote on Sep 10th, 2013 at 3:52pm:
Hi,

Ok, I am sorry you are having this problem.

Can you please open the Configuration window which is at the bottom of the applications combo box or in tools>options.

What path do you have set against the 1.0.x entry?

Thanks


Combo Box: Arduino 1.0.x

Enter the ide Location:
D:\Programas\arduino-0023

Regards.
Alfredo Mendiola
Lima, Peru
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: The settings file for an application is missing
Reply #5 - Sep 10th, 2013 at 4:31pm
Print Post  
Thanks. 

We will look into this later today or tomorrow and make a new service pack or remove the error.

Sorry and thanks very much for reporting the problem

EDIT: we have found this is a problem for windows xp users

previous visual micro versions are available here
« Last Edit: Sep 10th, 2013 at 4:39pm by Tim@Visual Micro »  
Back to top
IP Logged
 
mendiola_loyola
Newbies
*
Offline


Posts: 6
Location: Lima, Peru
Joined: Sep 10th, 2013
Re: The settings file for an application is missing
Reply #6 - Sep 10th, 2013 at 4:43pm
Print Post  
Tim@Visual Micro wrote on Sep 10th, 2013 at 4:31pm:
Thanks. 

We will look into this later today or tomorrow and make a new service pack or remove the error.

Sorry and thanks very much for reporting the problem

EDIT: we have found this is a problem for windows xp users

previous visual micro versions are available here


Dear Tim:

I'm using Windows 7 - 64 Bits.

Thank you for your help.

Regards.
Alfredo Mendiola Loyola
« Last Edit: Sep 10th, 2013 at 4:44pm by mendiola_loyola »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: The settings file for an application is missing
Reply #7 - Sep 10th, 2013 at 8:31pm
Print Post  
Oh! Well it is good for us that you have reported this because it is a big problem for xp users!

Now to fix your problem...

I can tell you how to fix this but also really need you to tell me which bit was wrong so we can fix it properly.

When the Arduino ide starts for the first time it creates a textual setting file called preferences.txt in the following folder 'c:\users\[your_name]\appdata\Roaming\Arduino'

Visual Micro can't find the preferences.txt file in the folder.

To find the name of the 'Roaming' folder Visual Micro uses a windows environment variables called APPDATA.

I am keen to know what your APPDATA variable contains

Please click windows Start>Run>Cmd. When the cmd window opens input

SET APPDATA

The press ENTER on the keyboard.

What path is displayed? Based on what the path is we can decide if we want to create a folder called Arduino and copy the preferences.txt file from 'c:\users\[your_name]\appdata\Roaming\Arduino'. This would get you a working system until sp3 is produced.

Thanks
  
Back to top
IP Logged
 
mendiola_loyola
Newbies
*
Offline


Posts: 6
Location: Lima, Peru
Joined: Sep 10th, 2013
Re: The settings file for an application is missing
Reply #8 - Sep 10th, 2013 at 8:40pm
Print Post  
Dear Tim:

C:\Users\alfredo.mendiola>set appdata
Environment variable appdata not defined

Regards.
Alfredo Mendiola Loyola
Lima, Peru
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: The settings file for an application is missing
Reply #9 - Sep 10th, 2013 at 9:08pm
Print Post  
Hello,

APPDATA is case sensitive

MUST BE UPPERCASE, please try

Thanks
  
Back to top
IP Logged
 
mendiola_loyola
Newbies
*
Offline


Posts: 6
Location: Lima, Peru
Joined: Sep 10th, 2013
Re: The settings file for an application is missing
Reply #10 - Sep 10th, 2013 at 9:08pm
Print Post  
Dear Tim:

I have created the Environment variable APPDATA for User and system with the following path:
%USERPROFILE%\AppData\Roaming

And now Visual Micro is working well.

I didn't have this problem with the version 1305.09.1


C:\Users\alfredo.mendiola>set appdata
APPDATA=C:\Users\alfredo.mendiola\AppData\Roaming

Regards.
Alfredo Mendiola Loyola
Lima, Peru
« Last Edit: Sep 10th, 2013 at 9:09pm by mendiola_loyola »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: The settings file for an application is missing
Reply #11 - Sep 10th, 2013 at 9:21pm
Print Post  
Hi,

You will see in this article that APPDATA is an official windows system variable but that some users have encountered a problem where their windows profile has not been created correctly. This was the cause of the problem.

But as you correctly say, in previous versions of visual micro it worked. This is because hard coded C# objects were used to find the Roaming location instead of environment variables. 

In the latest Visual Micro we have a user configurable build system so we need to use external environment variables that can be changed to something else by users. 

In sp3 we use the C# object to create an environment variable called VM_APPDATA_ROAMING which is then used in the Visual Micro configuration files instead of APPDATA. This will will be more robust solution similar to older Visual Micro versions.

Sp3 will be available shortly but you don't need it, although it will have other minor fixes/

Thanks for the good reports, I hope the reason for the problem on your win7 machine is understandable but not important it seems.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint