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) Re: Error Message: "Unable to create Arduino Project for Atmel studio". (Read 13564 times)
dgiakoum
Newbies
*
Offline


Posts: 5
Joined: Oct 16th, 2013
Re: Error Message: "Unable to create Arduino Project for Atmel studio".
Oct 17th, 2013 at 1:28pm
Print Post  
I am facing a problem, getting the error message "unable to create Arduino Project for Atmel studio" when trying to create a scetch. Version V6.1.2730SP2 of Atmel studio, windows 7 platform. Originally I had arduino 1.0.5 installed. I upgraded to 1.5.4 trying to fix the problem. In both cases the board list will not populate (I made sure to update the path in the appropriate section of the configuration manager each time). I have the visual micro submenu under tools, and can see the visual micro arduino in the addin manager. 

This problem first occured on the first install, since then I uninstalled both VM and the Atmel studio and reinstalled them in hope of a fix. If there is a way to preform a "clean" install please advise me. 

Arduino is installed in "C:\Program Files (x86)\Arduino\" and  the arduino installation works.
« Last Edit: Oct 22nd, 2013 at 1:16pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error Message: "Unable to create Arduino Project for Atmel studio".
Reply #1 - Oct 18th, 2013 at 12:11pm
Print Post  
Hi,

I hope you don't mind that I have split your post to a new thread because thread you used was resolved as a user config mistake.

Can you please confirm the path(s) you have entered into the Visual Micro config tool and also run the version of Arduino pointed to the by paths. I suggest that you just pick one Arduino version for the current test, such as 1.0.5 and use the respective Arduino 1xx configuration property.

Once you have established the arduino version please run the arduino ide of the specified location and confirm it works. After running arduino one time, please restart Atmel to see if you can see the boards list on the tools menu or tool bar.

Finally would you please click "Tools>Reset User Interface", clicking OK will re-start Atmel automatically.

Thanks
  
Back to top
IP Logged
 
dgiakoum
Newbies
*
Offline


Posts: 5
Joined: Oct 16th, 2013
Re: Error Message: "Unable to create Arduino Project for Atmel studio".
Reply #2 - Oct 22nd, 2013 at 11:39am
Print Post  
I didn't downgrade but on 1.5.4 I can confirm that copy-pasting the path off the configuration screen and running the exe file found inside runs a working arduino IDE. I can find no "reset user interface" on the tools menu (I run atmel studio V 6.1.2739 Service pack 2 https://dl.dropboxusercontent.com/u/5091572/atmelSS.png ).
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error Message: "Unable to create Arduino Project for Atmel studio".
Reply #3 - Oct 22nd, 2013 at 12:14pm
Print Post  
Thanks for the info. Sorry the menu item is "Tools>Visual Micro>Reset User Interface" as per your screen shot  Smiley
  
Back to top
IP Logged
 
dgiakoum
Newbies
*
Offline


Posts: 5
Joined: Oct 16th, 2013
Re: Error Message: "Unable to create Arduino Project for Atmel studio".
Reply #4 - Oct 22nd, 2013 at 1:12pm
Print Post  
User interface was reset, and problem persists.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error Message: "Unable to create Arduino Project for Atmel studio".
Reply #5 - Oct 22nd, 2013 at 1:18pm
Print Post  
Please switch on "tools>options>visual micro>user interface>trace". The re-start atmel studio and email or post the output. Thanks (email to info [at] visualmicro.com)
  
Back to top
IP Logged
 
dgiakoum
Newbies
*
Offline


Posts: 5
Joined: Oct 16th, 2013
Re: Error Message: "Unable to create Arduino Project for Atmel studio".
Reply #6 - Oct 22nd, 2013 at 2:19pm
Print Post  
Code
Select All
CreateCommandBarItemsPerm	Begin AddinVer=1.1309.11
Permanent Items Setup Requested	 - Exiting setup because some controls already exist
CreateCommandBarItemsPerm	End
Create UI command items	Begin
CreateCommandBarItems	Begin AddinVer=1.1309.11
Get Bar	Tools
Create Bar	Tools>Arduino
Adding	Tools>Ports
Adding	Tools>Other Ports
Adding	UI Menu-Board-Items
Adding	UI Menu-SerialPort-Items
Adding	Creating project menu libraries for platform
Adding	ToolBar-Lib-Items
Error	Library names to UI
System.ArgumentException: Illegal characters in path.
   at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength)
   at System.IO.Path.GetFullPathInternal(String path)
   at System.IO.DirectoryInfo.Init(String path, Boolean checkHost)
   at System.IO.DirectoryInfo..ctor(String path)
   at processing.app.SketchBase.getContentFolder(String name)
   at processing.app.SketchBase.getCoreLibrariesFolder()
   at Visual.Micro.Visual.Studio.Arduino.AddInApp.RefreshCommandBarLibsMenu()
Added	Library names to UI
Create UI command items	End 



"System.ArgumentException: Illegal characters in path" seems to be the culprit, but I don't know if it's referring to VM's installation path or Arduino's
Arduino's path is "C:\Program Files (x86)\Arduino"
VM's path is "C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino"
Atmel's path is "C:\Program Files (x86)\Atmel\Atmel Studio 6.1"
I can't imagine spaces cause problems, as more people would complain, and there's no funny characters in any of these paths. Should I try installing in c:\Arduino anyway?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error Message: "Unable to create Arduino Project for Atmel studio".
Reply #7 - Oct 22nd, 2013 at 2:25pm
Print Post  
Thanks, that's interesting. 

Can you please tell me what path you have entered as the .exe path (arduino install location)? It looks like we or .net are failing trying to establish a location for the library folder.

To save time please also open the Arduino Ide and let me know what the "file>preferences>sketch book" folder is set to.

EDIT: Sorry I can see the application path below. It seems perfectly normal. This is a very basic part of the plugin system so please paste below exactly what path is entered in the visual micro app path. Sorry to be a pain
« Last Edit: Oct 22nd, 2013 at 2:28pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error Message: "Unable to create Arduino Project for Atmel studio".
Reply #8 - Oct 22nd, 2013 at 2:37pm
Print Post  
Hi,

I have been reading about this error. It is in a .net routine that objects to certain characters in resolved paths. It looks like the arduino exe path but based on your reports the path looks good to me.

Can you please open regedit.exe and find the HK current user, software, visual micro, locations section and see what paths have been saved.

Are you using a virtual machine or mac or straight windows pc?

Thanks

« Last Edit: Oct 22nd, 2013 at 2:38pm by Tim@Visual Micro »  
Back to top
IP Logged
 
dgiakoum
Newbies
*
Offline


Posts: 5
Joined: Oct 16th, 2013
Re: Error Message: "Unable to create Arduino Project for Atmel studio".
Reply #9 - Oct 22nd, 2013 at 3:16pm
Print Post  
Problem resolved by looking at the registry
The registry keys were:

Arduino 1.0.x Application: "C:\Program Files (x86)\Arduino\
Arduino 1.0.x Sketchbook: C:\Users\dgiakoum\Documents\Arduino
Arduino 1.5.x Application: "C:\Program Files (x86)\Arduino\
Arduino 1.5.x Sketchbook: C:\Users\dgiakoum\Documents\Arduino

Note the extra quote, On removing the quotes the list got populated normally. 
It is entierly possible that I copied the path off the 1.0.X settings to the 1.5.X settings and so an initial error in the 1.0.X path got carried over to the other configuration. 

Thanks for the prompt responce, and sorry for taking up your time by my careless pasting  Smiley
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error Message: "Unable to create Arduino Project for Atmel studio".
Reply #10 - Oct 22nd, 2013 at 4:58pm
Print Post  
Great. We need to re-instate the warnings for invalid paths.

I think the recent changes to support non-arduino apps (such as Energia) caused the warning code to be dropped.

Thanks for reporting it, I am sure it will happen to others.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint