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) visual micro error: value does not fall within the expected range (Read 13915 times)
mysteriousmonkey29@gmail.com
Newbies
*
Offline


Posts: 5
Joined: Aug 5th, 2015
visual micro error: value does not fall within the expected range
Aug 5th, 2015 at 8:54pm
Print Post  
Hello, I just installed Microsoft Visual Studio community 2015 and then the visual micro add-on. I previously was using the Arduino IDE version 1.6.5, so I already have that installed. When I started Visual Studio will micro asked me to fill in some information, like where the Arduino IDE was located and what version it was (it auto filled these correctly, so I just hit okay).

Now, I'm trying to create an Arduino project, so I go to file, new, Arduino project, but I get the following error: "error: value does not fall within the expected range," whatever that means. Any idea how to fix this so I can actually start using visual micro?

Attached is a screenshot of the error. Thanks!
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: visual micro error: value does not fall within the expected range
Reply #1 - Aug 5th, 2015 at 10:02pm
Print Post  
Hi,

Yes someone else just reported it.

If you open the ide location config window and enter a value for the "optional" sketchbook folder the option will work.

The default is usually c:\users\[yourname]\Documents\Arduino

I am looking into why it isn't using the default.

By the way you can also use "File>New>Project". It's a better method anyway.

Thanks
  
Back to top
IP Logged
 
mysteriousmonkey29@gmail.com
Newbies
*
Offline


Posts: 5
Joined: Aug 5th, 2015
Re: visual micro error: value does not fall within the expected range
Reply #2 - Aug 6th, 2015 at 6:42pm
Print Post  
Okay, I added the sketchbook location, and it was the exact same format as you said it was likely to be. However, I am still experiencing the same error. Also, I tried file-> New-> Project, but am unsure which to choose because I don't see anything that says Arduino there.

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: visual micro error: value does not fall within the expected range
Reply #3 - Aug 6th, 2015 at 6:46pm
Print Post  
Thanks I have been able to reproduce the error with file>new and am looking into it.

Try using the "File>New>Project" wizard. If you are using the latest release of visual micro published yesterday you should find the new arduino project c++ template works
  
Back to top
IP Logged
 
mysteriousmonkey29@gmail.com
Newbies
*
Offline


Posts: 5
Joined: Aug 5th, 2015
Re: visual micro error: value does not fall within the expected range
Reply #4 - Aug 6th, 2015 at 7:16pm
Print Post  
I found the Visual C++-> Visual micro-> Blank template, if that's what you're talking about. Trying to open that produced a different error that I've attached a screenshot of
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
gelius59
Junior Member
**
Offline


Posts: 82
Location: Ukraine
Joined: Oct 6th, 2012
Re: visual micro error: value does not fall within the expected range
Reply #5 - Aug 6th, 2015 at 7:28pm
Print Post  
I myself made a mistake because not all installed Visual Studio 2015 Smiley

The error creating a new project means that you do not have Visual Studio C++ 14 installed
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: visual micro error: value does not fall within the expected range
Reply #6 - Aug 6th, 2015 at 7:33pm
Print Post  
Yes you have to have C++ installed. Arduino is C++ so we use the Visual Studio C++ system

You can change the Visual Studio features via Control panel and add C++

The error comes when Visual Micro attempts to run the VS New>EmptyC++ Project Macro in background. I will try to add a more informative message but I think the code terminates when Microsoft show the error message
« Last Edit: Aug 6th, 2015 at 7:47pm by Tim@Visual Micro »  
Back to top
IP Logged
 
mysteriousmonkey29@gmail.com
Newbies
*
Offline


Posts: 5
Joined: Aug 5th, 2015
Re: visual micro error: value does not fall within the expected range
Reply #7 - Aug 6th, 2015 at 9:44pm
Print Post  
What do you mean I don't have Visual C++ installed? I installed Microsoft Visual Studio yesterday; is that the same thing as Visual C++? If not, shouldn't it automatically download with Microsoft Visual Studio? Download took forever since it was downloading a bunch of extra things like C++ redistributable packages and stuff.

And I don't get what you're talking about with the control panel. I went to the control panel, but I can't find anything about C++ or enabling it in there.

And does this mean that this may be causing my other problem too, or are they unrelated?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: visual micro error: value does not fall within the expected range
Reply #8 - Aug 6th, 2015 at 10:12pm
Print Post  
Sorry not been clear.

Please try to create a Standard Visual Studio C++ project not using Visual Micro in any way. 

This should be a standard part of Visual Studio ...

  • File>New>Project>C++>Empty Project


or

  • File>New>Project>C++>Win32Project



What I meant about control panel is that Visual Studio appears in the "Add/Remove Programs" list. It allows you to "uninstall" or "Change". The 'Change' option is how to add C++ if it wasn't installed by default.

Thanks
« Last Edit: Aug 6th, 2015 at 10:30pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Jules
Newbies
*
Offline


Posts: 3
Joined: Aug 6th, 2015
Re: visual micro error: value does not fall within the expected range
Reply #9 - Aug 7th, 2015 at 9:36am
Print Post  
I have now fixed mine. When I tried to make a new C++ project there was an entry in the big pane about VisualC++ desktop tools.
I installed that (which took a long time) and now everything works
. I can open existing Arduino Sketches and also create new C++ Arduino projects.

To get it, just do the file-new-project and pick Visual C++
In the same pane that you see the Arduino Project option you should see something about C++ desktop tools.
Install that and all should be good
« Last Edit: Aug 7th, 2015 at 9:38am by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: visual micro error: value does not fall within the expected range (VS2015)
Reply #10 - Aug 7th, 2015 at 9:37am
Print Post  
Great thanks for the info I will put a BIG note somewhere.
« Last Edit: Aug 7th, 2015 at 9:43am by Tim@Visual Micro »  
Back to top
IP Logged
 
Jules
Newbies
*
Offline


Posts: 3
Joined: Aug 6th, 2015
Re: visual micro error: value does not fall within the expected range
Reply #11 - Aug 7th, 2015 at 9:53am
Print Post  
You are very welcome  Smiley
  
Back to top
 
IP Logged
 
mysteriousmonkey29@gmail.com
Newbies
*
Offline


Posts: 5
Joined: Aug 5th, 2015
Re: visual micro error: value does not fall within the expected range
Reply #12 - Aug 10th, 2015 at 6:23pm
Print Post  
Hey, C++ isn't an option for me in the create new Project dialog window. There is a Visual C++ category (not sure if that's what you guys are talking about). Either way, there isn't an empty project option under Visual C++.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: visual micro error: value does not fall within the expected range
Reply #13 - Aug 10th, 2015 at 6:28pm
Print Post  
It's a pain they have made it optional and not very obvious. 

In Visual Studio C++ is called Visual C++. It is also shortened to VC++, it is all the same.

Here is the microsoft overview of the install options

http://blogs.msdn.com/b/vcblog/archive/2015/07/24/setup-changes-in-visual-studio...
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint